3 protected int m_iPlayerId;
4 protected int m_iLoadoutIndex = -1;
10 return m_iLoadoutIndex;
15 void SetLoadoutIndex(
int loadoutIndex)
17 m_iLoadoutIndex = loadoutIndex;
34 info.m_iPlayerId = playerId;
35 info.m_iLoadoutIndex = -1;
49 snapshot.SerializeInt(instance.m_iPlayerId);
50 snapshot.SerializeInt(instance.m_iLoadoutIndex);
62 snapshot.SerializeInt(instance.m_iPlayerId);
63 snapshot.SerializeInt(instance.m_iLoadoutIndex);
72 static void Encode(SSnapSerializerBase snapshot, ScriptCtx ctx, ScriptBitSerializer packet)
74 snapshot.EncodeInt(packet);
75 snapshot.EncodeInt(packet);
84 static bool Decode(ScriptBitSerializer packet, ScriptCtx ctx, SSnapSerializerBase snapshot)
86 snapshot.DecodeInt(packet);
87 snapshot.DecodeInt(packet);
97 static bool SnapCompare(SSnapSerializerBase lhs, SSnapSerializerBase rhs , ScriptCtx ctx)
99 return lhs.CompareSnapshots(rhs, 4+4);
110 return snapshot.CompareInt(instance.m_iPlayerId)
111 && snapshot.CompareInt(instance.m_iLoadoutIndex);