AiMalgam Core 1.1.0
API documentation for the generic Unity3D AI System
Public Member Functions | Public Attributes | List of all members
NikosAssets.AiMalgam.Settings.Conditions.AiMalgamConditionResultReader Class Reference

A specific AiMalgamBaseConditionForDescriptors<DescriptorType> to read the AiMalgamConditionResult from the AiMalgamConditionResultDescriptor More...

Public Member Functions

override AiMalgamConditionResult IsConditionMetFor (AiMalgamEntity targetAiMalgamEntity, AiMalgamEntity conditionsRequesterEntity)
 Read the AiMalgamConditionResult from the AiMalgamConditionResultDescriptor found in targetAiMalgamEntity More...
 

Public Attributes

bool useKey
 Do we need to map a specific AiMalgamConditionResult to the key?
 
string key = "1"
 The key to find the respective AiMalgamConditionResult from the AiMalgamConditionResultDescriptor of the target AiMalgamEntity
 

Additional Inherited Members

- Protected Member Functions inherited from NikosAssets.AiMalgam.Settings.Conditions.AiMalgamBaseConditionForDescriptors< AiMalgamConditionResultDescriptor >
override void Awake ()
 
override void Reset ()
 
override void OnValidate ()
 
virtual void UpdateSupportedDescriptorType ()
 
- Protected Attributes inherited from NikosAssets.AiMalgam.Settings.Conditions.AiMalgamBaseConditionForDescriptors< AiMalgamConditionResultDescriptor >
string _descriptorTypeSupported
 Used to find the matching AiMalgamBaseDescriptor for this (specific and inherited) Setting by generating a hash (DescriptorTypeSupportedHash)
 
int _descriptorTypeSupportedHash
 Used to find the matching AiMalgamBaseDescriptor for this (specific and inherited) Setting
 
- Properties inherited from NikosAssets.AiMalgam.Settings.Conditions.AiMalgamBaseConditionForDescriptors< AiMalgamConditionResultDescriptor >
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
 

Detailed Description

A specific AiMalgamBaseConditionForDescriptors<DescriptorType> to read the AiMalgamConditionResult from the AiMalgamConditionResultDescriptor

Member Function Documentation

◆ IsConditionMetFor()

override AiMalgamConditionResult NikosAssets.AiMalgam.Settings.Conditions.AiMalgamConditionResultReader.IsConditionMetFor ( AiMalgamEntity  targetAiMalgamEntity,
AiMalgamEntity  conditionsRequesterEntity 
)

Read the AiMalgamConditionResult from the AiMalgamConditionResultDescriptor found in targetAiMalgamEntity

Parameters
targetAiMalgamEntityThe AiMalgamEntity to check the condition on
conditionsRequesterEntityThe AiMalgamEntity that calls this condition (may be the same as targetAiMalgamEntity )
Returns
AiMalgamConditionResult