Adventure Creator  1.57
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2017
AC.ActionListAsset Class Reference
Inheritance diagram for AC.ActionListAsset:
AC.InvActionList AC.MenuActionList

Public Member Functions

void CopyFromActionList (ActionList actionList)
 
bool IsSkippable ()
 Checks if the ActionListAsset is skippable. This is safer than just reading 'isSkippable', because it also accounts for actionListType - since ActionLists that run in the background cannot be skipped More...
 
void Interact ()
 Runs the ActionList asset file
 
void RunFromIndex (int index)
 Runs the ActionList asset file from a set point. More...
 
RuntimeActionList Interact (int parameterID, int parameterValue)
 Runs the ActionList asset file, after setting the value of an integer parameter if it has one. More...
 

Static Public Member Functions

static void ConvertToCutscene (MenuCommand command)
 
static void ConvertToActionListAsset (MenuCommand command)
 

Public Attributes

List< AC.Actionactions = new List<AC.Action>()
 
bool isSkippable = true
 
ActionListType actionListType = ActionListType.PauseGameplay
 
bool unfreezePauseMenus = true
 
bool useParameters = false
 
List< ActionParameterparameters = new List<ActionParameter>()
 
int tagID
 

Detailed Description

An ActionListAsset is a ScriptableObject that allows a List of Action objects to be stored within an asset file. When the file is run, the Actions are transferred to a local instance of RuntimeActionList and run from there.

Member Function Documentation

RuntimeActionList AC.ActionListAsset.Interact ( int  parameterID,
int  parameterValue 
)

Runs the ActionList asset file, after setting the value of an integer parameter if it has one.

Parameters
parameterIDThe ID of the Integer parameter to set
parameterValueThe value to set the Integer parameter to
bool AC.ActionListAsset.IsSkippable ( )

Checks if the ActionListAsset is skippable. This is safer than just reading 'isSkippable', because it also accounts for actionListType - since ActionLists that run in the background cannot be skipped

Returns
True if the ActionListAsset is skippable
void AC.ActionListAsset.RunFromIndex ( int  index)

Runs the ActionList asset file from a set point.

Parameters
indexThe index number of actions to start from

Member Data Documentation

ActionListType AC.ActionListAsset.actionListType = ActionListType.PauseGameplay

The effect that running the Actions has on the rest of the game (PauseGameplay, RunInBackground)

List<AC.Action> AC.ActionListAsset.actions = new List<AC.Action>()

The Actions within this asset file

bool AC.ActionListAsset.isSkippable = true

If True, the Actions will be skipped when the user presses the 'EndCutscene' Input button

List<ActionParameter> AC.ActionListAsset.parameters = new List<ActionParameter>()

A List of ActionParameter objects that can be used to override values within the Actions, if useParameters = True

int AC.ActionListAsset.tagID

The ID of the associated SpeechTag

bool AC.ActionListAsset.unfreezePauseMenus = true

If True, the game will un-freeze itself while the Actions run if the game was previously paused due to an enabled Menu

bool AC.ActionListAsset.useParameters = false

If True, ActionParameters can be used to override values within the Action objects