Adventure Creator  1.66.8
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2018
AC.PlayMakerIntegration Class Reference

Static Public Member Functions

static bool IsDefinePresent ()
 Checks if the 'PlayMakerIsPresent' preprocessor has been defined. More...
 
static void CallEvent (GameObject linkedObject, string eventName, string fsmName)
 Calls a PlayMaker event on a specific FSM. More...
 
static void CallEvent (GameObject linkedObject, string eventName)
 Calls a PlayMaker FSM event. More...
 
static int GetGlobalInt (string _name)
 Gets the value of a PlayMaker global integer. More...
 
static bool GetGlobalBool (string _name)
 Gets the value of a PlayMaker global boolean. More...
 
static string GetGlobalString (string _name)
 Gets the value of a PlayMaker global string. More...
 
static float GetGlobalFloat (string _name)
 Gets the value of a PlayMaker global float. More...
 
static Vector3 GetGlobalVector3 (string _name)
 Gets the value of a PlayMaker global Vector3. More...
 
static void SetGlobalInt (string _name, int _val)
 Sets the value of a PlayMaker global integer. More...
 
static void SetGlobalBool (string _name, bool _val)
 Sets the value of a PlayMaker global booleam. More...
 
static void SetGlobalString (string _name, string _val)
 Sets the value of a PlayMaker global string. More...
 
static void SetGlobalFloat (string _name, float _val)
 Sets the value of a PlayMaker global float. More...
 
static void SetGlobalVector3 (string _name, Vector3 _val)
 Sets the value of a PlayMaker global Vector3. More...
 

Detailed Description

A class the contains a number of static functions to assist with PlayMaker integration. To use PlayMaker with Adventure Creator, the 'PlayMakerIsPresent' preprocessor must be defined.

Member Function Documentation

◆ CallEvent() [1/2]

static void AC.PlayMakerIntegration.CallEvent ( GameObject  linkedObject,
string  eventName,
string  fsmName 
)
static

Calls a PlayMaker event on a specific FSM.

Parameters
linkedObjectThe GameObject with the PlayMakerFSM component
eventNameThe name of the event to call
fsmNmeThe name of the FSM to call

◆ CallEvent() [2/2]

static void AC.PlayMakerIntegration.CallEvent ( GameObject  linkedObject,
string  eventName 
)
static

Calls a PlayMaker FSM event.

Parameters
linkedObjectThe GameObject with the PlayMakerFSM component
eventNameThe name of the event to call

◆ GetGlobalBool()

static bool AC.PlayMakerIntegration.GetGlobalBool ( string  _name)
static

Gets the value of a PlayMaker global boolean.

Parameters
_nameThe name of the PlayMaker global boolean to search for
Returns
The value of the PlayMaker global boolean

◆ GetGlobalFloat()

static float AC.PlayMakerIntegration.GetGlobalFloat ( string  _name)
static

Gets the value of a PlayMaker global float.

Parameters
_nameThe name of the PlayMaker global float to search for
Returns
The value of the PlayMaker global float

◆ GetGlobalInt()

static int AC.PlayMakerIntegration.GetGlobalInt ( string  _name)
static

Gets the value of a PlayMaker global integer.

Parameters
_nameThe name of the PlayMaker global integer to search for
Returns
The value of the PlayMaker global integer

◆ GetGlobalString()

static string AC.PlayMakerIntegration.GetGlobalString ( string  _name)
static

Gets the value of a PlayMaker global string.

Parameters
_nameThe name of the PlayMaker global string to search for
Returns
The value of the PlayMaker global string

◆ GetGlobalVector3()

static Vector3 AC.PlayMakerIntegration.GetGlobalVector3 ( string  _name)
static

Gets the value of a PlayMaker global Vector3.

Parameters
_nameThe name of the PlayMaker global Vector3 to search for
Returns
The value of the PlayMaker global Vector3

◆ IsDefinePresent()

static bool AC.PlayMakerIntegration.IsDefinePresent ( )
static

Checks if the 'PlayMakerIsPresent' preprocessor has been defined.

Returns
True if the 'PlayMakerIsPresent' preprocessor has been defined

◆ SetGlobalBool()

static void AC.PlayMakerIntegration.SetGlobalBool ( string  _name,
bool  _val 
)
static

Sets the value of a PlayMaker global booleam.

Parameters
_nameThe name of the PlayMaker global booleam to update
_valThe new value to assign the PlayMaker global booleam

◆ SetGlobalFloat()

static void AC.PlayMakerIntegration.SetGlobalFloat ( string  _name,
float  _val 
)
static

Sets the value of a PlayMaker global float.

Parameters
_nameThe name of the PlayMaker global float to update
_valThe new value to assign the PlayMaker global float

◆ SetGlobalInt()

static void AC.PlayMakerIntegration.SetGlobalInt ( string  _name,
int  _val 
)
static

Sets the value of a PlayMaker global integer.

Parameters
_nameThe name of the PlayMaker global integer to update
_valThe new value to assign the PlayMaker global integer

◆ SetGlobalString()

static void AC.PlayMakerIntegration.SetGlobalString ( string  _name,
string  _val 
)
static

Sets the value of a PlayMaker global string.

Parameters
_nameThe name of the PlayMaker global string to update
_valThe new value to assign the PlayMaker global string

◆ SetGlobalVector3()

static void AC.PlayMakerIntegration.SetGlobalVector3 ( string  _name,
Vector3  _val 
)
static

Sets the value of a PlayMaker global Vector3.

Parameters
_nameThe name of the PlayMaker global Vector3 to update
_valThe new value to assign the PlayMaker global Vector3