Table of Contents

Class DisplayRegionNameAction

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

ECA action that displays the region name as a 2D label when a character enters a region. Client-only: suppressed on server and during prediction reconciliation.

[Serializable]
public class DisplayRegionNameAction : BaseAction, IAction
Inheritance
DisplayRegionNameAction
Implements
Inherited Members

Fields

DisplayColor

The color of the displayed text.

public Color DisplayColor

Field Value

Color

FadeColor

Whether the label color fades over its lifetime.

public bool FadeColor

Field Value

bool

Font

The font used for the displayed text.

public Font Font

Field Value

Font

FontSize

The font size of the displayed text.

public int FontSize

Field Value

int

IncreaseY

Whether the label position increases on the Y-axis over its lifetime.

public bool IncreaseY

Field Value

bool

LifeTime

How long the label is displayed in seconds.

public float LifeTime

Field Value

float

Style

The font style of the displayed text.

public FontStyle Style

Field Value

FontStyle

Methods

Execute(ICharacter, EventData)

Executes the action. Must be implemented by derived classes.

public override void Execute(ICharacter initiator, EventData eventData)

Parameters

initiator ICharacter

The character initiating the action.

eventData EventData

Event data for the action.

Events

OnDisplay2DLabel

Raised on the client when a region name label should be displayed.

public static event Action<string, FontStyle, Font, int, Color, float, bool, bool, Vector2> OnDisplay2DLabel

Event Type

Action<string, FontStyle, Font, int, Color, float, bool, bool, Vector2>