AnimNotifyState struct
Per-tick deduplication state for animation notifies; prevents double-fire within a loop iteration. Not persistent across ticks — Clear() is called by AnimConstruct::
Public static variables
- static uint32_t MaxFireRecords constexpr
Public functions
- void Clear()
- Reset all fire records at the start of a tick.
- auto HasFiredThisLoop(NotifyID id, uint32_t slot, SimFloat loopStart) const -> bool
- Returns true if
idhas already been fired forslotat or afterloopStartthis tick. - void RecordFire(NotifyID id, uint32_t slot, SimFloat time)
- Record that
idwas fired forslotattime; silently drops if the buffer is full. - void ClearLoopedRecords(uint32_t slot, SimFloat newLoopStart)
- Remove all records for
slotwhose fire time predatesnewLoopStart(loop wrap occurred).
Public variables
- NotifyFireRecord fired
- uint32_t firedCount