Struct SimEvent
- Namespace
- TDMaker.Core
- Assembly
- TDMaker.Core.dll
A value event. Value is damage or state total; IntValue is a slot, wave, or state delta.
public readonly struct SimEvent
- Inherited Members
Constructors
SimEvent(SimEventKind, int, int, float, int, Vec2, CommandFailure, string)
Creates a compact event.
public SimEvent(SimEventKind kind, int entityId = 0, int otherId = 0, float value = 0, int intValue = 0, Vec2 position = default, CommandFailure failure = CommandFailure.None, string key = null)
Parameters
kindSimEventKindentityIdintotherIdintvaluefloatintValueintpositionVec2failureCommandFailurekeystring
Properties
EntityId
Primary entity identifier; zero for global events.
public int EntityId { get; }
Property Value
Failure
Rejection reason for CommandRejected events.
public CommandFailure Failure { get; }
Property Value
IntValue
Context index or signed global state delta.
public int IntValue { get; }
Property Value
Key
Template, view, or command lookup key when applicable.
public string Key { get; }
Property Value
Kind
Event category.
public SimEventKind Kind { get; }
Property Value
OtherId
Related target or source identifier.
public int OtherId { get; }
Property Value
Position
Simulation-space event location.
public Vec2 Position { get; }
Property Value
Value
Damage amount or new global state total.
public float Value { get; }