Table of Contents

Class TickEventData

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Lightweight EventData subtype carrying a network tick for tick-aware triggers.

public class TickEventData : EventData
Inheritance
TickEventData
Inherited Members

Constructors

TickEventData(ICharacter, PredictionTick)

Creates tick event data from a replicate input tick.

public TickEventData(ICharacter character, PredictionTick tick)

Parameters

character ICharacter

The event initiator.

tick PredictionTick

The replicate-domain tick.

Properties

IsReplicateTick

True when Tick was sourced from a replicate input tick and may be used directly with prediction-domain state such as buff expiry or cooldown start ticks. False when the tick is a raw authoritative wall-clock tick such as TimeManager.LocalTick.

public bool IsReplicateTick { get; }

Property Value

bool

Tick

The tick carried by this event.

public PredictionTick Tick { get; }

Property Value

PredictionTick

Methods

IsForCharacter(ICharacter)

Returns true when this tick was sourced from the same character whose prediction-domain state is about to consume it.

public bool IsForCharacter(ICharacter character)

Parameters

character ICharacter

The character whose prediction-domain state will consume the tick.

Returns

bool

True when the tick belongs to character.