Class EventLogger
- Namespace
- GrindFest.GameMaster.Helpers
- Assembly
- GrindFest.dll
Subscribes to significant EventAggregator events and maintains a rolling history of recent game events for the LLM Game Master to query. Only tracks important, infrequent events (not combat spam). ZERO-ALLOCATION: Reuses buffers and avoids lambda closures.
public class EventLogger : Singleton<EventLogger>
- Inheritance
-
objectEventLogger
- Inherited Members
Properties
- CachedEventCount
Gets number of events returned by last GetRecentEvents call. Use this with GetRecentEvents to know actual array size.
Methods
- ClearHistory()
Clears the event history.
- GetRecentEvents(int)
Gets the recent event history. ZERO-ALLOCATION: Returns cached array instead of allocating new one.