-
Notifications
You must be signed in to change notification settings - Fork 0
/
AnimationJSON.cs
112 lines (105 loc) · 5.34 KB
/
AnimationJSON.cs
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
namespace walking_mod
{
public class AnimationJSON
{
public float duration;
public float[] times;
public AnimationJSONParts parts;
public AnimationJSON(float duration, float[] times, AnimationJSONParts parts)
{
this.duration = duration;
this.times = times;
this.parts = parts;
if (this.times.Length == 0) this.times = new float[] { duration - .02f };
}
public override string ToString()
{
return this.duration + " " + this.times.Length;
}
}
public class AnimationJSONParts
{
public AnimationJSONPart Skater_pelvis { get; set; }
public AnimationJSONPart LeftLegJacket { get; set; }
public AnimationJSONPart LeftLegJacket_dist { get; set; }
public AnimationJSONPart RightLegJacket { get; set; }
public AnimationJSONPart RightLegJacket_dist { get; set; }
public AnimationJSONPart Skater_Spine { get; set; }
public AnimationJSONPart Skater_Spine1 { get; set; }
public AnimationJSONPart Skater_Spine2 { get; set; }
public AnimationJSONPart Skater_Neck { get; set; }
public AnimationJSONPart Skater_Head { get; set; }
public AnimationJSONPart Skater_eye_l { get; set; }
public AnimationJSONPart Skater_eye_r { get; set; }
public AnimationJSONPart Skater_Shoulder_l { get; set; }
public AnimationJSONPart Skater_Arm_l { get; set; }
public AnimationJSONPart Skater_Arm_twist_01_l { get; set; }
public AnimationJSONPart Skater_ForeArm_l { get; set; }
public AnimationJSONPart Skater_ForeArm_twist_01_l { get; set; }
public AnimationJSONPart Skater_hand_l { get; set; }
public AnimationJSONPart Skater_index_01_l { get; set; }
public AnimationJSONPart Skater_index_02_l { get; set; }
public AnimationJSONPart Skater_index_03_l { get; set; }
public AnimationJSONPart Skater_middle_01_l { get; set; }
public AnimationJSONPart Skater_middle_02_l { get; set; }
public AnimationJSONPart Skater_middle_03_l { get; set; }
public AnimationJSONPart Skater_pinky_01_l { get; set; }
public AnimationJSONPart Skater_pinky_02_l { get; set; }
public AnimationJSONPart Skater_pinky_03_l { get; set; }
public AnimationJSONPart Skater_ring_01_l { get; set; }
public AnimationJSONPart Skater_ring_02_l { get; set; }
public AnimationJSONPart Skater_ring_03_l { get; set; }
public AnimationJSONPart Skater_thumb_01_l { get; set; }
public AnimationJSONPart Skater_thumb_02_l { get; set; }
public AnimationJSONPart Skater_thumb_03_l { get; set; }
public AnimationJSONPart Skater_Shoulder_r { get; set; }
public AnimationJSONPart Skater_Arm_r { get; set; }
public AnimationJSONPart Skater_Arm_twist_01_r { get; set; }
public AnimationJSONPart Skater_ForeArm_r { get; set; }
public AnimationJSONPart Skater_ForeArm_twist_01_r { get; set; }
public AnimationJSONPart Skater_hand_r { get; set; }
public AnimationJSONPart Skater_index_01_r { get; set; }
public AnimationJSONPart Skater_index_02_r { get; set; }
public AnimationJSONPart Skater_index_03_r { get; set; }
public AnimationJSONPart Skater_middle_01_r { get; set; }
public AnimationJSONPart Skater_middle_02_r { get; set; }
public AnimationJSONPart Skater_middle_03_r { get; set; }
public AnimationJSONPart Skater_pinky_01_r { get; set; }
public AnimationJSONPart Skater_pinky_02_r { get; set; }
public AnimationJSONPart Skater_pinky_03_r { get; set; }
public AnimationJSONPart Skater_ring_01_r { get; set; }
public AnimationJSONPart Skater_ring_02_r { get; set; }
public AnimationJSONPart Skater_ring_03_r { get; set; }
public AnimationJSONPart Skater_thumb_01_r { get; set; }
public AnimationJSONPart Skater_thumb_02_r { get; set; }
public AnimationJSONPart Skater_thumb_03_r { get; set; }
public AnimationJSONPart Skater_UpLeg_l { get; set; }
public AnimationJSONPart Skater_Leg_l { get; set; }
public AnimationJSONPart Skater_foot_l { get; set; }
public AnimationJSONPart Skater_Toe1_l { get; set; }
public AnimationJSONPart Skater_Toe2_l { get; set; }
public AnimationJSONPart Skater_Leg_twist_01_l { get; set; }
public AnimationJSONPart Skater_UpLeg_twist_01_l { get; set; }
public AnimationJSONPart Skater_UpLeg_r { get; set; }
public AnimationJSONPart Skater_Leg_r { get; set; }
public AnimationJSONPart Skater_foot_r { get; set; }
public AnimationJSONPart Skater_Toe1_r { get; set; }
public AnimationJSONPart Skater_Toe2_r { get; set; }
public AnimationJSONPart Skater_Leg_twist_01_r { get; set; }
public AnimationJSONPart Skater_UpLeg_twist_01_r { get; set; }
public AnimationJSONPart Skate { get; set; }
}
public class AnimationJSONPart
{
public float[][] position, quaternion;
public AnimationJSONPart(float[][] position, float[][] quaternion)
{
this.position = position;
this.quaternion = quaternion;
}
public override string ToString()
{
return this.position.Length + " " + this.quaternion.Length;
}
}
}