Interface ColonyEvent

All Known Implementing Classes:
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 Classes
    Modifier and Type
    Interface
    Description
    static final record 
    Detached actor identity captured when an event occurred.
    static final record 
    A newly created friendly actor, including civilians, recruits, heroes and scripted arrivals.
    static final record 
    A citizen entered the native death sequence after immediate resurrection checks.
    static final record 
    A creature's final death after its automatic revival/transformation checks.
    static enum 
    Causes the native citizen death bookkeeping can identify reliably.
    static final record 
    One citizen's net home reassignment during a delivery interval.
    static final record 
    A placed object left the world, including demolition, destruction, replacement and cleanup.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    day()
    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