Package forgottentowns.mod.api
Interface ColonyEvent
- All Known Implementing Classes:
ColonyEvent.CitizenArrived,ColonyEvent.CitizenDied,ColonyEvent.CreatureDied,ColonyEvent.HomeChanged,ColonyEvent.PlaceableRemoved
public sealed interface ColonyEvent
permits ColonyEvent.CitizenArrived, ColonyEvent.CitizenDied, ColonyEvent.CreatureDied, ColonyEvent.HomeChanged, ColonyEvent.PlaceableRemoved
Immutable notifications of committed native changes. Events begin when a world's mod
runtime attaches; existing actors, restored objects and past deaths are not replayed.
Delivery is deferred to a simulation/save boundary. Actor IDs are scoped to their actor kind
and world; placeable and home IDs have separate identity domains.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordDetached actor identity captured when an event occurred.static final recordA newly created friendly actor, including civilians, recruits, heroes and scripted arrivals.static final recordA citizen entered the native death sequence after immediate resurrection checks.static final recordA creature's final death after its automatic revival/transformation checks.static enumCauses the native citizen death bookkeeping can identify reliably.static final recordOne citizen's net home reassignment during a delivery interval.static final recordA placed object left the world, including demolition, destruction, replacement and cleanup. -
Method Summary
Modifier and TypeMethodDescriptionintday()Returns the monotonic game day when the change occurred.
-
Method Details
-
day
int day()Returns the monotonic game day when the change occurred.- Returns:
- game day starting at one
-