예제 #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();
        }
예제 #2
0
 public CMsgTaskSystemGC2GMNtfFinishMainTaskEvent(EMainTaskType type, UInt32 param1, UInt32 param2)
     : base(CServerType.SRVTYPE_GAMESERVER, CFuncType.EFUNCTYPE_TASKSYSTEM, CTaskSystemMsgNumID.EMSGNUMID_TASKSYSTEM_GC2GM_NTF_FINISH_MAIN_TASK_EVENT)
 {
     m_type   = type;
     m_param1 = param1;
     m_param2 = param2;
 }
예제 #3
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        public bool SendMsgTaskSystemGC2GMNtfFinishMainTaskEvent(EMainTaskType type, UInt32 param1, UInt32 param2)
        {
            CMsgTaskSystemGC2GMNtfFinishMainTaskEvent ntf = new CMsgTaskSystemGC2GMNtfFinishMainTaskEvent(type, param1, param2);

            return(CGameClient.Singleton.SendMsg(ntf));
        }