Struct ArenaObjectiveEntry
One objective as the client sees it.
[Serializable]
public struct ArenaObjectiveEntry
- Inherited Members
Remarks
Serialized by hand (ArenaBroadcastSerializers): Position is only on the wire for the one state that has a position to send.
Fields
Holder
Flag stand: the carrier, or 0 when not carried. Control point: the team whose capture is in progress, or -1, as a long.
public long Holder
Field Value
Kind
Flag stand or control point.
public ArenaObjectiveKind Kind
Field Value
ObjectiveID
Scene object id of the flag stand or control point.
public long ObjectiveID
Field Value
Position
Flag stand: where a dropped flag lies. Zero otherwise.
public Vector3 Position
Field Value
- Vector3
Remarks
Only sent for a DROPPED flag. A flag at home has no marker to place, and a carried
flag hangs off the carrier's transform — ArenaFlagVisuals reads this field on the
dropped branch alone, and the producer only ever fills it there. A control point never has
one at all. Twelve bytes per objective, on a message every arena occupant receives once a
second, for a field almost every objective leaves at zero; see
ArenaBroadcastSerializers, which restores Vector3.zero otherwise.
Progress
Flag stand: 0 home, 1 carried, 2 dropped (see ArenaFlagState). Control point: capture progress so far.
public int Progress
Field Value
Team
Flag stand: the flag's team. Control point: the owner, or -1 for neutral.
public int Team