Sequine - Scripting API
Calcatz.CookieCutter.BuildableCommand Class Reference

Legacy. The old way of making a command that doesn't require a new sub-class of CommandNode. More...

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

Classes

class  IO
 

Public Member Functions

override object GetOutputBoxed (CommandExecutionFlow _flow, int _index)
 Get output value at out-point index. More...
 
override int GetNextOutputIndex ()
 Get the output index to get the next command ID upon exiting this command. More...
 

Public Attributes

IO io = new IO()
 This should only be accessed by BuildableCommandNode More...
 

Protected Member Functions

int AddMainOutput (string _label)
 Add an output point for main flow. The index shares the same list with property outputs as well. More...
 
int AddPropertyInput< T > (string _label, T _defaultValue=default(T))
 Add an input point for property. More...
 
int AddPropertyOutput< T > (string _label, T _defaultValue=default(T))
 Add on output point for property. The index shares the same list with main outputs as well. More...
 
void SetOutput< T > (int _index, T _value)
 
void SetMainDestination (int _index)
 

Additional Inherited Members

Detailed Description

Legacy. The old way of making a command that doesn't require a new sub-class of CommandNode.

Member Function Documentation

◆ AddMainOutput()

int Calcatz.CookieCutter.BuildableCommand.AddMainOutput ( string  _label)
protected

Add an output point for main flow. The index shares the same list with property outputs as well.

Parameters
_label
Returns
Returns the output index that can be accessed using nextIds.

◆ AddPropertyInput< T >()

int Calcatz.CookieCutter.BuildableCommand.AddPropertyInput< T > ( string  _label,
_defaultValue = default(T) 
)
protected

Add an input point for property.

Template Parameters
T
Parameters
_label
_defaultValue
Returns
Returns the input index of the property.

◆ AddPropertyOutput< T >()

int Calcatz.CookieCutter.BuildableCommand.AddPropertyOutput< T > ( string  _label,
_defaultValue = default(T) 
)
protected

Add on output point for property. The index shares the same list with main outputs as well.

Template Parameters
T
Parameters
_label
_defaultValue
Returns
Returns the output index of the property.

◆ GetNextOutputIndex()

override int Calcatz.CookieCutter.BuildableCommand.GetNextOutputIndex ( )
virtual

Get the output index to get the next command ID upon exiting this command.

Returns

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

◆ GetOutputBoxed()

override object Calcatz.CookieCutter.BuildableCommand.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 >.

◆ SetMainDestination()

void Calcatz.CookieCutter.BuildableCommand.SetMainDestination ( int  _index)
protected

◆ SetOutput< T >()

void Calcatz.CookieCutter.BuildableCommand.SetOutput< T > ( int  _index,
_value 
)
protected

Member Data Documentation

◆ io

IO Calcatz.CookieCutter.BuildableCommand.io = new IO()

This should only be accessed by BuildableCommandNode