/// <summary> /// 피들러 참고. 이숫자 대체 어디서 들고오는거야 /// </summary> public static void SetEmpireLifeModeDataAll() { if (!isScenarioExecuteCountAllRun) { Task.Factory.StartNew(() => { MyLog.LogDarkBlue("SetScenarioExecuteCountAll. start"); isScenarioExecuteCountAllRun = true; foreach (Maid maid in GameMain.Instance.CharacterMgr.GetStockMaidList()) { if (maid.status.heroineType == HeroineType.Sub) { continue; } foreach (var data in EmpireLifeModeData.GetAllDatas(true)) { //try //{ int cnt = GameMain.Instance.LifeModeMgr.GetScenarioExecuteCount(data.ID); if (cnt >= 255) { continue; } IncrementMaidScenarioExecuteCount(data.ID, maid); MyLog.LogMessage("SetScenarioExecuteCountAll:" + cnt + MyUtill.GetMaidFullName(maid) , data.ID , data.strUniqueName , data.dataScenarioFileName , data.dataScenarioFileLabel ); if (data.dataFlagMaid != null) { MyLog.LogMessage("SetScenarioExecuteCountAll.Maid:" + MyUtill.Join(" | ", data.dataFlagMaid.Keys.ToArray()) ); } if (data.dataFlagPlayer != null) { MyLog.LogMessage("SetScenarioExecuteCountAll.Player:" + MyUtill.Join(" | ", data.dataFlagPlayer.Keys.ToArray()) ); } //m_SaveDataScenarioExecuteCountArray.Add(key, 255, true); //} //catch (Exception e) //{ // MyLog.LogMessage("SetScenarioExecuteCountAll:" + e.ToString()); //} } } isScenarioExecuteCountAllRun = false; MyLog.LogDarkBlue("SetScenarioExecuteCountAll. end"); }); } }
internal static void print() { try { //AccessTools.Field MyLog.LogDarkBlue("m_AllScenarioData. start"); if (m_AllScenarioData != null) { foreach (var item in m_AllScenarioData) { if (item.Value == null) { continue; } ScenarioData scenarioData = item.Value; MyLog.LogMessage("ScenarioSelectMgr1" , scenarioData.ID , scenarioData.NotLineTitle //, scenarioData.Title , scenarioData.ScenarioScript , scenarioData.EventContents , scenarioData.IsImportant , scenarioData.IsPlayable , scenarioData.IsOncePlayed , scenarioData.ScriptLabel , scenarioData.NotPlayAgain , scenarioData.EventMaidCount , scenarioData.ConditionCount , MyUtill.Join("/", scenarioData.ConditionText) ); } } MyLog.LogDarkBlue("m_ImportantScenarioList. start"); if (m_ImportantScenarioList != null) { foreach (ScenarioData scenarioData in m_ImportantScenarioList) { MyLog.LogMessage("ScenarioSelectMgr2" , scenarioData.ID , scenarioData.NotLineTitle //, scenarioData.Title , scenarioData.ScenarioScript , scenarioData.EventContents , scenarioData.IsImportant , scenarioData.IsPlayable , scenarioData.IsOncePlayed , scenarioData.ScriptLabel , scenarioData.NotPlayAgain , scenarioData.EventMaidCount , scenarioData.ConditionCount , MyUtill.Join("/", scenarioData.ConditionText) ); } } MyLog.LogMessage("ScenarioSelectMgr3" , m_AllScenarioData.Count , m_ImportantScenarioList.Count , m_AddedScenerio.Length ); } catch (Exception e) { MyLog.LogWarning("ScenarioSelectMgr4", e.ToString() ); } }