AiMalgam Core 1.1.0
API documentation for the generic Unity3D AI System
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | Events | List of all members
NikosAssets.AiMalgam.Settings.Runtime.AiMalgamBaseRuntimeSet< T > Class Template Reference

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< AiMalgamNodeOnNodeChanged
 Emitted, if the node values where changed (OnValidate())
 

Detailed Description

A specific AiMalgamBaseRuntimeCollection that stores generic items in Items

Template Parameters
TAny type that is stored in Items

Member Function Documentation

◆ Add()

virtual void NikosAssets.AiMalgam.Settings.Runtime.AiMalgamBaseRuntimeSet< T >.Add ( item,
bool  distinct = true 
)
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

Parameters
itemThe item to add
distinctDistinct or ignore?

◆ Remove()

virtual bool NikosAssets.AiMalgam.Settings.Runtime.AiMalgamBaseRuntimeSet< T >.Remove ( item)
virtual

Remove the given item from Items and emit NotifyOnItemRemoved, as well as OnItemRemoved if the removal was successful and in playMode

Parameters
itemThe item to remove
Returns
true on removal success