コード例 #1
0
ファイル: MsgPetSystem.cs プロジェクト: cash2one/oold
 protected override bool _SerializeFrom(UnityUtility.CStream msgStream)
 {
     m_petID = msgStream.ReadUInt();
     m_hotSprintTaskStatus = (EHotSpringTaskStatus)msgStream.ReadUInt();
     m_type = (EHotSpringTaskType)msgStream.ReadUInt();
     return(true);
 }
コード例 #2
0
        public bool SendMsgPetSystemGC2GMReqPetGetHotSpringTaskDetail(UInt32 petID, EHotSpringTaskType petTaskType, CBMsgPetSystemGM2GCAckPetGetHotSpringTaskDetail cb)
        {
            CMsgPetSystemGC2GMReqPetGetHotSpringTaskDetail req = new CMsgPetSystemGC2GMReqPetGetHotSpringTaskDetail(petID, petTaskType);

            CMsgPetSystemGM2GCAckPetGetHotSpringTaskDetail.cb = cb;
            return(CGameClient.Singleton.SendMsg(req));
        }
コード例 #3
0
ファイル: CHotSpringTaskData.cs プロジェクト: cash2one/oold
        public bool SerializeFrom(UnityUtility.CStream msgStream)
        {
            m_petID    = msgStream.ReadUInt();
            m_petTPID  = msgStream.ReadUInt();
            m_taskType = (EHotSpringTaskType)msgStream.ReadUInt();
            m_itemID   = msgStream.ReadUInt();
            m_question.SerializeFrom(msgStream);

            UInt32 answerCount = msgStream.ReadUInt();

            for (UInt32 i = 0; i < answerCount; ++i)
            {
                CTalkAnswer item = new CTalkAnswer();
                item.SerializeFrom(msgStream);
                m_answerList.Add(item);
            }
            return(true);
        }
コード例 #4
0
 public bool SerializeFrom(UnityUtility.CStream msgStream)
 {
     m_petID               = msgStream.ReadUInt();
     m_petTPID             = msgStream.ReadUInt();
     m_petFriendlyLevel    = msgStream.ReadUInt();
     m_petFriendlyValue    = msgStream.ReadUInt();
     m_maxPetFriendlyValue = msgStream.ReadUInt();
     m_petStatus           = (EPetStatus)msgStream.ReadUInt();
     m_hotSpringType       = (EHotSpringType)msgStream.ReadUInt();
     m_petTaskType         = (EHotSpringTaskStatus)msgStream.ReadUInt();
     m_hotSpringTaskType   = (EHotSpringTaskType)msgStream.ReadUInt();
     m_leftTime            = msgStream.ReadUInt();
     m_petBattleAttribute.SerializeFrom(msgStream);
     m_petGrowUpAttribute.SerializeFrom(msgStream);
     // 战斗力公式 i.	战斗力=攻击力*2 + 防御力 + 生命值/5 + 命中/5 + 闪避/2 + 暴击/2 + 抗暴/5
     m_combat = m_petBattleAttribute.Atk * 2
                + m_petBattleAttribute.Def
                + m_petBattleAttribute.MaxHP / 5
                + m_petBattleAttribute.AtkCrift / 2
                + m_petBattleAttribute.DefCrift / 5
                + m_petBattleAttribute.HitRate / 5
                + m_petBattleAttribute.MissRate / 2;
     return(true);
 }
コード例 #5
0
ファイル: MsgPetSystem.cs プロジェクト: cash2one/oold
 public CMsgPetSystemGC2GMReqPetGetHotSpringTaskDetail(UInt32 petID, EHotSpringTaskType petTaskType)
     : base(CServerType.SRVTYPE_GAMESERVER, CFuncType.EFUNCTYPE_PETSYSTEM, CPetSystemMsgNumID.EMSGNUMID_PETSYSTEM_GC2GM_REQ_PET_GET_HOTSPRING_TASK_DETAIL)
 {
     m_petID       = petID;
     m_petTaskType = petTaskType;
 }