示例#1
0
 public bool SerializeFrom(UnityUtility.CStream msgStream)
 {
     m_equipID       = msgStream.ReadUInt();
     m_equipType     = (EEquipType)msgStream.ReadUInt();
     m_equipTPID     = msgStream.ReadUInt();
     m_equipLevel    = msgStream.ReadUInt();
     m_equipAddLevel = msgStream.ReadUInt();
     m_equipQuality  = (EQualityID)msgStream.ReadUInt();
     m_leftSeconds   = msgStream.ReadULong();
     m_equipStatus   = (EEquipStatus)msgStream.ReadUInt();
     m_battleAttr.SerializeFrom(msgStream);
     m_attachAttr.SerializeFrom(msgStream);
     //m_attachBattleAttr.SerializeFrom(msgStream);
     m_attachAttr.getTotalAttach(ref m_attachBattleAttr);
     m_addBattleAttr.SerializeFrom(msgStream);
     m_gemSlotCount = msgStream.ReadUInt();
     m_gemsCount    = msgStream.ReadUInt();
     for (int j = 0; j < m_gemsCount; ++j)
     {
         CGem equipGem = new CGem();
         equipGem.SerializeFrom(msgStream);
         m_gemsList.Add(equipGem);
     }
     m_combat = msgStream.ReadUInt();
     return(true);
 }
示例#2
0
文件: CBagItem.cs 项目: cash2one/oold
        public bool SerializeFrom(UnityUtility.CStream msgStream)
        {
            m_ItemIndex = msgStream.ReadUInt();
            m_ItemCount = msgStream.ReadUInt();
            m_ItemTPID  = msgStream.ReadUInt();
            UInt32 type = msgStream.ReadUInt();

            m_ItemType   = (EItemType)type;
            m_instanceID = msgStream.ReadUInt();
            m_addLevel   = msgStream.ReadUInt();
            UInt32 gemsCount = msgStream.ReadUInt();

            for (int j = 0; j < gemsCount; ++j)
            {
                CGem equipGem = new CGem();
                equipGem.SerializeFrom(msgStream);
                m_gemsList.Add(equipGem);
            }
            return(true);
        }