Class OwnedItemState

Namespace
SurvivorsMaker.Run
Assembly
SurvivorsMaker.Run.dll

Identity, acquisition wave, lifetime and counters belonging to one owned item copy.

public sealed class OwnedItemState
Inheritance
OwnedItemState
Inherited Members

Constructors

OwnedItemState()

public OwnedItemState()

Fields

AcquiredWave

public int AcquiredWave

Field Value

int

Completed

public List<string> Completed

Field Value

List<string>

Counters

public List<InstanceCounter> Counters

Field Value

List<InstanceCounter>

Definition

public ItemDef Definition

Field Value

ItemDef

Effects

public List<EffectLeaseState> Effects

Field Value

List<EffectLeaseState>

ExpiryWave

Zero is unlimited; expiry is exclusive.

public int ExpiryWave

Field Value

int

InstanceId

public long InstanceId

Field Value

long

Methods

GetCounter(string)

Returns an instance counter value, or zero when the key is absent.

public long GetCounter(string key)

Parameters

key string

Returns

long

SetCounter(string, long)

Sets a named per-copy counter; invalid keys are rejected.

public bool SetCounter(string key, long value)

Parameters

key string
value long

Returns

bool