Modular Architecture V1.0.0
Loading...
Searching...
No Matches
ModularArchitecture.Conditions.Condition Class Reference

Serialized Condition Class that will compare two references together based on a given comparison operator.
Condition has it's own drawer that will set the subject and target to be references of the given Value Type. More...

Inheritance diagram for ModularArchitecture.Conditions.Condition:

Public Member Functions

bool Evaluate ()
 Evaluates the condition by comparing the subject against the target
DataReference Types are IComparable and thus the comparison is based off the types operations.
int CompareTo (Condition other)

Public Attributes

string id

Private Attributes

ConditionValueType _type = ConditionValueType.Int
ConditionComparison _comparison = ConditionComparison.Equal
DataReferenceBase _subject = new IntReference()
DataReferenceBase _target = new IntReference()

Detailed Description

Serialized Condition Class that will compare two references together based on a given comparison operator.
Condition has it's own drawer that will set the subject and target to be references of the given Value Type.

Member Function Documentation

◆ CompareTo()

int ModularArchitecture.Conditions.Condition.CompareTo ( Condition other)
inline

◆ Evaluate()

bool ModularArchitecture.Conditions.Condition.Evaluate ( )
inline

Evaluates the condition by comparing the subject against the target
DataReference Types are IComparable and thus the comparison is based off the types operations.

Returns
Returns true or false depending on wether the condition's evaluation was successful or not

Member Data Documentation

◆ _comparison

ConditionComparison ModularArchitecture.Conditions.Condition._comparison = ConditionComparison.Equal
private

◆ _subject

DataReferenceBase ModularArchitecture.Conditions.Condition._subject = new IntReference()
private

◆ _target

DataReferenceBase ModularArchitecture.Conditions.Condition._target = new IntReference()
private

◆ _type

ConditionValueType ModularArchitecture.Conditions.Condition._type = ConditionValueType.Int
private

◆ id

string ModularArchitecture.Conditions.Condition.id

The documentation for this class was generated from the following file:
  • Runtime/Conditions/Condition.cs