Exemplo n.º 1
0
        public void serializeFrom(UnityUtility.CStream stream)
        {
            m_taskTPID        = stream.ReadUInt();
            m_taskName        = stream.ReadString();
            m_taskType        = (EMainTaskType)stream.ReadByte();
            m_taskDescription = stream.ReadString();

            m_startNPC   = stream.ReadUInt();
            m_endNPC     = stream.ReadUInt();
            m_levelLimit = stream.ReadUInt();
            m_NPC.serializeFrom(stream);
            m_stageID      = stream.ReadUInt();
            m_monsterID    = stream.ReadUInt();
            m_dropItemTPID = stream.ReadUInt();
            m_needCount    = stream.ReadUInt();

            m_dialogStart       = stream.ReadString();
            m_dialogAfterAccept = stream.ReadString();
            m_dialogEnd         = stream.ReadString();
            m_dialogNPC         = stream.ReadString();
            m_dialogBeforeFight = stream.ReadString();
            m_dialogAfterBoss   = stream.ReadString();
            m_dialogAfterWin    = stream.ReadString();

            UInt16 count = stream.ReadUShort();

            for (UInt16 i = 0; i < count; ++i)
            {
                CPrizeItem prizeItem = new CPrizeItem();
                prizeItem.SerializeFrom(stream);
                m_listPrizeItems.Add(prizeItem);
            }
            m_curCount = stream.ReadUInt();
            m_state    = (ETaskState)stream.ReadByte();
        }
Exemplo n.º 2
0
        public void serializeFrom(UnityUtility.CStream stream)
        {
            m_id               = stream.ReadUInt();
            m_name             = stream.ReadString();
            m_desc             = stream.ReadString();
            m_petID            = stream.ReadUInt();
            m_weight           = stream.ReadUInt();
            m_minRoleLevel     = stream.ReadUInt();
            m_maxRoleLevel     = stream.ReadUInt();
            m_type             = (EPetTaskType)stream.ReadByte();
            m_param1           = stream.ReadUInt();
            m_param2           = stream.ReadUInt();
            m_param3           = stream.ReadUInt();
            m_petFriendlyValue = stream.ReadUInt();
            UInt16 count = stream.ReadUShort();

            for (UInt16 i = 0; i < count; ++i)
            {
                CPrizeItem prizeItem = new CPrizeItem();
                prizeItem.SerializeFrom(stream);
                m_listPrizeItems.Add(prizeItem);
            }
            m_taskIndex = stream.ReadUInt();
            m_curCount  = stream.ReadUShort();
            m_state     = (ETaskState)stream.ReadByte();
            m_color     = (EPetTaskColor)stream.ReadByte();
        }
Exemplo n.º 3
0
        public bool SerializeFrom(UnityUtility.CStream msgStream)
        {
            UInt32 count = msgStream.ReadUInt();

            for (UInt32 i = 0; i < count; ++i)
            {
                CPrizeItem item = new CPrizeItem();
                item.SerializeFrom(msgStream);
                m_itemList.Add(item);
            }
            return(true);
        }
Exemplo n.º 4
0
        public void serializeFrom(UnityUtility.CStream stream)
        {
            m_day            = stream.ReadUInt();
            m_emoticonID     = stream.ReadUInt();
            m_isSpecialPrize = (stream.ReadByte() == 1);
            UInt16 count = stream.ReadUShort();

            for (Int32 i = 0; i < count; ++i)
            {
                CPrizeItem item = new CPrizeItem();
                item.SerializeFrom(stream);
                m_listPrizeItems.Add(item);
            }
        }
Exemplo n.º 5
0
        public void SerializeFrom(UnityUtility.CStream msgStream)
        {
            m_index = msgStream.ReadUInt();
            UInt16 type = msgStream.ReadUShort();

            m_type = (EMonsterType)type;
            UInt16 count = msgStream.ReadUShort();

            for (UInt16 i = 0; i < count; ++i)
            {
                CPrizeItem item = new CPrizeItem();
                item.SerializeFrom(msgStream);
                m_listDropItems.Add(item);
            }
        }
Exemplo n.º 6
0
        public bool SerializeFrom(UnityUtility.CStream msgStream)
        {
            m_gold      = msgStream.ReadUInt();
            m_diamond   = msgStream.ReadUInt();
            m_guangzili = msgStream.ReadUInt();

            m_itemCount = msgStream.ReadUInt();
            for (int i = 0; i < m_itemCount; ++i)
            {
                CPrizeItem item = new CPrizeItem();
                item.SerializeFrom(msgStream);
                m_prizeList.Add(item);
            }
            return(true);
        }
Exemplo n.º 7
0
 protected override bool _SerializeFrom(UnityUtility.CStream msgStream)
 {
     m_result = (EGetInstanceStarPrizeResult)msgStream.ReadByte();
     if (m_result == EGetInstanceStarPrizeResult.EGET_INSTANCE_PRIZE_RESULT_SUCCESS)
     {
         UInt16 count = msgStream.ReadUShort();
         for (UInt16 i = 0; i < count; ++i)
         {
             CPrizeItem item = new CPrizeItem();
             item.SerializeFrom(msgStream);
             m_listPrizeItem.Add(item);
         }
     }
     return(true);
 }
Exemplo n.º 8
0
        protected override bool _SerializeFrom(UnityUtility.CStream msgStream)
        {
            m_retCode = (EGetDisassemblyEquipResult)msgStream.ReadUInt();
            if (m_retCode != EGetDisassemblyEquipResult.EGETDISASSEMBLYEQUIP_RESULT_SUCCESS)
            {
                return(true);
            }
            UInt32 count = msgStream.ReadUInt();

            for (uint i = 0; i < count; ++i)
            {
                CPrizeItem item = new CPrizeItem();
                item.SerializeFrom(msgStream);
                m_itemList.Add(item);
            }
            return(true);
        }
Exemplo n.º 9
0
        public void SerializeFrom(UnityUtility.CStream msgStream)
        {
            m_exp  = msgStream.ReadULong();
            m_gold = msgStream.ReadULong();
            UInt16 count = msgStream.ReadUShort();

            for (UInt16 i = 0; i < count; ++i)
            {
                CPrizeItem item = new CPrizeItem();
                item.SerializeFrom(msgStream);
                m_listPrizeItem.Add(item);
            }
            count = msgStream.ReadUShort();
            for (UInt16 i = 0; i < count; ++i)
            {
                CPrizeItem item = new CPrizeItem();
                item.SerializeFrom(msgStream);
                m_elitePrizeItems.Add(item);
            }
        }
Exemplo n.º 10
0
        public void serializeFrom(UnityUtility.CStream stream)
        {
            m_TPID                 = stream.ReadUInt();
            m_taskName             = stream.ReadString();
            m_taskType             = (EDailyTaskType)stream.ReadByte();
            m_para1                = stream.ReadUInt();
            m_para2                = stream.ReadUInt();
            m_targetCount          = stream.ReadUShort();
            m_minRequiredRoleLevel = stream.ReadUInt();
            m_maxRequiredRoleLevel = stream.ReadUInt();
            m_icon                 = stream.ReadString();
            m_taskDescription      = stream.ReadString();
            m_jumpID               = stream.ReadUShort();
            UInt16 count = stream.ReadUShort();

            for (UInt16 i = 0; i < count; ++i)
            {
                CPrizeItem prizeItem = new CPrizeItem();
                prizeItem.SerializeFrom(stream);
                m_listPrizeItems.Add(prizeItem);
            }
            m_count = stream.ReadUShort();
            m_state = (ETaskState)stream.ReadByte();
        }
Exemplo n.º 11
0
 public void addItem(CPrizeItem a_item)
 {
     m_itemList.Add(a_item);
 }