spart to data
This commit is contained in:
6
SlaveEngine.Assets/Primitives/BezierCommand.cs
Normal file
6
SlaveEngine.Assets/Primitives/BezierCommand.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace SlaveEngine.Assets.Primitives;
|
||||
|
||||
public readonly struct BezierCommand {
|
||||
public CommandType Type { get; init; }
|
||||
public float[] Args { get; init; }
|
||||
}
|
||||
8
SlaveEngine.Assets/Primitives/CommandType.cs
Normal file
8
SlaveEngine.Assets/Primitives/CommandType.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace SlaveEngine.Assets.Primitives;
|
||||
|
||||
public enum CommandType : byte {
|
||||
MoveTo = 0,
|
||||
LineTo = 1,
|
||||
CubicBezierTo = 2,
|
||||
Close = 3
|
||||
}
|
||||
6
SlaveEngine.Assets/Primitives/Joint.cs
Normal file
6
SlaveEngine.Assets/Primitives/Joint.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace SlaveEngine.Assets.Primitives;
|
||||
|
||||
public readonly struct Joint {
|
||||
public float X { get; init; }
|
||||
public float Y { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user