Class TickEventData
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
characterICharacterThe event initiator.
tickPredictionTickThe 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
Tick
The tick carried by this event.
public PredictionTick Tick { get; }
Property Value
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
characterICharacterThe character whose prediction-domain state will consume the tick.
Returns
- bool
True when the tick belongs to
character.