M_MSCLoader_PlayMakerExtensions_FsmInject__1 - piotrulos/MSCModLoader GitHub Wiki

FsmInject<T>(T:PlayMakerFSM, String, T, Int32, Boolean) Method

Insert custom Action to the Playmaker

Definition

Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.3.1.346

C#

public static bool FsmInject<T>(
	this PlayMakerFSM fsm,
	string stateName,
	T action,
	int index = -1,
	bool replace = false
)
where T : FsmStateAction

View Source

Parameters

  PlayMakerFSM
Target Playmaker
  String
Target state name
  T
Custom FsmStateAction
  Int32  (Optional)
The index where to insert the action
  Boolean  (Optional)
If true, replaces the action at specified index, otherwise inserts it.

Type Parameters

\[Missing <typeparam name="T"/> documentation for "M:MSCLoader.PlayMakerExtensions.FsmInject``1(PlayMakerFSM,System.String,``0,System.Int32,System.Boolean)"\]

Return Value

Boolean
Whether the injection was successful

Usage Note

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).

See Also

Reference

PlayMakerExtensions Class
FsmInject Overload
MSCLoader Namespace

⚠️ **GitHub.com Fallback** ⚠️