spart to data
This commit is contained in:
14
SlaveEngine.Assets/Models/PartAsset.cs
Normal file
14
SlaveEngine.Assets/Models/PartAsset.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using SlaveEngine.Assets.Primitives;
|
||||
|
||||
namespace SlaveEngine.Assets.Models;
|
||||
|
||||
public sealed class PartAsset : Asset {
|
||||
public required string Id { get; init; }
|
||||
public required string OriginalKey { get; init; }
|
||||
public required string Resource { get; init; }
|
||||
public int MorphX { get; init; }
|
||||
public int MorphY { get; init; }
|
||||
public required string[] Fields { get; init; }
|
||||
public required Joint[] Joints { get; init; }
|
||||
public required VariantAsset[] Variants { get; init; }
|
||||
}
|
||||
11
SlaveEngine.Assets/Models/PathData.cs
Normal file
11
SlaveEngine.Assets/Models/PathData.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using SlaveEngine.Assets.Primitives;
|
||||
|
||||
namespace SlaveEngine.Assets.Models;
|
||||
|
||||
public sealed class PathData {
|
||||
public required string Fill { get; init; }
|
||||
public required string Stroke { get; init; }
|
||||
public float StrokeWidth { get; init; }
|
||||
public bool IsClosed { get; init; }
|
||||
public required BezierCommand[] Commands { get; init; }
|
||||
}
|
||||
14
SlaveEngine.Assets/Models/PathGroup.cs
Normal file
14
SlaveEngine.Assets/Models/PathGroup.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace SlaveEngine.Assets.Models;
|
||||
|
||||
public sealed class PathGroup {
|
||||
public required string Name { get; init; }
|
||||
public bool HasTransform { get; init; }
|
||||
public float Tx { get; init; }
|
||||
public float Ty { get; init; }
|
||||
public float Angle { get; init; }
|
||||
public float Sx { get; init; }
|
||||
public float Sy { get; init; }
|
||||
public float Bx { get; init; }
|
||||
public float By { get; init; }
|
||||
public required PathData[] Paths { get; init; }
|
||||
}
|
||||
7
SlaveEngine.Assets/Models/VariantAsset.cs
Normal file
7
SlaveEngine.Assets/Models/VariantAsset.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace SlaveEngine.Assets.Models;
|
||||
|
||||
public sealed class VariantAsset {
|
||||
public int X { get; init; }
|
||||
public int Y { get; init; }
|
||||
public required PathGroup[] Groups { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user