Skip to main content

Callback

Enum Callback 

Source
pub enum Callback {
Show 94 variants None, ClearEnter0, ClearUpdate0, ClearExit0, ClearExit15, ClearEnter1, ClearEnter2, WorkPlaceEnter0, WorkPlaceEnter2, WorkPlaceEnter3, BuildEnter1, BuildUpdate1, BuildEnter8, BuildUpdate8, BuildExit8, BuildFinish, ResidenceEnter2, ClearResourceEnter2, ProduceEnter2, ProduceClearPoints, ProduceEnterD, ProduceEnterE, ProduceUpdateD, ProduceLeaveD, AttendanceEnter2, AttendanceExit2, AttendanceEnter3, HealerEnter2, HealerEnter3, HappinessEnter, HappinessUpdate, HappinessLeave, CropEnter2, CropUpdate2, CropEnter9, CropUpdate9, CropEnter10, CropExit10, CropUpdate10, CropEnter11, CropUpdate11, MarketEnter2, MarketEnter3, CemeteryEnter2, CemeteryEnter3, AbsorbUpdate0, StorageEnter2, StorageEnter3, PastureEnter2, PastureUpdate2, PastureEnter3, OrchardEnter2, OrchardUpdate2, OrchardEnter9, OrchardUpdate9, OrchardEnter10, OrchardUpdate10, OrchardExitWork, OrchardEnter12, OrchardUpdate12, OrchardEnter11, OrchardUpdate11, OrchardEnter14, OrchardExit14, OrchardUpdate14, ResidenceEnter3, DestroyEnter3, DestroyEnter4, DestroyUpdate4, DestroyEnter5, DestroyUpdate5, DestroyEnter6, DestroyUpdate6, DestroyExit6, WellEnter2, WellEnter3, ImmigrationEnter2, ImmigrationUpdate2, ImmigrationEnterF, ImmigrationUpdateF, ImmigrationEnter10, ImmigrationUpdate10, ImmigrationEnter11, ImmigrationUpdate11, ImmigrationLeave, TradeEnter2, TradeUpdate2, TradeEnter12, TradeEnter13, TradeExit13, TradeUpdate13, TradeLeave, MultiObjectEnter2, Missing,
}
Expand description

A state callback (records: enter, scheduled update, transition functions).

Variants§

§

None

No callback.

§

ClearEnter0

The clear-area controller: entering states 0 and 21.

Original: FUN_14011ce30, FUN_14011cdc0, FUN_14011cd60.

§

ClearUpdate0

The clear-area controller: the scheduled update of states 0 and 21.

§

ClearExit0

The clear-area controller: leaving state 0.

§

ClearExit15

The clear-area controller: leaving state 21.

Original: FUN_14011cc40 (state 0x15 exit).

§

ClearEnter1

The clear-area controller: entering state 1.

Original: FUN_14011ccf0, FUN_14011ccc0.

§

ClearEnter2

The clear-area controller: entering state 2.

§

WorkPlaceEnter0

The workplace controller: entering state 0.

Original: FUN_140134310 → FUN_1401349f0; FUN_1401342c0; FUN_140134230.

§

WorkPlaceEnter2

The workplace controller: entering state 2.

§

WorkPlaceEnter3

The workplace controller: entering state 3.

§

BuildEnter1

The build controller: entering state 1.

Original: FUN_14010d760, FUN_14010d6b0.

§

BuildUpdate1

The build controller: the scheduled update of state 1.

§

BuildEnter8

The build controller: entering state 8.

Original: FUN_14010cfb0, FUN_14010cbb0, FUN_14010cad0.

§

BuildUpdate8

The build controller: the scheduled update of state 8.

§

BuildExit8

The build controller: leaving state 8.

§

BuildFinish

The build controller: the transition from state 8 to 2, when construction ends.

Original: FUN_14010cab0 → FUN_14010d4c0.

§

ResidenceEnter2

The residence: entering state 2.

Original: FUN_14012f2b0.

§

ClearResourceEnter2

The marker destroys its entity once its cell is clear.

Original: FUN_14011da30.

§

ProduceEnter2

Built → producing (0xd), or idle (0xe) when switched off.

Original: FUN_140130680.

§

ProduceClearPoints

The transition from state 2 to 0xd: the cells of the output points become empty ground.

Original: FUN_140130460.

§

ProduceEnterD

Register the production work and enable the workplace (0xe when switched off).

Original: FUN_140130330.

§

ProduceEnterE

Remove the work and disable the workplace.

Original: FUN_1401301f0.

§

ProduceUpdateD

State 0xd’s scheduled update → slot (the dock’s water).

Original: FUN_140130660.

§

ProduceLeaveD

Transition 0xd → 3 → slot (the dock leaves the map layer).

Original: FUN_140130440.

§

AttendanceEnter2

Register the attendance, its LocationWork, enable the workplace.

Original: FUN_1400445f0.

§

AttendanceExit2

Status icon 2 when every attendance of the kind is full.

Original: FUN_140044590.

§

AttendanceEnter3

Unregister, send the attendees away, disable the workplace.

Original: FUN_140044530.

§

HealerEnter2

Register / unregister the healer.

Original: FUN_14004b790, FUN_14004b750.

§

HealerEnter3

A healer: entering state 3.

§

HappinessEnter

A happiness building: entering its active states.

Original: FUN_14004b350 (states 2 and 0xd enter), FUN_14004b300 (their scheduled update), FUN_14004b2a0 (state 3 enter).

§

HappinessUpdate

A happiness building: the scheduled update of its active states.

§

HappinessLeave

A happiness building: leaving its active states.

§

CropEnter2

A crop field: entering state 2.

Original: FUN_14011fdf0 / FUN_14011fd30 (state 2), FUN_14011f7e0 / FUN_14011f6b0 (9), FUN_14011f5d0 / FUN_14011f440 / FUN_14011f4a0 (10), FUN_14011f330 / FUN_14011f250 (11).

§

CropUpdate2

A crop field: the scheduled update of state 2.

§

CropEnter9

A crop field: entering state 9.

§

CropUpdate9

A crop field: the scheduled update of state 9.

§

CropEnter10

A crop field: entering state 10.

§

CropExit10

A crop field: leaving state 10.

§

CropUpdate10

A crop field: the scheduled update of state 10.

§

CropEnter11

A crop field: entering state 11.

§

CropUpdate11

A crop field: the scheduled update of state 11.

§

MarketEnter2

The market joins / leaves the town’s.

Original: FUN_14004f880, FUN_14004f840.

§

MarketEnter3

A market: entering state 3.

§

CemeteryEnter2

The cemetery joins / leaves the town’s.

Original: FUN_140047920, FUN_1400478e0.

§

CemeteryEnter3

A cemetery: entering state 3.

§

AbsorbUpdate0

AbsorbResource’s state 0 update.

Original: FUN_14010ae20.

§

StorageEnter2

Join / leave the town’s storages.

Original: FUN_140132700, FUN_1401326c0.

§

StorageEnter3

A storage: entering state 3.

§

PastureEnter2

A pasture: entering state 2.

Original: FUN_14012c590 / FUN_14012bcb0 (state 2), FUN_14012c310 (3).

§

PastureUpdate2

A pasture: the scheduled update of state 2.

§

PastureEnter3

A pasture: entering state 3.

§

OrchardEnter2

An orchard: entering state 2.

Original: FUN_140051e90 / FUN_140051e20 (2), FUN_1400519d0 / FUN_1400518f0 (9), FUN_140051790 / FUN_140051560 (10), FUN_140051500 / FUN_140051310 (exits of 10 and 12), FUN_140051440 / FUN_140051370 (12), FUN_140051160 / FUN_140050fb0 (11), FUN_140050e40 / FUN_140050d40 / FUN_140050d90 (0x14).

§

OrchardUpdate2

An orchard: the scheduled update of state 2.

§

OrchardEnter9

An orchard: entering state 9.

§

OrchardUpdate9

An orchard: the scheduled update of state 9.

§

OrchardEnter10

An orchard: entering state 10.

§

OrchardUpdate10

An orchard: the scheduled update of state 10.

§

OrchardExitWork

An orchard: leaving states 10 and 12, when the work ends.

§

OrchardEnter12

An orchard: entering state 12.

§

OrchardUpdate12

An orchard: the scheduled update of state 12.

§

OrchardEnter11

An orchard: entering state 11.

§

OrchardUpdate11

An orchard: the scheduled update of state 11.

§

OrchardEnter14

An orchard: entering state 20.

§

OrchardExit14

An orchard: leaving state 20.

§

OrchardUpdate14

An orchard: the scheduled update of state 20.

§

ResidenceEnter3

The families move out and the residence leaves the town’s.

Original: FUN_14012edf0.

§

DestroyEnter3

Demolition: entering state 3.

Original: FUN_140122c80 (3), FUN_1401224a0 / FUN_140122390 (4), FUN_140122140 / FUN_1401215f0 (5), FUN_1401229a0 / FUN_140122960 / FUN_1401228d0 (6).

§

DestroyEnter4

Demolition: entering state 4.

§

DestroyUpdate4

Demolition: the scheduled update of state 4.

§

DestroyEnter5

Demolition: entering state 5.

§

DestroyUpdate5

Demolition: the scheduled update of state 5.

§

DestroyEnter6

Demolition: entering state 6.

§

DestroyUpdate6

Demolition: the scheduled update of state 6.

§

DestroyExit6

Demolition: leaving state 6.

§

WellEnter2

The well joins / leaves the town’s water sources.

Original: FUN_14005d880, FUN_14005d840.

§

WellEnter3

The well leaves the town’s water sources.

§

ImmigrationEnter2

The town hall’s immigration: entering state 2.

Original: FUN_14004dbf0 / FUN_14004db80 (2), FUN_14004db00 / FUN_14004da30 (0xf), FUN_14004d9f0 / FUN_14004d9d0 (0x10), FUN_14004d810 / FUN_14004d760 (0x11), FUN_14004d660 (0x10 and 0x11 → 3).

§

ImmigrationUpdate2

The town hall’s immigration: the scheduled update of state 2.

§

ImmigrationEnterF

The town hall’s immigration: entering state 15.

§

ImmigrationUpdateF

The town hall’s immigration: the scheduled update of state 15.

§

ImmigrationEnter10

The town hall’s immigration: entering state 16.

§

ImmigrationUpdate10

The town hall’s immigration: the scheduled update of state 16.

§

ImmigrationEnter11

The town hall’s immigration: entering state 17.

§

ImmigrationUpdate11

The town hall’s immigration: the scheduled update of state 17.

§

ImmigrationLeave

The town hall’s immigration: leaving its active states.

§

TradeEnter2

The trading post: entering state 2.

Original: FUN_14005b530 / FUN_14005b3c0 (2), FUN_14005b3b0 (0x12), FUN_14005b160 / FUN_14005b030 / FUN_14005b0e0 (0x13), FUN_14005bac0 (→ 3).

§

TradeUpdate2

The trading post: the scheduled update of state 2.

§

TradeEnter12

The trading post: entering state 18.

§

TradeEnter13

The trading post: entering state 19.

§

TradeExit13

The trading post: leaving state 19.

§

TradeUpdate13

The trading post: the scheduled update of state 19.

§

TradeLeave

The trading post: leaving its active states.

§

MultiObjectEnter2

Activate the parts’ MapComponents and floors.

Original: FUN_14012aa30.

§

Missing

Callbacks whose port is still missing (they pass the state on).

Trait Implementations§

Source§

impl Clone for Callback

Source§

fn clone(&self) -> Callback

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 Copy for Callback

Source§

impl Debug for Callback

Source§

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

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

impl Eq for Callback

Source§

impl PartialEq for Callback

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Callback

Auto Trait Implementations§

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> 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.