Skip to main content

LogicBoolSender

A class in Root.Township, Alta.Logic.

Logic component that sends a bool to linked logic receivers. The value is stored in its shared logic save data.

Constructors​

MemberWhat it is
LogicBoolSender()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private bool currentValuePrivate: the value being sent. Changed with UpdateValue and saved in the logic data.

Methods​

MemberWhat it is
bool ReadValue()Current value.
void UpdateValue(bool value)Sets the value and pushes it to the shared data if it changed.
protected override void ReadDataValue()Reads the value from the shared data. Runs when it changes from elsewhere.
protected override void WriteDataValue()Writes the value into the shared data.

Used in​

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