Sequine - Scripting API
Calcatz.CookieCutter.SetVariableCommand Class Reference

Sets a local variable. More...

Inheritance diagram for Calcatz.CookieCutter.SetVariableCommand:
Calcatz.CookieCutter.Command< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >

Public Member Functions

 SetVariableCommand ()
 
override void Execute (CommandExecutionFlow _flow)
 The process to execute upon visiting the main in-point (white in-point). More...
 
override object GetOutputBoxed (CommandExecutionFlow _flow, int _pointIndex)
 Get output value at out-point index. More...
 

Static Public Member Functions

static Rect Editor_DrawValuePropertyField (Rect fieldRect, int _variableId, object _variableValue, Dictionary< int, CommandData.Variable > _variables, UnityEngine.Object _rootObject, System.Action< object > _onValueChanged)
 

Public Attributes

int variableId
 
object value
 

Static Public Attributes

static readonly Dictionary< System.Type, System.Func< Rect, string, object, object > > editor_propertyHandler
 

Additional Inherited Members

Detailed Description

Sets a local variable.

Constructor & Destructor Documentation

◆ SetVariableCommand()

Calcatz.CookieCutter.SetVariableCommand.SetVariableCommand ( )

Member Function Documentation

◆ Editor_DrawValuePropertyField()

static Rect Calcatz.CookieCutter.SetVariableCommand.Editor_DrawValuePropertyField ( Rect  fieldRect,
int  _variableId,
object  _variableValue,
Dictionary< int, CommandData.Variable _variables,
UnityEngine.Object  _rootObject,
System.Action< object >  _onValueChanged 
)
static

◆ Execute()

override void Calcatz.CookieCutter.SetVariableCommand.Execute ( CommandExecutionFlow  _flow)
virtual

The process to execute upon visiting the main in-point (white in-point).

Parameters
_flow

Reimplemented from Calcatz.CookieCutter.Command< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >.

◆ GetOutputBoxed()

override object Calcatz.CookieCutter.SetVariableCommand.GetOutputBoxed ( CommandExecutionFlow  _flow,
int  _pointIndex 
)
virtual

Get output value at out-point index.

Parameters
_flow
_pointIndex
Returns

Reimplemented from Calcatz.CookieCutter.Command< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >.

Member Data Documentation

◆ editor_propertyHandler

readonly Dictionary<System.Type, System.Func<Rect, string, object, object> > Calcatz.CookieCutter.SetVariableCommand.editor_propertyHandler
static
Initial value:
= new Dictionary<System.Type, System.Func<Rect, string, object, object>>() {
{typeof(bool), (_rect, _label, _object) => EditorGUI.Toggle(_rect, _label, (bool)_object) },
{typeof(int), (_rect, _label, _object) => EditorGUI.IntField(_rect, _label, (int)_object) },
{typeof(float), (_rect, _label, _object) => EditorGUI.DelayedFloatField(_rect, _label, (float)_object) },
{typeof(string), (_rect, _label, _object) => EditorGUI.DelayedTextField(_rect, _label, (string)_object) },
{typeof(Vector3), (_rect, _label, _object) => EditorGUI.Vector3Field(_rect, _label, (Vector3)_object) },
{typeof(UnityEngine.Object), (_rect, _label, _object) => EditorGUI.ObjectField(_rect, _label, _object as UnityEngine.Object, typeof(UnityEngine.Object), false) }
}

◆ value

object Calcatz.CookieCutter.SetVariableCommand.value

◆ variableId

int Calcatz.CookieCutter.SetVariableCommand.variableId