Class ConditionsAnalyzer
Namespace: Unity.MARS.Query
Syntax
public static class ConditionsAnalyzer : object
Methods
GetConditionTypesForTrait(String, List<Type>)
Finds types of conditions that test against a given trait
Declaration
public static bool GetConditionTypesForTrait(string traitName, List<Type> conditionTypes)
Parameters
Type | Name | Description |
---|---|---|
String | traitName | Name of the trait that conditions must test against |
List<Type> | conditionTypes | List that will be filled out with types of conditions that use the trait |
Returns
Type | Description |
---|---|
Boolean | True if any condition types were found, false otherwise |
GetRelationTypesForChild1Trait(String, List<Type>)
Finds types of relations that test against a given trait for their first child
Declaration
public static bool GetRelationTypesForChild1Trait(string traitName, List<Type> relationTypes)
Parameters
Type | Name | Description |
---|---|---|
String | traitName | Name of the trait that relations must test against for their first child |
List<Type> | relationTypes | List that will be filled out with types of relations that use the trait |
Returns
Type | Description |
---|---|
Boolean | True if any relation types were found, false otherwise |
GetRelationTypesForChild2Trait(String, List<Type>)
Finds types of relations that test against a given trait for their second child
Declaration
public static bool GetRelationTypesForChild2Trait(string traitName, List<Type> relationTypes)
Parameters
Type | Name | Description |
---|---|---|
String | traitName | Name of the trait that relations must test against for their second child |
List<Type> | relationTypes | List that will be filled out with types of relations that use the trait |
Returns
Type | Description |
---|---|
Boolean | True if any relation types were found, false otherwise |