Sequine - Scripting API
Calcatz.CookieCutter.CommandData Class Reference
Inheritance diagram for Calcatz.CookieCutter.CommandData:
Calcatz.CookieCutter.IVariableUser Calcatz.Sequine.SequineFlowCommandData

Classes

class  Variable
 

Public Member Functions

 CommandData (UnityEngine.Object _targetObject)
 
virtual Command GetStartingCommand ()
 
virtual Command GetCommand (int _id)
 
void TraverseCommands (Action< Command > _commandHandler)
 
virtual List< int > TraverseFlow (Action< Command > _commandHandler)
 

Static Public Member Functions

static T GetVariable< T > (ICommandData _sequineFlow, int _variableId)
 Gets a local variable of the specified Sequine Flow. More...
 
static void SetVariable< T > (ICommandData _sequineFlow, int _variableId, T _value)
 Sets a local variable of the specified Sequine Flow. More...
 

Public Attributes

readonly Dictionary< int, Commandcommands = new Dictionary<int, Command>()
 

Protected Member Functions

void TraverseFlowRecursive (Command _command, Action< Command > _commandHandler, List< int > _traversedIds)
 

Properties

virtual Dictionary< int, Variablevariables [getset]
 
UnityEngine.Object targetObject [get]
 

Constructor & Destructor Documentation

◆ CommandData()

Calcatz.CookieCutter.CommandData.CommandData ( UnityEngine.Object  _targetObject)

Member Function Documentation

◆ GetCommand()

virtual Command Calcatz.CookieCutter.CommandData.GetCommand ( int  _id)
virtual

◆ GetStartingCommand()

virtual Command Calcatz.CookieCutter.CommandData.GetStartingCommand ( )
virtual

◆ GetVariable< T >()

static T Calcatz.CookieCutter.CommandData.GetVariable< T > ( ICommandData  _sequineFlow,
int  _variableId 
)
static

Gets a local variable of the specified Sequine Flow.

Template Parameters
T
Parameters
_sequineFlow
_variableId
Returns

◆ SetVariable< T >()

static void Calcatz.CookieCutter.CommandData.SetVariable< T > ( ICommandData  _sequineFlow,
int  _variableId,
_value 
)
static

Sets a local variable of the specified Sequine Flow.

Template Parameters
T
Parameters
_sequineFlow
_variableId
_value

◆ TraverseCommands()

void Calcatz.CookieCutter.CommandData.TraverseCommands ( Action< Command _commandHandler)

◆ TraverseFlow()

virtual List< int > Calcatz.CookieCutter.CommandData.TraverseFlow ( Action< Command _commandHandler)
virtual

◆ TraverseFlowRecursive()

void Calcatz.CookieCutter.CommandData.TraverseFlowRecursive ( Command  _command,
Action< Command _commandHandler,
List< int >  _traversedIds 
)
protected

Member Data Documentation

◆ commands

readonly Dictionary<int, Command> Calcatz.CookieCutter.CommandData.commands = new Dictionary<int, Command>()

Property Documentation

◆ targetObject

UnityEngine.Object Calcatz.CookieCutter.CommandData.targetObject
get

◆ variables

virtual Dictionary<int, Variable> Calcatz.CookieCutter.CommandData.variables
getset