Class CustomReactionsExtensions
Namespace: Surfer
Assembly: cs.temp.dll.dll
Syntax
public static class CustomReactionsExtensions
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 reaction. Used for the inspector
Declaration
public static string GetKey(string path, SUCompatibility_ID compatibilityID = SUCompatibility_ID.Both)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | Reaction name/path to retrieve the key |
| SUCompatibility_ID | compatibilityID |
Returns
| Type | Description |
|---|---|
| String | Reaction key |
GetKeyFromUnion(String, SUCompatibility_ID)
Get the key of a specific reaction. Used for the inspector
Declaration
public static string GetKeyFromUnion(string path, SUCompatibility_ID compatibilityID = SUCompatibility_ID.Both)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | Reaction name/path to retrieve the key |
| SUCompatibility_ID | compatibilityID |
Returns
| Type | Description |
|---|---|
| String | Reaction key |
GetNameFromUnion(String)
Get the name/path of a specific reaction. Used for the inspector
Declaration
public static string GetNameFromUnion(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| String | key | Reaction key to retrieve the name/path |
Returns
| Type | Description |
|---|---|
| String | Reaction name/path |
PlayReaction(String, SUElementData, SUReactionData, Object)
Play a specific custom reaction
Declaration
public static void PlayReaction(string key, SUElementData eleData, SUReactionData data, object evtData)
Parameters
| Type | Name | Description |
|---|---|---|
| String | key | |
| SUElementData | eleData | |
| SUReactionData | data | |
| Object | evtData |