Interface IGameEvent
- Namespace
- Core
- Assembly
- Core.dll
Base interface for all game events. Events MUST be structs (not classes) to avoid heap allocations during gameplay. The EventBus uses generic EventQueue<T> which keeps events as value types throughout, ensuring zero boxing and zero GC pressure.
public interface IGameEvent
Properties
TimeStamp
Timestamp when the event was emitted (set automatically by EventBus).
float TimeStamp { get; set; }
Property Value
- float