Exemplo n.º 1
0
        public override void Serialize(ICustomDataOutput writer)
        {
            base.Serialize(writer);
            writer.WriteShort(((short)(m_companions.Count)));
            int companionsIndex;

            for (companionsIndex = 0; (companionsIndex < m_companions.Count); companionsIndex = (companionsIndex + 1))
            {
                PartyCompanionBaseInformations objectToSend = m_companions[companionsIndex];
                objectToSend.Serialize(writer);
            }
            writer.WriteShort(m_worldX);
            writer.WriteShort(m_worldY);
            writer.WriteInt(m_mapId);
            writer.WriteVarUhShort(m_subAreaId);
        }
Exemplo n.º 2
0
        public override void Serialize(IDataWriter writer)
        {
            m_guestLook.Serialize(writer);
            writer.WriteUShort(((ushort)(m_status.TypeID)));
            m_status.Serialize(writer);
            writer.WriteShort(((short)(m_companions.Count)));
            int companionsIndex;

            for (companionsIndex = 0; (companionsIndex < m_companions.Count); companionsIndex = (companionsIndex + 1))
            {
                PartyCompanionBaseInformations objectToSend = m_companions[companionsIndex];
                objectToSend.Serialize(writer);
            }
            writer.WriteVarLong(m_guestId);
            writer.WriteVarLong(m_hostId);
            writer.WriteUTF(m_name);
            writer.WriteByte(m_breed);
            writer.WriteBoolean(m_sex);
        }