Class ConditionChecksExtensions
Namespace: Surfer
Assembly: cs.temp.dll.dll
Syntax
public static class ConditionChecksExtensions
Methods
GetAllCanvasNames()
Get all the canvas names/paths of the reactions. Used for the inspector
Declaration
public static string[] GetAllCanvasNames()
Returns
Type | Description |
---|---|
String[] | Names/paths list |
GetAllUIToolkitNames()
Get all the UIToolkit names/paths of the reactions. Used for the inspector
Declaration
public static string[] GetAllUIToolkitNames()
Returns
Type | Description |
---|---|
String[] | Names/paths list |
GetFieldsList(String)
Declaration
public static List<PathField> GetFieldsList(string key)
Parameters
Type | Name | Description |
---|---|---|
String | key |
Returns
Type | Description |
---|---|
List<PathField> |
GetKey(String, SUCompatibility_ID)
Get the key of a specific condition. Used for the inspector
Declaration
public static string GetKey(string path, SUCompatibility_ID compatibilityID = SUCompatibility_ID.Both)
Parameters
Type | Name | Description |
---|---|---|
String | path | Condition name/path to retrieve the key |
SUCompatibility_ID | compatibilityID |
Returns
Type | Description |
---|---|
String | Condition key |
GetKeyFromUnion(String, SUCompatibility_ID)
Get the key of a specific condition. Used for the inspector
Declaration
public static string GetKeyFromUnion(string path, SUCompatibility_ID compatibilityID = SUCompatibility_ID.Both)
Parameters
Type | Name | Description |
---|---|---|
String | path | Condition name/path to retrieve the key |
SUCompatibility_ID | compatibilityID |
Returns
Type | Description |
---|---|
String | Condition key |
GetNameFromUnion(String)
Get the name/path of a specific condition. Used for the inspector
Declaration
public static string GetNameFromUnion(string key)
Parameters
Type | Name | Description |
---|---|---|
String | key | Condition key to retrieve the name/path |
Returns
Type | Description |
---|---|
String | Condition name/path |
IsSatisfied(String, SUElementData, SUConditionData, Object)
Check if a specific condition is satisfied
Declaration
public static bool IsSatisfied(string conditionKey, SUElementData eleData, SUConditionData data, object evtData)
Parameters
Type | Name | Description |
---|---|---|
String | conditionKey | Condition key |
SUElementData | eleData | |
SUConditionData | data | |
Object | evtData |
Returns
Type | Description |
---|---|
Boolean | true if satisfied, false otherwise |