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
| Member | What it is |
|---|
protected LogicValueSender() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
| Member | What it is |
|---|
protected uint identifier | Backing id of the data. |
Properties
| Member | What 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
| Member | What 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: