AiMalgam Core 1.1.0
API documentation for the generic Unity3D AI System
Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
NikosAssets.AiMalgam.Descriptions.AiMalgamBaseDestinationContainerWithRuntimeSet< ComponentType, RuntimeSetType > Class Template Reference

A BaseDestinationContainerMono<ComponentType> wrapper to handle AiMalgamBaseRuntimeSet<T>s and the Destinations within this class More...

Public Attributes

bool copyRuntimeSetItemsDistinct = true
 Should the items from _copyFromRuntimeSet set be added distinct? It is recommended to leave this to true
 
bool subscribeToCopyRuntimeSetChanges = true
 Should we subscribe and react to newly added or removed items from the CopyFromRuntimeSet?
 
bool storeIntoRuntimeSetAtStart
 Should the BaseDestinationContainerMono<ComponentType>.Destinations items of this class be stored into StoreInRuntimeSet?
 
bool storeLaterAddedIntoRuntimeSet = true
 Should items that were added later at runtime to the BaseDestinationContainerMono<ComponentType>.Destinations list be added to StoreInRuntimeSet?
 

Protected Member Functions

virtual void Start ()
 
virtual void OnDestroy ()
 
virtual void OnValidate ()
 
virtual void CheckSubscribeStoreIntoRuntimeSet ()
 
virtual void CheckSubscribeCopyFromRuntimeSet ()
 
virtual void UnsubscribeStoreInRuntimeSet (RuntimeSetType storeInSet)
 
virtual void UnsubscribeCopyFromRuntimeSet (RuntimeSetType copyFromSet)
 
virtual void AddIntoStoreRuntimeSet (ComponentType comp)
 
virtual void RemoveFromStoreRuntimeSet (ComponentType comp)
 
virtual void OnCopyRuntimeSetItemAdded (ComponentType componentType)
 
virtual void OnCopyRuntimeSetItemRemoved (ComponentType componentType)
 

Protected Attributes

RuntimeSetType _copyFromRuntimeSet
 Copy the items from the assigned RuntimeSetType to the BaseDestinationContainerMono<ComponentType>.Destinations list of this class
 
RuntimeSetType _prevCopyFromRuntimeSet
 A helper field used when the user changed the _copyFromRuntimeSet field in the inspector or via code in the CopyFromRuntimeSet property
 
RuntimeSetType _storeInRuntimeSet
 Store items from the BaseDestinationContainerMono<ComponentType>.Destinations list of this class into the assigned _storeInRuntimeSet
 
RuntimeSetType _prevStoreInRuntimeSet
 A helper field used when the user changed the _storeInRuntimeSet field in the inspector or via code in the StoreInRuntimeSet property
 

Properties

RuntimeSetType CopyFromRuntimeSet [get, set]
 Copy the items from the assigned RuntimeSetType to the BaseDestinationContainerMono<ComponentType>.Destinations list of this class Changing this property, updates the subscriptions as well
 
RuntimeSetType StoreInRuntimeSet [get, set]
 Store items from the BaseDestinationContainerMono<ComponentType>.Destinations list of this class into the assigned _storeInRuntimeSet Changing this property, updates the subscriptions as well
 

Detailed Description

A BaseDestinationContainerMono<ComponentType> wrapper to handle AiMalgamBaseRuntimeSet<T>s and the Destinations within this class

Template Parameters
ComponentTypeSpecify a Component that must inherit from Component
RuntimeSetTypeSpecify a RuntimeSet that must inherit from AiMalgamBaseRuntimeSet<T>
Type Constraints
ComponentType :Component 
RuntimeSetType :AiMalgamBaseRuntimeSet<ComponentType>