Table of Contents

Class ArenaEventData

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Event data handed to arena cue triggers on the client: which moment this is.

public class ArenaEventData : EventData
Inheritance
ArenaEventData
Inherited Members

Remarks

Lets one trigger asset serve several cues — an action can read SecondsRemaining to pick a pitch or a particle count — and lets MatchEndTriggers tell a win from a loss.

Constructors

ArenaEventData(ICharacter, ArenaCuePhase, int, int, int)

public ArenaEventData(ICharacter initiator, ArenaCuePhase phase, int secondsRemaining, int team, int winnerTeam)

Parameters

initiator ICharacter
phase ArenaCuePhase
secondsRemaining int
team int
winnerTeam int

ArenaEventData(ICharacter, ArenaCuePhase, int, int, int, ArenaEventKind, bool, bool, int)

public ArenaEventData(ICharacter initiator, ArenaCuePhase phase, int secondsRemaining, int team, int winnerTeam, ArenaEventKind eventKind, bool isActor, bool isTarget, int value)

Parameters

initiator ICharacter
phase ArenaCuePhase
secondsRemaining int
team int
winnerTeam int
eventKind ArenaEventKind
isActor bool
isTarget bool
value int

Properties

EventKind

For Event: which moment.

public ArenaEventKind EventKind { get; }

Property Value

ArenaEventKind

IsActor

For events: whether the local player (or, for rewards, the character) is the actor.

public bool IsActor { get; }

Property Value

bool

IsTarget

For events: whether the local player is the target.

public bool IsTarget { get; }

Property Value

bool

Phase

The phase the cue belongs to.

public ArenaCuePhase Phase { get; }

Property Value

ArenaCuePhase

SecondsRemaining

Seconds left on the start timer; 0 at the start. Unused for the end.

public int SecondsRemaining { get; }

Property Value

int

Team

The local player's team.

public int Team { get; }

Property Value

int

Value

For events: the event's value (streak, seconds, points). For rewards: the placement.

public int Value { get; }

Property Value

int

WinnerTeam

The winning team at the end, or -1 for a draw. -1 during the countdown.

public int WinnerTeam { get; }

Property Value

int

Methods

ToString()

Returns the type name of this event data instance.

public override string ToString()

Returns

string