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

kind SimEventKind
entityId int
otherId int
value float
intValue int
position Vec2
failure CommandFailure
key string

Properties

EntityId

Primary entity identifier; zero for global events.

public int EntityId { get; }

Property Value

int

Failure

Rejection reason for CommandRejected events.

public CommandFailure Failure { get; }

Property Value

CommandFailure

IntValue

Context index or signed global state delta.

public int IntValue { get; }

Property Value

int

Key

Template, view, or command lookup key when applicable.

public string Key { get; }

Property Value

string

Kind

Event category.

public SimEventKind Kind { get; }

Property Value

SimEventKind

OtherId

Related target or source identifier.

public int OtherId { get; }

Property Value

int

Position

Simulation-space event location.

public Vec2 Position { get; }

Property Value

Vec2

Value

Damage amount or new global state total.

public float Value { get; }

Property Value

float