pub enum Kind {
Show 37 variants
Lobby,
Floor,
Office,
Condo,
HotelSingle,
HotelDouble,
HotelSuite,
FastFood,
Restaurant,
FoodHall,
Shop,
Cinema,
PartyHall,
Amusements,
BoutiqueBay,
FitnessClub,
Clinic,
Nightclub,
Spa,
SkyBar,
AquaticCenter,
Daycare,
Stairs,
Escalator,
ElevatorStandard,
ElevatorService,
ElevatorExpress,
ParkingRamp,
Parking,
Security,
Medical,
Housekeeping,
Recycling,
Metro,
WeddingHall,
RentalStudio,
RentalApartment,
}Expand description
Everything a player can build.
Kind::as_str and Kind::parse convert to and from the names the
save, the catalog and the JavaScript binding use (lobby, hotelSingle,
elevatorExpress, …).
Variants§
Lobby
Lobby. Floor 1 is all lobby; a lobby every fifteenth floor above it is a sky lobby.
Floor
Floor. An empty floor tile, which rooms stand on.
Office
Office.
Condo
Condominium.
HotelSingle
Single Room.
HotelDouble
Double Room.
HotelSuite
Suite.
FastFood
Fast Food.
Restaurant
Restaurant.
FoodHall
Food Hall. Modern only.
Shop
Retail Shop.
Cinema
Cinema.
PartyHall
Party Hall.
Amusements
Amusements. Modern only.
BoutiqueBay
Boutique Bay. Modern only.
FitnessClub
Fitness Club. Modern only.
Clinic
Clinic. Modern only.
Nightclub
Nightclub. Modern only.
Spa
Spa. Modern only.
SkyBar
Sky Bar. Modern only.
AquaticCenter
Aquatic Center. Modern only.
Daycare
Daycare. Modern only.
Stairs
Stairway. Spans two floors.
Escalator
Escalator. Spans two floors.
ElevatorStandard
Standard Elevator.
ElevatorService
Service Elevator. Staff only.
ElevatorExpress
Express Elevator. Stops only at lobbies and the floors it is set to serve, and spans the whole tower.
ParkingRamp
Parking Ramp.
Parking
Parking Space.
Security
Security.
Medical
Medical Center.
Housekeeping
Housekeeping.
Recycling
Recycling Center.
Metro
Metro Station.
WeddingHall
Wedding Hall. Stands on the top floor.
RentalStudio
Studio. A rental home. Modern only.
RentalApartment
Apartment. A rental home. Modern only.
Implementations§
Source§impl Kind
impl Kind
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
The kind’s name in saves and the catalog, such as fastFood.
Sourcepub fn parse(s: &str) -> Option<Kind>
pub fn parse(s: &str) -> Option<Kind>
The kind with this name, as as_str writes it.
use verticopolis_engine::facilities::Kind;
assert_eq!(Kind::parse("hotelSuite"), Some(Kind::HotelSuite));
assert_eq!(Kind::HotelSuite.as_str(), "hotelSuite");Sourcepub fn is_structural(self) -> bool
pub fn is_structural(self) -> bool
A floor or lobby tile.
Sourcepub fn is_transport(self) -> bool
pub fn is_transport(self) -> bool
An elevator, stairs or an escalator.
Sourcepub fn is_elevator(self) -> bool
pub fn is_elevator(self) -> bool
One of the three elevator kinds.
Trait Implementations§
Source§impl Ord for Kind
impl Ord for Kind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Kind
impl PartialOrd for Kind
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.