Class PlayMakerExtensions
Extensions for interacting with and modifying FSMs.
Inheritance
PlayMakerExtensions
Assembly: ItemChanger.dll
Syntax
public static class PlayMakerExtensions
Methods
View Source
AddFirstAction(FsmState, FsmStateAction)
Declaration
public static void AddFirstAction(this FsmState state, FsmStateAction action)
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
| FsmStateAction |
action |
|
View Source
AddFsmBool(PlayMakerFSM, string, bool)
Declaration
public static FsmBool AddFsmBool(this PlayMakerFSM fsm, string name, bool value)
Parameters
| Type |
Name |
Description |
| PlayMakerFSM |
fsm |
|
| string |
name |
|
| bool |
value |
|
Returns
View Source
AddFsmGameObject(PlayMakerFSM, string, GameObject)
Declaration
public static FsmGameObject AddFsmGameObject(this PlayMakerFSM fsm, string name, GameObject value)
Parameters
Returns
| Type |
Description |
| FsmGameObject |
|
View Source
AddFsmInt(PlayMakerFSM, string, int)
Declaration
public static FsmInt AddFsmInt(this PlayMakerFSM fsm, string name, int value)
Parameters
| Type |
Name |
Description |
| PlayMakerFSM |
fsm |
|
| string |
name |
|
| int |
value |
|
Returns
View Source
AddLastAction(FsmState, FsmStateAction)
Declaration
public static void AddLastAction(this FsmState state, FsmStateAction action)
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
| FsmStateAction |
action |
|
View Source
AddState(PlayMakerFSM, FsmState)
Declaration
public static void AddState(this PlayMakerFSM fsm, FsmState state)
Parameters
| Type |
Name |
Description |
| PlayMakerFSM |
fsm |
|
| FsmState |
state |
|
View Source
AddState(PlayMakerFSM, string)
Declaration
public static FsmState AddState(this PlayMakerFSM fsm, string name)
Parameters
| Type |
Name |
Description |
| PlayMakerFSM |
fsm |
|
| string |
name |
|
Returns
| Type |
Description |
| FsmState |
|
View Source
AddTransition(FsmState, FsmEvent, FsmState)
Declaration
public static FsmTransition AddTransition(this FsmState state, FsmEvent fsmEvent, FsmState toState)
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
| FsmEvent |
fsmEvent |
|
| FsmState |
toState |
|
Returns
| Type |
Description |
| FsmTransition |
|
View Source
AddTransition(FsmState, string, FsmState)
Declaration
public static FsmTransition AddTransition(this FsmState state, string eventName, FsmState toState)
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
| string |
eventName |
|
| FsmState |
toState |
|
Returns
| Type |
Description |
| FsmTransition |
|
View Source
AddTransition(FsmState, string, string)
Declaration
public static FsmTransition AddTransition(this FsmState state, string eventName, string toState)
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
| string |
eventName |
|
| string |
toState |
|
Returns
| Type |
Description |
| FsmTransition |
|
View Source
ClearActions(FsmState)
Declaration
public static void ClearActions(this FsmState state)
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
View Source
ClearTransitions(FsmState)
Declaration
public static void ClearTransitions(this FsmState state)
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
View Source
GetActionsOfType<T>(FsmState)
Declaration
public static T[] GetActionsOfType<T>(this FsmState state) where T : FsmStateAction
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
Returns
Type Parameters
View Source
GetFirstActionOfType<T>(FsmState)
Declaration
public static T GetFirstActionOfType<T>(this FsmState state) where T : FsmStateAction
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
Returns
Type Parameters
View Source
GetState(PlayMakerFSM, string)
Declaration
public static FsmState GetState(this PlayMakerFSM fsm, string name)
Parameters
| Type |
Name |
Description |
| PlayMakerFSM |
fsm |
|
| string |
name |
|
Returns
| Type |
Description |
| FsmState |
|
View Source
InsertAction(FsmState, FsmStateAction, int)
Declaration
public static void InsertAction(this FsmState state, FsmStateAction action, int index)
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
| FsmStateAction |
action |
|
| int |
index |
|
View Source
RemoveAction(FsmState, int)
Declaration
public static void RemoveAction(this FsmState state, int index)
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
| int |
index |
|
View Source
RemoveActionsOfType<T>(FsmState)
Declaration
public static void RemoveActionsOfType<T>(this FsmState state) where T : FsmStateAction
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
Type Parameters
View Source
RemoveFirstActionOfType<T>(FsmState)
Declaration
public static void RemoveFirstActionOfType<T>(this FsmState state) where T : FsmStateAction
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
Type Parameters
View Source
RemoveTransitionsOn(FsmState, string)
Declaration
public static void RemoveTransitionsOn(this FsmState state, string eventName)
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
| string |
eventName |
|
View Source
RemoveTransitionsTo(FsmState, string)
Declaration
public static void RemoveTransitionsTo(this FsmState state, string toState)
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
| string |
toState |
|
View Source
ReplaceAction(FsmState, FsmStateAction, int)
Declaration
public static void ReplaceAction(this FsmState state, FsmStateAction action, int index)
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
| FsmStateAction |
action |
|
| int |
index |
|
View Source
SetActions(FsmState, params FsmStateAction[])
Declaration
public static void SetActions(this FsmState state, params FsmStateAction[] actions)
Parameters
| Type |
Name |
Description |
| FsmState |
state |
|
| FsmStateAction[] |
actions |
|
View Source
SetToState(FsmTransition, FsmState)
Declaration
public static void SetToState(this FsmTransition transition, FsmState toState)
Parameters
| Type |
Name |
Description |
| FsmTransition |
transition |
|
| FsmState |
toState |
|