public override void Initialize() { //IL_000d: Unknown result type (might be due to invalid IL or missing references) object[] array = GameSection.GetEventData() as object[]; observer = this.get_gameObject().AddComponent <QuestRoomObserver>().Initialize((bool)array[1], (bool)array[2], delegate(string dispatch_event_name) { DispatchEvent(dispatch_event_name, null); }, delegate(string change_event_name) { GameSection.ChangeEvent(change_event_name, null); }, delegate { GameSection.StayEvent(); }, delegate(bool is_success) { GameSection.ResumeEvent(is_success, null); }, null); GameSection.SetEventData(array[0]); base.Initialize(); }
protected virtual void OnQuery_QUEST_ROOM_IN_GAME() { QuestTable.QuestTableData table = GetEventData() as QuestTable.QuestTableData; bool flag = MonoBehaviourSingleton <GameSceneManager> .I.IsCurrentSceneHomeOrLounge(); if (table == null || !flag) { StopEvent(); } else { bool is_free_join = true; if (table.questType == QUEST_TYPE.EVENT) { is_free_join = !MonoBehaviourSingleton <PartyManager> .I.IsPayingQuest(); } MonoBehaviourSingleton <QuestManager> .I.SetCurrentQuestID(table.questID, is_free_join); StayEvent(); CoopApp.EnterPartyQuest(delegate(bool is_m, bool is_c, bool is_r, bool is_s) { bool is_resume = is_s; if (is_r) { if (is_s) { QuestRoomObserver.OffObserve(); } } else if (!is_c && table.questType != QUEST_TYPE.ORDER) { ChangeStayEvent("COOP_SERVER_INVALID", null); is_resume = true; } ResumeEvent(is_resume, null); }); } }