Esempio n. 1
0
 public void SerializeFrom(UnityUtility.CStream msgStream)
 {
     m_roleKey.serializeFrom(msgStream);
     m_roleTPID    = msgStream.ReadUInt();
     m_roleName    = msgStream.ReadString();
     m_level       = msgStream.ReadUInt();
     m_VIPLevel    = msgStream.ReadUInt();
     m_fashionTPID = msgStream.ReadUInt();
 }
Esempio n. 2
0
        public void SerializeFrom(UnityUtility.CStream stream)
        {
            m_senderKey.serializeFrom(stream);
            m_senderName = stream.ReadString();
            m_VIPLevel   = stream.ReadUInt();
            byte channel = stream.ReadByte();

            m_channel = (EChatChanel)channel;
            if (m_channel == EChatChanel.CHAT_CHANNEL_PRIVATE)
            {
                m_recverKey.serializeFrom(stream);
            }
            m_content = stream.ReadString();
            byte equip = stream.ReadByte();

            if (equip > 0)
            {
                m_equipment = new CEquipItem();
                m_equipment.SerializeFrom(stream);
            }
        }