public virtual void OnRoomLeaved() { Logd("OnRoomLeaved."); bool flag = IsBattleEnd(); isLeave = true; if (MonoBehaviourSingleton <CoopManager> .I.coopStage.stageId == stageId && !isBattleRetire && IsStageStart() && !flag && userInfo != null && QuestManager.IsValidInGame()) { uint id = 101u; if (isPartyOwner) { if (QuestManager.IsValidInGameWaveMatch()) { id = 111u; MonoBehaviourSingleton <InGameProgress> .I.BattleRetire(); } else if (QuestManager.IsValidInGameExplore()) { if (MonoBehaviourSingleton <InGameProgress> .IsValid()) { MonoBehaviourSingleton <InGameProgress> .I.ResetExploreHostDCTimer(); } else if (QuestManager.IsValidInGameExplore()) { MonoBehaviourSingleton <QuestManager> .I.UpdateExploreHostDCTime(30f); } } } string text = StringTable.Format(STRING_CATEGORY.IN_GAME, id, GetPlayerName()); UIInGamePopupDialog.PushOpen(text, false, 1.8f); } }
private void CallBackContinue(bool res, Error error) { //IL_0022: Unknown result type (might be due to invalid IL or missing references) if (MonoBehaviourSingleton <InGameProgress> .IsValid()) { MonoBehaviourSingleton <InGameProgress> .I.isWaitContinueProtocol = false; } if (res) { OnContinueSelf(); this.get_gameObject().SetActive(false); } else { continueButton.isEnabled = true; retireButton.isEnabled = true; string empty = string.Empty; empty = StringTable.Format(STRING_CATEGORY.COMMON_DIALOG, 1001u, (int)error); if (!string.IsNullOrEmpty(empty)) { UIInGamePopupDialog.PushOpen(empty, true, 1.8f); } Self self = MonoBehaviourSingleton <StageObjectManager> .I.self; if (self != null && self.actionID == (Character.ACTION_ID) 22 && self.continueTime <= 0f && MonoBehaviourSingleton <InGameProgress> .IsValid()) { MonoBehaviourSingleton <InGameProgress> .I.BattleRetire(); } } }
public void OnRecvNotifyTraceBoss(int fromClientId, Coop_Model_RoomNotifyTraceBoss model) { if (MonoBehaviourSingleton <QuestManager> .IsValid()) { ExploreStatus.TraceInfo[] bossTraceHistory = MonoBehaviourSingleton <QuestManager> .I.GetBossTraceHistory(); if (bossTraceHistory == null || bossTraceHistory.Length <= 0 || bossTraceHistory[bossTraceHistory.Length - 1].mapId != model.mid) { bool reserve = false; CoopClient coopClient = clients.FindByClientId(fromClientId); string playerName = coopClient.GetPlayerName(); if (MonoBehaviourSingleton <InGameProgress> .IsValid() && MonoBehaviourSingleton <InGameProgress> .I.progressEndType == InGameProgress.PROGRESS_END_TYPE.NONE) { int num = 0; num = ((model.lc != 0) ? 8004 : 8003); string text = StringTable.Format(STRING_CATEGORY.IN_GAME, (uint)num, playerName); UIInGamePopupDialog.PushOpen(text, false, 1.22f); } else if (QuestManager.IsValidExplore()) { reserve = true; } if (QuestManager.IsValidExplore()) { MonoBehaviourSingleton <QuestManager> .I.UpdateBossTraceHistory(model.mid, model.lc, playerName, reserve); } } } }
public void OnGetPortalPoint(int add_point) { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) EffectManager.OneShot(parameter.pointGetEffectName, _transform.get_position(), _transform.get_rotation(), false); nowPoint += add_point; if (nowPoint >= maxPoint) { if (!portalInfo.IsFull()) { Log.Warning(LOG.INGAME, "PortalObject.OnGetPortalPoint() Portal is not full. id : {0}", portalID); } isFull = true; CreateView(); string text = string.Empty; FieldMapTable.FieldMapTableData fieldMapData = Singleton <FieldMapTable> .I.GetFieldMapData(portalData.dstMapID); if (fieldMapData != null) { text = fieldMapData.mapName; } if (MonoBehaviourSingleton <FieldManager> .I.isTutorialField) { string text2 = StringTable.Format(STRING_CATEGORY.IN_GAME, 6001u, text); UIInGamePopupDialog.PushOpen(text2, false, 1.4f); } else if (QuestManager.IsValidInGameExplore()) { string text3 = StringTable.Format(STRING_CATEGORY.IN_GAME, 6002u, text); UIInGamePopupDialog.PushOpen(text3, false, 1.4f); } else { int num = parameter.clearCrystalNum; if (isToHardMap) { num = parameter.clearHardCrystalNum; } string text4 = StringTable.Format(STRING_CATEGORY.IN_GAME, 6000u, text, num); UIInGamePopupDialog.PushOpen(text4, false, 1.8f); } SoundManager.PlayOneShotUISE(40000069); SoundManager.PlayOneshotJingle(40000071, null, null); } else { UpdateView(); SoundManager.PlayOneShotUISE(40000068); } if (uiGizmo != null) { uiGizmo.OnGetPortalPoint(); } }
public override void OnRoomLeaved() { Logd("OnRoomLeaved. {0}/{1}", FieldManager.IsValidInGameNoQuest(), MonoBehaviourSingleton <InGameProgress> .IsValid()); base.isLeave = true; if (InGameManager.IsReentry()) { if (MonoBehaviourSingleton <InGameProgress> .IsValid()) { MonoBehaviourSingleton <InGameProgress> .I.FieldReentry(); } } else if (!base.isBattleRetire && IsStageStart() && !MonoBehaviourSingleton <CoopManager> .I.coopRoom.isOfflinePlay && !MonoBehaviourSingleton <CoopManager> .I.coopStage.isQuestClose) { string text = StringTable.Get(STRING_CATEGORY.IN_GAME, 100u); UIInGamePopupDialog.PushOpen(text, false, 1.8f); MonoBehaviourSingleton <GoWrapManager> .I.trackBattleDisconnect(); } }
public void Kick(int userId) { if (userId != MonoBehaviourSingleton <UserInfoManager> .I.userInfo.id) { LoungeModel.SlotInfo slotInfoByUserId = GetSlotInfoByUserId(userId); loungeData.slotInfos.Remove(slotInfoByUserId); } if (MonoBehaviourSingleton <LoungeManager> .IsValid()) { if (userId == MonoBehaviourSingleton <UserInfoManager> .I.userInfo.id) { ClearLounge(); MonoBehaviourSingleton <ChatManager> .I.DestroyLoungeChat(); StopAFKCheck(); } MonoBehaviourSingleton <LoungeManager> .I.OnRecvRoomKick(userId); } else if (userId == MonoBehaviourSingleton <UserInfoManager> .I.userInfo.id) { isKicked = true; if (FieldManager.IsValidInGameNoQuest()) { MonoBehaviourSingleton <GameSceneManager> .I.SetNotify(GameSection.NOTIFY_FLAG.LOUNGE_KICKED); } if (QuestManager.IsValidInGame()) { string text = StringTable.Get(STRING_CATEGORY.IN_GAME, 140u); UIInGamePopupDialog.PushOpen(text, false, 1.4f); } ClearLounge(); MonoBehaviourSingleton <ChatManager> .I.DestroyLoungeChat(); StopAFKCheck(); } }
public void OnRecvNotifyEncounterBoss(int fromClientId, Coop_Model_RoomNotifyEncounterBoss model) { if (!QuestManager.IsValidInGameExplore() || !MonoBehaviourSingleton <QuestManager> .I.IsExploreBossMap()) { if (!MonoBehaviourSingleton <QuestManager> .I.IsEncountered() && MonoBehaviourSingleton <InGameProgress> .IsValid() && MonoBehaviourSingleton <InGameProgress> .I.progressEndType == InGameProgress.PROGRESS_END_TYPE.NONE) { CoopClient coopClient = clients.FindByClientId(fromClientId); MonoBehaviourSingleton <QuestManager> .I.SetMemberEncounteredMap(model.mid); uint currentQuestID = MonoBehaviourSingleton <QuestManager> .I.currentQuestID; QuestTable.QuestTableData questData = Singleton <QuestTable> .I.GetQuestData(currentQuestID); int mainEnemyID = questData.GetMainEnemyID(); string enemyName = Singleton <EnemyTable> .I.GetEnemyName((uint)mainEnemyID); string text = StringTable.Format(STRING_CATEGORY.IN_GAME, 8000u, coopClient.GetPlayerName(), enemyName); UIInGamePopupDialog.PushOpen(text, false, 1.22f); } if (QuestManager.IsValidExplore()) { MonoBehaviourSingleton <QuestManager> .I.UpdatePortalUsedFlag(model.pid); } } }