3 protected int m_iPlayerId;
4 protected int m_iFactionIndex = -1;
15 void SetFactionIndex(
int factionIndex)
38 info.m_iPlayerId = playerId;
39 info.m_iFactionIndex = -1;
55 snapshot.SerializeInt(instance.m_iPlayerId);
56 snapshot.SerializeInt(instance.m_iFactionIndex);
68 snapshot.SerializeInt(instance.m_iPlayerId);
69 snapshot.SerializeInt(instance.m_iFactionIndex);
78 static void Encode(SSnapSerializerBase snapshot, ScriptCtx ctx, ScriptBitSerializer packet)
80 snapshot.EncodeInt(packet);
81 snapshot.EncodeInt(packet);
90 static bool Decode(ScriptBitSerializer packet, ScriptCtx ctx, SSnapSerializerBase snapshot)
92 snapshot.DecodeInt(packet);
93 snapshot.DecodeInt(packet);
103 static bool SnapCompare(SSnapSerializerBase lhs, SSnapSerializerBase rhs , ScriptCtx ctx)
105 return lhs.CompareSnapshots(rhs, 4 + 4);
116 return snapshot.CompareInt(instance.m_iPlayerId)
117 && snapshot.CompareInt(instance.m_iFactionIndex);