Skip to main content

LogicValueSender

An abstract class in Root.Township, Alta.Logic.

Base for logic circuit components that hold a value in the global logic manager's data, saved with the entity. LogicValueSender<TData> does the work for one data type.

Constructors​

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

Fields​

MemberWhat it is
protected uint identifierBacking id of the data.

Properties​

MemberWhat it is
abstract Type DataType { get; }The type of data this component keeps.
abstract uint Identifier { get; }Id of this component's data in the logic manager. 0 when none.
GlobalLogicManager LogicManager { get; protected set; }The GlobalLogicManager holding the data. Found in a parent, or the global one.

Methods​

MemberWhat it is
abstract void Clear()Forgets the identifier and data.
abstract void EditorPreSave(GlobalLogicManager manager)Editor hook before saving. Does nothing in the generic version.

Used in​

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