Adventure Creator 1.84.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2024
Loading...
Searching...
No Matches
AC.SetParametersBase Class Referenceabstract
Inheritance diagram for AC.SetParametersBase:
AC.iActionListAssetReferencer AC.ActionListStarter AC.SetDragParameters AC.SetInteractionParameters AC.SetInventoryInteractionParameters AC.SetTriggerParameters

Classes

struct  GUIData

Public Member Functions

virtual List< ActionListAssetGetReferencedActionListAssets ()
 Gets a List of all ActionList assets referenced by the component.
virtual bool ReferencesAsset (ActionListAsset actionListAsset)
bool ReferencesObjectOrID (GameObject _gameObject, int id)

Static Public Member Functions

static void BulkAssignParameterValues (List< ActionParameter > externalParameters, List< ActionParameter > fromParameters, bool sendingToAsset, bool _isAssetFile)
 Transfers values from one list of parameters to another.
static GUIData SyncLists (List< ActionParameter > externalParameters, GUIData originalGUIData)
 Syncronises two lists of parameters so that their sizes and IDs match.
static GUIData SetParametersGUI (List< ActionParameter > externalParameters, bool isAssetFile, GUIData guiData, List< ActionParameter > ownParameters=null)

Protected Member Functions

void AssignParameterValues (ActionList _actionList, int runIndex=0)
 Updates an ActionLists's parameter values with its own.
void AssignParameterValues (ActionListAsset _actionListAsset, int runIndex=0)
 Updates an ActionList asset's parameter values with its own.
List< ActionParameterGetFromParameters (int index)
List< ActionListAssetGetAssetsFromParameterGUIData (SetParametersBase.GUIData guiData, List< ActionListAsset > existingList)
void ShowParametersGUI (List< ActionParameter > externalParameters, bool isAssetFile, bool runMultipleTimes=false)

Static Protected Member Functions

static int FieldToID< T > (bool isAssetFile, T field, int _constantID, bool alwaysAssign=false)
static T IDToField< T > (bool isAssetFile, T field, int _constantID, bool moreInfo)

Protected Attributes

GUIData initialGUIData = new GUIData (new List<ActionParameter>(), new List<int>())
GUIData[] successiveGUIData = new GUIData[0]

Detailed Description

A base class to handle the setting and transferring of ActionParameter values in bulk.

Member Function Documentation

◆ AssignParameterValues() [1/2]

void AC.SetParametersBase.AssignParameterValues ( ActionList _actionList,
int runIndex = 0 )
protected

Updates an ActionLists's parameter values with its own.

Parameters
_actionListThe ActionList to update

◆ AssignParameterValues() [2/2]

void AC.SetParametersBase.AssignParameterValues ( ActionListAsset _actionListAsset,
int runIndex = 0 )
protected

Updates an ActionList asset's parameter values with its own.

Parameters
_actionListAssetThe ActionList asset to update

◆ BulkAssignParameterValues()

void AC.SetParametersBase.BulkAssignParameterValues ( List< ActionParameter > externalParameters,
List< ActionParameter > fromParameters,
bool sendingToAsset,
bool _isAssetFile )
static

Transfers values from one list of parameters to another.

Parameters
externalParametersThe parameters to update
fromParametersThe parameters to get the new values from
sendingToAssetIf True, the parameters to update are part of an asset file
_isAssetFileIf True, the parameters to get the new values from are part of an asset file

◆ FieldToID< T >()

int AC.SetParametersBase.FieldToID< T > ( bool isAssetFile,
T field,
int _constantID,
bool alwaysAssign = false )
staticprotected
Type Constraints
T :Behaviour 

◆ GetReferencedActionListAssets()

virtual List< ActionListAsset > AC.SetParametersBase.GetReferencedActionListAssets ( )
virtual

Gets a List of all ActionList assets referenced by the component.

Returns
A List of all ActionList assets referenced by the component

Implements AC.iActionListAssetReferencer.

Reimplemented in AC.ActionListStarter.

◆ IDToField< T >()

T AC.SetParametersBase.IDToField< T > ( bool isAssetFile,
T field,
int _constantID,
bool moreInfo )
staticprotected
Type Constraints
T :Behaviour 

◆ ReferencesAsset()

virtual bool AC.SetParametersBase.ReferencesAsset ( ActionListAsset actionListAsset)
virtual

◆ SyncLists()

GUIData AC.SetParametersBase.SyncLists ( List< ActionParameter > externalParameters,
GUIData originalGUIData )
static

Syncronises two lists of parameters so that their sizes and IDs match.

Parameters
externalParametersThe parameters that will be updated by the component
guiDataData about the parameters to get the values from
Returns
Updated data about the parameters to get the values from