Exemple #1
0
 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     m_fightMap.Serialize(writer);
     writer.WriteByte(m_reason);
     writer.WriteVarUhLong(m_memberId);
     writer.WriteInt(m_memberAccountId);
     writer.WriteUTF(m_memberName);
     writer.WriteInt(m_fightId);
     writer.WriteVarShort(m_timeBeforeFightStart);
 }
        public override void Serialize(ICustomDataOutput writer)
        {
            writer.WriteShort(((short)(m_coords.Count)));
            int coordsIndex;

            for (coordsIndex = 0; (coordsIndex < m_coords.Count); coordsIndex = (coordsIndex + 1))
            {
                MapCoordinatesExtended objectToSend = m_coords[coordsIndex];
                objectToSend.Serialize(writer);
            }
            writer.WriteByte(m_type);
        }
Exemple #3
0
 public override void Serialize(ICustomDataOutput writer)
 {
     base.Serialize(writer);
     FightMap.Serialize(writer);
 }