4 float m_fQuaternion[4];
7 vector m_vAngularVelocity;
13 static void Encode(SSnapSerializerBase snapshot, ScriptCtx ctx, ScriptBitSerializer packet)
15 snapshot.Serialize(packet, 64);
19 static bool Decode(ScriptBitSerializer packet, ScriptCtx ctx, SSnapSerializerBase snapshot)
21 return snapshot.Serialize(packet, 64);
25 static bool SnapCompare(SSnapSerializerBase lhs, SSnapSerializerBase rhs, ScriptCtx ctx)
27 return lhs.CompareSnapshots(rhs, 64);
33 return snapshot.Compare(prop.m_iTreePartIndex, 4)
34 && snapshot.Compare(prop.m_fQuaternion[0], 4)
35 && snapshot.Compare(prop.m_fQuaternion[1], 4)
36 && snapshot.Compare(prop.m_fQuaternion[2], 4)
37 && snapshot.Compare(prop.m_fQuaternion[3], 4)
38 && snapshot.Compare(prop.m_vPosition[0], 4)
39 && snapshot.Compare(prop.m_vPosition[1], 4)
40 && snapshot.Compare(prop.m_vPosition[2], 4)
41 && snapshot.Compare(prop.m_vVelocity[0], 4)
42 && snapshot.Compare(prop.m_vVelocity[1], 4)
43 && snapshot.Compare(prop.m_vVelocity[2], 4)
44 && snapshot.Compare(prop.m_vAngularVelocity[0], 4)
45 && snapshot.Compare(prop.m_vAngularVelocity[1], 4)
46 && snapshot.Compare(prop.m_vAngularVelocity[2], 4)
47 && snapshot.Compare(prop.m_TreeID, 8);
53 snapshot.SerializeBytes(prop.m_iTreePartIndex, 4);
54 snapshot.SerializeBytes(prop.m_fQuaternion[0], 4);
55 snapshot.SerializeBytes(prop.m_fQuaternion[1], 4);
56 snapshot.SerializeBytes(prop.m_fQuaternion[2], 4);
57 snapshot.SerializeBytes(prop.m_fQuaternion[3], 4);
58 snapshot.SerializeBytes(prop.m_vPosition[0], 4);
59 snapshot.SerializeBytes(prop.m_vPosition[1], 4);
60 snapshot.SerializeBytes(prop.m_vPosition[2], 4);
61 snapshot.SerializeBytes(prop.m_vVelocity[0], 4);
62 snapshot.SerializeBytes(prop.m_vVelocity[1], 4);
63 snapshot.SerializeBytes(prop.m_vVelocity[2], 4);
64 snapshot.SerializeBytes(prop.m_vAngularVelocity[0], 4);
65 snapshot.SerializeBytes(prop.m_vAngularVelocity[1], 4);
66 snapshot.SerializeBytes(prop.m_vAngularVelocity[2], 4);
67 snapshot.SerializeBytes(prop.m_TreeID, 8);
75 snapshot.SerializeBytes(prop.m_iTreePartIndex, 4);
77 snapshot.SerializeBytes(temp, 4);
78 prop.m_fQuaternion[0] = temp;
79 snapshot.SerializeBytes(temp, 4);
80 prop.m_fQuaternion[1] = temp;
81 snapshot.SerializeBytes(temp, 4);
82 prop.m_fQuaternion[2] = temp;
83 snapshot.SerializeBytes(temp, 4);
84 prop.m_fQuaternion[3] = temp;
85 snapshot.SerializeBytes(temp, 4);
86 prop.m_vPosition[0] = temp;
87 snapshot.SerializeBytes(temp, 4);
88 prop.m_vPosition[1] = temp;
89 snapshot.SerializeBytes(temp, 4);
90 prop.m_vPosition[2] = temp;
91 snapshot.SerializeBytes(temp, 4);
92 prop.m_vVelocity[0] = temp;
93 snapshot.SerializeBytes(temp, 4);
94 prop.m_vVelocity[1] = temp;
95 snapshot.SerializeBytes(temp, 4);
96 prop.m_vVelocity[2] = temp;
97 snapshot.SerializeBytes(temp, 4);
98 prop.m_vAngularVelocity[0] = temp;
99 snapshot.SerializeBytes(temp, 4);
100 prop.m_vAngularVelocity[1] = temp;
101 snapshot.SerializeBytes(temp, 4);
102 prop.m_vAngularVelocity[2] = temp;
103 snapshot.SerializeBytes(prop.m_TreeID, 8);