pub enum GameplayEvent {
TowerFounded {
mode: GameMode,
},
FacilityPlaced {
kind: Kind,
floor: i64,
count: i64,
},
FacilityRemoved {
kind: Kind,
method: RemovalMethod,
},
PricingChanged {
kind: Kind,
},
CapacityChanged {
kind: Kind,
},
StarReached {
star: i64,
},
FireStarted,
FireGutted {
rooms: i64,
},
BombDetonated {
rooms: i64,
},
BombFound,
EmergencyResolved {
kind: EmergencyKind,
decision: EmergencyDecision,
source: EmergencySource,
},
MilestoneReached {
id: &'static str,
},
}Expand description
One gameplay event. CATALOG_JSON holds the full meaning of each, under
its name.
Variants§
TowerFounded
tower_founded: a new game started. A load never emits it.
FacilityPlaced
facility_placed: a build was placed and charged.
Fields
FacilityRemoved
facility_removed: a player sold or bulldozed a room or a shaft.
PricingChanged
pricing_changed: a price moved, once per command.
CapacityChanged
capacity_changed: an elevator’s cars or span changed.
StarReached
star_reached: the rating rose to star (6 is TOWER), one event per
star gained.
FireStarted
fire_started: a room caught fire. A fire spreading is the same fire.
FireGutted
fire_gutted: a fire burned rooms down to empty shells.
BombDetonated
bomb_detonated: a bomb went off before Security found it.
BombFound
bomb_found: Security found the bomb in time.
EmergencyResolved
emergency_resolved: an offer was answered.
Fields
kind: EmergencyKindWhich offer.
decision: EmergencyDecisionWhat took effect.
source: EmergencySourceWho answered.
MilestoneReached
milestone_reached: the tower reached a milestone. A load never
emits it.
Implementations§
Source§impl GameplayEvent
impl GameplayEvent
Trait Implementations§
Source§impl Clone for GameplayEvent
impl Clone for GameplayEvent
Source§fn clone(&self) -> GameplayEvent
fn clone(&self) -> GameplayEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GameplayEvent
impl Debug for GameplayEvent
Source§impl PartialEq for GameplayEvent
impl PartialEq for GameplayEvent
Source§fn eq(&self, other: &GameplayEvent) -> bool
fn eq(&self, other: &GameplayEvent) -> bool
self and other values to be equal, and is used by ==.