Merge from branch giga
This commit is contained in:
@@ -28,26 +28,32 @@
|
||||
//
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
using StgSharp.Model.Step;
|
||||
using StgSharp.Script;
|
||||
using StgSharp.Script.Express;
|
||||
|
||||
namespace StgSharp.Modeling.Items
|
||||
namespace StgSharp.Model.Step
|
||||
{
|
||||
public class StepDirection : StepTriple
|
||||
public class StepDirection : StepTriple, IExpConvertableFrom<StepDirection>
|
||||
{
|
||||
|
||||
private StepDirection() { }
|
||||
private StepDirection( StepModel model ) : base( model ) { }
|
||||
|
||||
public StepDirection( string name, float x, float y, float z ) : base( name, x, y, z ) { }
|
||||
public StepDirection( StepModel model, float x, float y, float z )
|
||||
: base( model, x, y, z ) { }
|
||||
|
||||
public override StepItemType ItemType => StepItemType.Direction;
|
||||
|
||||
protected override int MinimumValueCount => 2;
|
||||
|
||||
internal static StepDirection CreateFromSyntaxList( ExpNode syntaxList )
|
||||
public void FromInstance( StepDirection entity )
|
||||
{
|
||||
return ( StepDirection )AssignTo( new StepDirection(), syntaxList );
|
||||
base.FromInstance( entity );
|
||||
}
|
||||
|
||||
internal static StepDirection FromSyntax( StepModel binder, ExpSyntaxNode syntaxList )
|
||||
{
|
||||
return AssignTo( new StepDirection( binder ), syntaxList );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user