Struct SimEvent

Namespace
SurvivorsMaker.Simulation
Assembly
SurvivorsMaker.Simulation.dll

Something that happened during one tick, for presentation and replays. Plain values only, so events can be kept after the entities they mention are gone.

public struct SimEvent
Inherited Members

Fields

Amount

public float Amount

Field Value

float

CustomId

Custom events: the sender's id (e.g. "mine_armed"). Built-in events use it for detail (e.g. the status behaviour id).

public string CustomId

Field Value

string

IsCrit

public bool IsCrit

Field Value

bool

Kind

public SimEventKind Kind

Field Value

SimEventKind

Position

public Vec2 Position

Field Value

Vec2

Slot

Weapon slot, or -1.

public int Slot

Field Value

int

SourceId

public int SourceId

Field Value

int

TargetId

public int TargetId

Field Value

int

Tick

public int Tick

Field Value

int

Methods

ToString()

public override string ToString()

Returns

string