Table of Contents

Class ArenaFlagVisuals

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

Draws the flags of a Capture the Flag match: a marker over a carrier's head, and a marker where a dropped flag lies.

public static class ArenaFlagVisuals
Inheritance
ArenaFlagVisuals
Inherited Members

Remarks

Driven entirely by Objectives; the client keeps no flag state of its own. Each state the HUD receives is reconciled against what is drawn: markers for flags that went home are destroyed, carriers who changed get their marker moved, and a dropped flag's marker is placed where the server said it fell.

The template may supply prefabs for both markers. Without them a tinted primitive is used, so an arena works before any art exists. Markers are tinted with the flag's team colour, from the template.

Methods

Apply(ArenaMatchStateBroadcast, ArenaTemplate)

Brings the drawn flags into line with a match state.

public static void Apply(ArenaMatchStateBroadcast state, ArenaTemplate template)

Parameters

state ArenaMatchStateBroadcast
template ArenaTemplate

Clear()

Destroys every marker.

public static void Clear()