IGameEventAccessor
Interfacepublic interface IGameEventAccessor : INativeHandleA generic accessor to native IGameEvent.
View sourceProperties
When true, the event will not be broadcast to clients.
bool DontBroadcast { get; set; }Methods
Gets an entity reference from the event payload.
K GetEntity<K>(string key) where K : CEntityInstance- keystringField name.
Gets an entity index field from the event payload.
int GetEntityIndex(string key)- keystringField name.
Gets a floating-point field from the event payload.
float GetFloat(string key)- keystringField name.
Gets the pawn entity index referenced by the given field.
int GetPawnEntityIndex(string key)- keystringField name.
Gets the player referenced by the given field.
IPlayer? GetPlayer(string key)- keystringField name.
Gets the player controller referenced by the given field.
CCSPlayerController GetPlayerController(string key)- keystringField name.
Gets the player pawn referenced by the given field.
CCSPlayerPawn GetPlayerPawn(string key)- keystringField name.
Gets a player slot field from the event payload.
int GetPlayerSlot(string key)- keystringField name.
Gets a raw pointer value from the event payload.
nint GetPtr(string key)- keystringField name.
Gets a string field from the event payload.
string GetString(string key)- keystringField name.
Gets an unsigned 64-bit integer field from the event payload.
ulong GetUInt64(string key)- keystringField name.
Indicates whether the event is local to this server/client.
bool IsLocal()Indicates whether the event is marked as reliable.
bool IsReliable()Sets a boolean field on the event payload.
void SetBool(string key, bool value)Sets an entity reference on the event payload.
void SetEntity<K>(string key, K value) where K : CEntityInstance- keystringField name.
- valueKEntity instance.
Sets an entity index field on the event payload.
void SetEntityIndex(string key, int value)Sets a floating-point field on the event payload.
void SetFloat(string key, float value)Sets an integer field on the event payload.
void SetInt32(string key, int value)Sets a player slot field on the event payload.
void SetPlayerSlot(string key, int value)Sets a raw pointer value on the event payload.
void SetPtr(string key, nint value)Sets a string field on the event payload.
void SetString(string key, string value)