-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIfpStructs.cs
More file actions
36 lines (29 loc) · 819 Bytes
/
Copy pathIfpStructs.cs
File metadata and controls
36 lines (29 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System.Numerics;
namespace IFP_reader;
public struct IfpAnimRecord
{
public string Name { init; get; }
public IfpAnimObject[] Objects { init; get; }
}
public struct IfpAnimObject
{
public string Name { init; get; }
public IfpFrameType FramesType { init; get; }
public Int32 BoneId { init; get; }
public IfpFrame[] Frames { init; get; }
}
public enum IfpFrameType : Int32
{
None = 0,
Child = 3,
Root = 4,
}
public struct IfpFrame
{
public IfpFrameType FrameType { init; get; }
public Quaternion Rotation { init; get; }
/// <summary> in seconds </summary>
public Int16 Time { init; get; }
/// <summary>if IpfFrame.FrameType is Child - value of that field will be equals with default</summary>
public Vector3 Translation { init; get; }
}