Skip to main content

HealthData

A class in Root.Township, Alta.StatSystem.

Editor asset that stores the health of every network prefab as a list of Instance entries. HealthValidation fills it and loads from it.

Constructors​

MemberWhat it is
HealthData()Creates a HealthData with default values.

Fields​

1 private and internal field
MemberWhat it is
private List<Instance> healthInstancesThe stored prefab and health entries.

Properties​

MemberWhat it is
int Count { get; }Number of entries.
bool IsReadOnly { get; }Always false.

Methods​

MemberWhat it is
void Add(Instance item)Adds an entry.
void Clear()Removes all entries.
bool Contains(Instance item)True if the entry is in the list.
void CopyTo(Instance[] array, int arrayIndex)Copies the entries into an array.
IEnumerator<Instance> GetEnumerator()Enumerates the entries.
bool Remove(Instance item)Removes an entry.
1 private and internal method
MemberWhat it is
private IEnumerator System.Collections.IEnumerable.GetEnumerator()Enumerates the entries.

Used in​

Members of other types that take, return or hold a HealthData: