AiMalgam Core 1.1.0
API documentation for the generic Unity3D AI System
|
A specific AiMalgamBaseRuntimeCollection that stores generic items in Items More...
Public Member Functions | |
virtual void | Add (T item, bool distinct=true) |
Add an item of type T distinct or not to Items and emit OnItemAdded, as well as NotifyOnItemAdded if added successfully and in playMode More... | |
virtual bool | Remove (T item) |
Remove the given item from Items and emit NotifyOnItemRemoved, as well as OnItemRemoved if the removal was successful and in playMode More... | |
Public Member Functions inherited from NikosAssets.AiMalgam.Settings.AiMalgamNode | |
override void | OnOpen () |
Called if the AiMalgamNodeGraph hosting this Node is opened | |
virtual void | NotifyOnNodeChanged () |
A helper method to notify node value changes and emit the OnNodeChanged event | |
override object | GetValue (NodePort port) |
Used in the AiMalgamNodeGraph. More... | |
virtual void | ResetMarkingInGraph (AiMalgamEntity requester, bool forceRepaint=false) |
EDITOR ONLY EFFECT. Reset the node's visuals in the AiMalgamNodeGraph More... | |
virtual void | MarkInGraph (AiMalgamEntity requester, bool acceptedOrFailed, bool forceRepaint=false) |
EDITOR ONLY EFFECT. Set the node's visuals in the AiMalgamNodeGraph (accepted or failed) More... | |
virtual void | MarkInGraph (AiMalgamEntity requester, Color markColor, bool forceRepaint=false) |
EDITOR ONLY EFFECT. Set the node's visuals in the AiMalgamNodeGraph More... | |
Public Attributes | |
override Action | NotifyOnItemRemoved |
virtual Action< T > | OnItemRemoved |
Public Attributes inherited from NikosAssets.AiMalgam.Settings.Runtime.AiMalgamBaseRuntimeCollection | |
abstract Action | NotifyOnItemRemoved |
AiMalgamBaseRuntimeCollection | output |
Used in the AiMalgamNodeGraph. Do not temper with it! | |
Protected Member Functions | |
override void | OnDisable () |
Protected Member Functions inherited from NikosAssets.AiMalgam.Settings.AiMalgamNode | |
override void | Reset () |
override void | OnEnable () |
override void | Awake () |
override void | OnValidate () |
Protected Attributes | |
List< T > | _items = new List<T>() |
Properties | |
List< T > | Items [get] |
Events | |
override Action | NotifyOnItemAdded |
virtual Action< T > | OnItemAdded |
Events inherited from NikosAssets.AiMalgam.Settings.Runtime.AiMalgamBaseRuntimeCollection | |
abstract Action | NotifyOnItemAdded |
Events inherited from NikosAssets.AiMalgam.Settings.AiMalgamNode | |
virtual Action< AiMalgamNode > | OnNodeChanged |
Emitted, if the node values where changed (OnValidate()) | |
A specific AiMalgamBaseRuntimeCollection that stores generic items in Items
T | Any type that is stored in Items |
|
virtual |
Add an item of type T distinct or not to Items and emit OnItemAdded, as well as NotifyOnItemAdded if added successfully and in playMode
item | The item to add |
distinct | Distinct or ignore? |
|
virtual |
Remove the given item from Items and emit NotifyOnItemRemoved, as well as OnItemRemoved if the removal was successful and in playMode
item | The item to remove |