Example #1
0
        protected override bool _SerializeTo(UnityUtility.CStream msgStream)
        {
            msgStream.Write(m_instanceID);
            msgStream.Write(m_index);
            m_helperKey.serializeTo(msgStream);

            return(true);
        }
Example #2
0
        protected override bool _SerializeTo(UnityUtility.CStream msgStream)
        {
            m_roleKey.serializeTo(msgStream);
            msgStream.Write((byte)m_channel);
            msgStream.Write(m_content);
            if (m_chatEquipID == null)
            {
                UInt32 invalid_index = 0xffff;
                m_chatEquipID = new CChatEquipID(invalid_index, invalid_index);
            }
            m_chatEquipID.serializeTo(msgStream);

            return(true);
        }