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
Completed
public List<string> Completed
Field Value
Counters
public List<InstanceCounter> Counters
Field Value
Definition
public ItemDef Definition
Field Value
Effects
public List<EffectLeaseState> Effects
Field Value
ExpiryWave
Zero is unlimited; expiry is exclusive.
public int ExpiryWave
Field Value
InstanceId
public long InstanceId
Field Value
Methods
GetCounter(string)
Returns an instance counter value, or zero when the key is absent.
public long GetCounter(string key)
Parameters
keystring
Returns
SetCounter(string, long)
Sets a named per-copy counter; invalid keys are rejected.
public bool SetCounter(string key, long value)