Class ArenaClientEvents
The moments of an arena match, as C# events for code that wants to react to them: audio, camera, effects, analytics.
public static class ArenaClientEvents
- Inheritance
-
ArenaClientEvents
- Inherited Members
Remarks
Designers get the same moments as ECA triggers on the ArenaTemplate; this is
the programmer's side of the same hook. Raised by UITKArenaHud from the match state
broadcast, so everything here is server-timed.
Properties
Current
The match the local player is in, or null when not in one. Set by the HUD from the state broadcast.
public static ArenaMatchStateBroadcast? Current { get; }
Property Value
IsSpectating
True while the local player is standing in an arena match they have no seat in.
public static bool IsSpectating { get; }
Property Value
Events
OnArenaEvent
A moment of play the server announced: a kill, a flag, a warning. Feeds the kill feed.
public static event Action<ArenaEventBroadcast> OnArenaEvent
Event Type
OnCountdownTick
Each second of the start countdown, with the seconds left. 0 is the start itself.
public static event Action<int> OnCountdownTick
Event Type
OnMatchEnded
The match ended, with the full result.
public static event Action<ArenaResultsBroadcast> OnMatchEnded
Event Type
OnMatchLive
The match went live.
public static event Action OnMatchLive
Event Type
OnMatchState
Every match state the server sent, as it arrives. The scoreboard draws from this.
public static event Action<ArenaMatchStateBroadcast> OnMatchState
Event Type
OnReadyCheck
A ready check started or moved. The HUD's prompt draws from this.
public static event Action<ArenaReadyCheckBroadcast> OnReadyCheck
Event Type
OnTeamScored
A team's score changed. Team index, new score.
public static event Action<int, int> OnTeamScored