Skip to main content
Verticopolis engine

Rules

Struct Rules 

Source
pub struct Rules {
Show 13 fields pub variant_households: bool, pub preview_names_refusal: bool, pub schedule_assist: bool, pub builds_while_paused: bool, pub exports_to_1994: bool, pub quotes_lobby_distance: bool, pub tall_sky_lobbies: bool, pub decorative_passers_by: bool, pub shaded_look: bool, pub venue_flights: bool, pub express_stops_on_15th_floors: bool, pub fed_up_wait: f64, pub max_lobby_height: i64,
}
Expand description

Mode rules a frontend shows the player, each stated from the engine’s own rule method, so a frontend reads them here instead of deciding them from the mode’s name.

Fields§

§variant_households: bool

Whether a sold condo carries its own household of 2 to 5 that prices the sale and counts its residents. When false every condo houses the flat family and stores no household.

§preview_names_refusal: bool

Whether the build preview names the engine’s refusal before the click. When false the refusal shows only once a click is refused.

§schedule_assist: bool

Whether the elevator schedule’s assisted tools answer: the intent presets, auto-tune and the staffing advice. When false the schedule is the manual grid only and each assisted query is refused.

§builds_while_paused: bool

Whether the player may place new construction while the game is paused. When false the frontend refuses a placement at speed 0 and says to unpause; the engine itself has no paused state.

§exports_to_1994: bool

Whether the tower can be exported for SimTower (1994) as a .TDT. When false the frontend disables that export with the reason, and the engine’s .TDT export refuses the tower.

§quotes_lobby_distance: bool

Whether the tenant card’s lobby warning quotes the floors to the nearest lobby. When false it names the problem without the number.

§tall_sky_lobbies: bool

Whether a sky lobby may rise more than one story (#308). The ground lobby always may, up to max_lobby_height; when false it is the only one that can.

§decorative_passers_by: bool

Whether a frontend may draw decorative passers-by, figures that pace the corridors but are not people the engine knows about (#2091). When false it draws only the engine’s own people.

§shaded_look: bool

Whether a frontend draws the lit look (#2097): people lit from the upper left with a four-frame walk, and rooms shaded to match. When false it keeps the flat 1994 look, with a two-frame walk.

§venue_flights: bool

Whether a frontend draws a one-story stair or escalator beside a venue as a spiral staircase or a switchback escalator. Drawing only; when false every one-story flight is drawn straight, as in 1994.

§express_stops_on_15th_floors: bool

Whether an express elevator keeps the 1994 game’s stops (#1527): the ground floor, every 15th floor and every basement, each of which can be turned off, with an end off those floors passed. When false an express stops at its lobbies, every basement and both ends.

§fed_up_wait: f64

How long, in seconds, a person waits before the wait counts as stress and the frontend shows them fed up (red). The same in both modes.

§max_lobby_height: i64

The most stories a lobby can rise (#308). A floor’s first lobby placement sets its height, and it never changes after.

Trait Implementations§

Source§

impl Clone for Rules

Source§

fn clone(&self) -> Rules

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Rules

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Rules

Source§

fn eq(&self, other: &Rules) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Rules

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Rules

Auto Trait Implementations§

§

impl Freeze for Rules

§

impl RefUnwindSafe for Rules

§

impl Send for Rules

§

impl Sync for Rules

§

impl Unpin for Rules

§

impl UnsafeUnpin for Rules

§

impl UnwindSafe for Rules

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.