Skip to main content

LogicSaveData

A class in Root.Township, Alta.Logic.

Saved state of a logic value with an identifier and change events.

Constructors​

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

Fields​

MemberWhat it is
uint identifierIdentifier of the logic value this belongs to.

Events​

MemberWhat it is
event Action ChangedExternallyRaised by OnUpdatedExternal, before UpdatedValue.
event Action UpdatedValueRaised whenever the value updates.

Methods​

MemberWhat it is
void OnUpdated()Raises UpdatedValue.
void OnUpdatedExternal()Raises ChangedExternally then UpdatedValue.
protected override void CopyTo(LogicSaveData target)Copies the identifier to another save data.

Used in​

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