M_MSCLoader_PlayMakerExtensions_GetVariable__1 - piotrulos/MSCModLoader GitHub Wiki
Get a variable of specified type and name.
Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.3.3.356
C#
public static T GetVariable<T>(
this PlayMakerFSM pm,
string ID
)
where T : class, new()
View Source
- PlayMakerFSM
- PlayMakerFSM from which to get the variable.
- String
- Name of the variable to find.
- Type of FSM Variable to get.
T
The specified variable if it is found, otherwise null.
In Visual Basic and C#, you can call this method as an instance method on any object of type PlayMakerFSM. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).