AiMalgam Core 1.1.0
API documentation for the generic Unity3D AI System
Protected Member Functions | Protected Attributes | Properties | List of all members
NikosAssets.AiMalgam.Settings.Comparers.AiMalgamBaseComparisonForDescriptors< DescriptorType > Class Template Reference

A helper AiMalgamBaseComparison class that provides a mechanic to map an AiMalgamBaseDescriptor to it for descriptor base comparisons More...

Protected Member Functions

override void Awake ()
 
override void Reset ()
 
override void OnValidate ()
 
virtual void UpdateSupportedDescriptorType ()
 
- Protected Member Functions inherited from NikosAssets.AiMalgam.Settings.AiMalgamNode
override void Reset ()
 
override void OnEnable ()
 
override void Awake ()
 
override void OnValidate ()
 

Protected Attributes

string _descriptorTypeSupported = ""
 Used to find the matching AiMalgamBaseDescriptor for this (specific and inherited) Setting by generating a hash (DescriptorTypeSupportedHash)
 
int _descriptorTypeSupportedHash = -1
 Used to find the matching AiMalgamBaseDescriptor for this (specific and inherited) Setting
 

Properties

virtual string DescriptorTypeSupported [get, protected set]
 Used to find the matching AiMalgamBaseDescriptor for this (specific and inherited) Setting by generating a hash (DescriptorTypeSupportedHash) Updating this property, generates the DescriptorTypeSupportedHash automatically
 
virtual int DescriptorTypeSupportedHash [get]
 Used to find the matching AiMalgamBaseDescriptor for this (specific and inherited) Setting
 

Additional Inherited Members

- Public Member Functions inherited from NikosAssets.AiMalgam.Settings.Comparers.AiMalgamBaseComparison
abstract int Compare (AiMalgamEntity entityA, AiMalgamEntity entityB, AiMalgamEntity checkAgainst)
 Compares 2 agents against each other More...
 
virtual AiMalgamEntity GetResult (List< AiMalgamEntity > targets, AiMalgamEntity checkAgainst, bool sortOriginalList)
 Calls the Compare method and returns the first element (index 0) after sorting 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 inherited from NikosAssets.AiMalgam.Settings.Comparers.AiMalgamBaseComparison
AiMalgamBaseComparison output
 Used in the AiMalgamNodeGraph. Do not temper with it!
 
- Events inherited from NikosAssets.AiMalgam.Settings.AiMalgamNode
virtual Action< AiMalgamNodeOnNodeChanged
 Emitted, if the node values where changed (OnValidate())
 

Detailed Description

A helper AiMalgamBaseComparison class that provides a mechanic to map an AiMalgamBaseDescriptor to it for descriptor base comparisons

Template Parameters
DescriptorTypeThe specified DescriptorType must inherit from AiMalgamBaseDescriptor
Type Constraints
DescriptorType :AiMalgamBaseDescriptor