3 static const int SNAPSHOT_SIZE_VALUE = 12;
5 protected vector m_vValue;
12 void SetInt(
int value)
30 void SetFloat(
float value)
48 void SetBool(
bool value)
58 return m_vValue[0] != 0;
66 void SetVector(vector value)
80 static void Encode(SSnapSerializerBase snapshot, ScriptCtx hint, ScriptBitSerializer packet)
82 snapshot.Serialize(packet, SNAPSHOT_SIZE_VALUE);
84 static bool Decode(ScriptBitSerializer packet, ScriptCtx hint, SSnapSerializerBase snapshot)
86 return snapshot.Serialize(packet, SNAPSHOT_SIZE_VALUE);
88 static bool SnapCompare(SSnapSerializerBase lhs, SSnapSerializerBase rhs, ScriptCtx hint)
90 return lhs.CompareSnapshots(rhs, SNAPSHOT_SIZE_VALUE);
94 return snapshot.Compare(prop.m_vValue, SNAPSHOT_SIZE_VALUE);
98 snapshot.SerializeBytes(prop.m_vValue, SNAPSHOT_SIZE_VALUE);
103 return Extract(prop, hint, snapshot);
128 var.SetVector(value);