コード例 #1
0
        public void world_onQuestsUpdate(S2GC_UpdateQuests ql)
        {
            if (ql.QuestsList != null)
            {
                Player_Self.ActiveQuests = ql.QuestsList;
            }
            else
            {
                Player_Self.ActiveQuests = new List <QuestData>();
            }

            if (ql.FQuestList != null)
            {
                Player_Self.FinishedQuests = ql.FQuestList;
            }
            else
            {
                Player_Self.FinishedQuests = new List <string>();
            }
            //foreach(QuestData q in Player_Self.ActiveQuests)
            //{
            //    world_updateNPCQuestMarker(Quests.QList[q.ID].EndNPCID);
            //}
            foreach (BaseNPC_Client n in NPCList.Values)
            {
                world_updateNPCQuestMarker(n);
            }
            e.getUI().ui_ingame_UpdateQuestTracker();
        }
コード例 #2
0
        public void net_onUpdateQuests(NetworkMessage netmsg)
        {
            S2GC_UpdateQuests Message = netmsg.ReadMessage <S2GC_UpdateQuests>();

            e.getWorld().world_onQuestsUpdate(Message);
        }