123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.IO;
- using MaidStatus;
- using wf;
- public static class EmpireLifeModeData
- {
- public static int Count
- {
- get
- {
- EmpireLifeModeData.CreateData();
- return EmpireLifeModeData.commonIdManager.idMap.Count;
- }
- }
- public static bool Contains(int id)
- {
- EmpireLifeModeData.CreateData();
- return EmpireLifeModeData.commonIdManager.idMap.ContainsKey(id);
- }
- public static int uniqueNameToId(string name)
- {
- EmpireLifeModeData.CreateData();
- NDebug.Assert(EmpireLifeModeData.commonIdManager.nameMap.ContainsKey(name), "エンパイアライフモード.csv\nユニーク名[" + name + "]をIDに変換できませんでした");
- return EmpireLifeModeData.commonIdManager.nameMap[name];
- }
- public static string IdToUniqueName(int id)
- {
- EmpireLifeModeData.CreateData();
- NDebug.Assert(EmpireLifeModeData.commonIdManager.idMap.ContainsKey(id), "エンパイアライフモード.csv\nID[" + id + "]をユニーク名に変換できませんでした");
- return EmpireLifeModeData.commonIdManager.idMap[id].Key;
- }
- public static EmpireLifeModeData.Data GetData(int id)
- {
- EmpireLifeModeData.CreateData();
- NDebug.Assert(EmpireLifeModeData.basicDatas.ContainsKey(id), "エンパイアライフモード.csv\nID[" + id + "]のデータは存在しません");
- return EmpireLifeModeData.basicDatas[id];
- }
- public static EmpireLifeModeData.Data GetData(string uniqueName)
- {
- return EmpireLifeModeData.GetData(EmpireLifeModeData.uniqueNameToId(uniqueName));
- }
- public static bool IsEnabled(int id)
- {
- EmpireLifeModeData.CreateData();
- return EmpireLifeModeData.commonIdManager.enabledIdList.Contains(id);
- }
- public static bool IsEnabled(string uniqueName)
- {
- EmpireLifeModeData.CreateData();
- return EmpireLifeModeData.commonIdManager.enabledIdList.Contains(EmpireLifeModeData.uniqueNameToId(uniqueName));
- }
- public static List<EmpireLifeModeData.Data> GetAllDatas(bool onlyEnabled)
- {
- EmpireLifeModeData.CreateData();
- List<EmpireLifeModeData.Data> list = new List<EmpireLifeModeData.Data>();
- foreach (KeyValuePair<int, KeyValuePair<string, string>> keyValuePair in EmpireLifeModeData.commonIdManager.idMap)
- {
- if (!onlyEnabled || EmpireLifeModeData.commonIdManager.enabledIdList.Contains(keyValuePair.Key))
- {
- list.Add(EmpireLifeModeData.basicDatas[keyValuePair.Key]);
- }
- }
- return list;
- }
- public static List<EmpireLifeModeData.Data> GetDatas(Func<EmpireLifeModeData.Data, bool> customCheckFunction, bool isOnlyEnabled = true)
- {
- EmpireLifeModeData.CreateData();
- List<EmpireLifeModeData.Data> list = new List<EmpireLifeModeData.Data>();
- foreach (KeyValuePair<int, KeyValuePair<string, string>> keyValuePair in EmpireLifeModeData.commonIdManager.idMap)
- {
- if (!isOnlyEnabled || EmpireLifeModeData.commonIdManager.enabledIdList.Contains(keyValuePair.Key))
- {
- EmpireLifeModeData.Data data = EmpireLifeModeData.basicDatas[keyValuePair.Key];
- if (customCheckFunction(data))
- {
- list.Add(data);
- }
- }
- }
- return list;
- }
- public static void CreateData()
- {
- if (EmpireLifeModeData.commonIdManager != null)
- {
- return;
- }
- EmpireLifeModeData.commonIdManager = new CsvCommonIdManager("empire_life_mode", "エンパイアライフモード.csv", CsvCommonIdManager.Type.IdAndUniqueName, null);
- EmpireLifeModeData.basicDatas = new Dictionary<int, EmpireLifeModeData.Data>();
- string[] array = new string[]
- {
- "list"
- };
- KeyValuePair<AFileBase, CsvParser>[] array2 = new KeyValuePair<AFileBase, CsvParser>[array.Length];
- for (int i = 0; i < array2.Length; i++)
- {
- string text = "empire_life_mode_" + array[i] + ".nei";
- AFileBase afileBase = GameUty.FileSystem.FileOpen(text);
- CsvParser csvParser = new CsvParser();
- bool condition = csvParser.Open(afileBase);
- NDebug.Assert(condition, text + "\nopen failed.");
- array2[i] = new KeyValuePair<AFileBase, CsvParser>(afileBase, csvParser);
- }
- foreach (KeyValuePair<int, KeyValuePair<string, string>> keyValuePair in EmpireLifeModeData.commonIdManager.idMap)
- {
- int key = keyValuePair.Key;
- EmpireLifeModeData.Data value = new EmpireLifeModeData.Data(key, array2[0].Value);
- EmpireLifeModeData.basicDatas.Add(key, value);
- }
- foreach (KeyValuePair<AFileBase, CsvParser> keyValuePair2 in array2)
- {
- keyValuePair2.Value.Dispose();
- keyValuePair2.Key.Dispose();
- }
- }
- public static void Clear()
- {
- if (EmpireLifeModeData.commonIdManager != null)
- {
- EmpireLifeModeData.commonIdManager = null;
- }
- }
- private const string csvTopCommonName = "empire_life_mode";
- private const string typeNameForErrorLog = "エンパイアライフモード.csv";
- private static CsvCommonIdManager commonIdManager;
- private static Dictionary<int, EmpireLifeModeData.Data> basicDatas;
- public enum ScenarioType
- {
- 一般,
- 汎用,
- スト\u30FCリ\u30FC,
- Hシ\u30FCン,
- セクハラ
- }
- public class Data
- {
- public Data(int uniqueID, CsvParser csv)
- {
- for (int i = 1; i < csv.max_cell_y; i++)
- {
- if (csv.IsCellToExistData(0, i) && csv.GetCellAsInteger(0, i) == uniqueID)
- {
- string text = (i + 1).ToString() + "行目";
- int num = 1;
- this.ID = uniqueID;
- this.strUniqueName = csv.GetCellAsString(num++, i);
- this.rawDataScenarioType = csv.GetCellAsString(num++, i);
- this.rawDataScenarioAnyNumberPlay = csv.GetCellAsString(num++, i);
- this.rawDataScenarioFileName = csv.GetCellAsString(num++, i);
- this.rawDataScenarioFileLabel = csv.GetCellAsString(num++, i);
- this.rawDataNTRBlock = csv.GetCellAsString(num++, i);
- this.rawDataFacilityUniqueName = csv.GetCellAsString(num++, i);
- this.rawDataFacilityCostumeChange = csv.GetCellAsString(num++, i);
- this.rawDataTimeZone = csv.GetCellAsString(num++, i);
- this.rawDataFlagPlayer = csv.GetCellAsString(num++, i);
- this.rawDataFlagMaid = csv.GetCellAsString(num++, i);
- this.rawDataMaidPersonalTypeSlot0 = csv.GetCellAsString(num++, i);
- this.rawDataMaidPersonalTypeSlot1 = csv.GetCellAsString(num++, i);
- this.rawDataMaidPersonalTypeSlot2 = csv.GetCellAsString(num++, i);
- this.rawDataMaidMainCharaOnly = csv.GetCellAsString(num++, i);
- this.rawDataMaidContract = csv.GetCellAsString(num++, i);
- this.rawDataMaidRelation = csv.GetCellAsString(num++, i);
- this.rawDataMaidStatus = csv.GetCellAsString(num++, i);
- this.rawDataMaidSeikeikenNoNo = csv.GetCellAsString(num++, i);
- this.rawDataMaidSeikeikenYesNo = csv.GetCellAsString(num++, i);
- this.rawDataMaidSeikeikenNoYes = csv.GetCellAsString(num++, i);
- this.rawDataMaidSeikeikenYesYes = csv.GetCellAsString(num++, i);
- NDebug.Assert(!string.IsNullOrEmpty(this.rawDataScenarioType), "エンパイアライフモード.csv\n項目「種類」が指定されていません。\n\n表:" + text);
- NDebug.Assert(!string.IsNullOrEmpty(this.rawDataScenarioAnyNumberPlay), "エンパイアライフモード.csv\n項目「何度でも再生できるか」が指定されていません。\n\n表:" + text);
- NDebug.Assert(!string.IsNullOrEmpty(this.rawDataScenarioFileName), "エンパイアライフモード.csv\n項目「シナリオファイル」が指定されていません。\n\n表:" + text);
- NDebug.Assert(!string.IsNullOrEmpty(this.rawDataFacilityUniqueName), "エンパイアライフモード.csv\n項目「施設」が指定されていません。\n\n表:" + text);
- NDebug.Assert(!string.IsNullOrEmpty(this.rawDataFacilityCostumeChange), "エンパイアライフモード.csv\n項目「施設コスチュームの適用」が指定されていません。\n\n表:" + text);
- NDebug.Assert(!string.IsNullOrEmpty(this.rawDataMaidPersonalTypeSlot0 + this.rawDataMaidPersonalTypeSlot1 + this.rawDataMaidPersonalTypeSlot2), "エンパイアライフモード.csv\n項目「メイド性格」が指定されていません。\n\n表:" + text);
- NDebug.Assert(!string.IsNullOrEmpty(this.rawDataMaidSeikeikenNoNo), "エンパイアライフモード.csv\n項目「経験無し」が指定されていません。\n\n表:" + text);
- NDebug.Assert(!string.IsNullOrEmpty(this.rawDataMaidSeikeikenYesNo), "エンパイアライフモード.csv\n項目「前穴」が指定されていません。\n\n表:" + text);
- NDebug.Assert(!string.IsNullOrEmpty(this.rawDataMaidSeikeikenNoYes), "エンパイアライフモード.csv\n項目「後ろ穴」が指定されていません。\n\n表:" + text);
- NDebug.Assert(!string.IsNullOrEmpty(this.rawDataMaidSeikeikenYesYes), "エンパイアライフモード.csv\n項目「両方」が指定されていません。\n\n表:" + text);
- try
- {
- this.dataScenarioType = (EmpireLifeModeData.ScenarioType)Enum.Parse(typeof(EmpireLifeModeData.ScenarioType), this.rawDataScenarioType);
- }
- catch (Exception ex)
- {
- NDebug.Assert("エンパイアライフモード.csv\n項目「種類」の変換に失敗しました。\n\n表:" + text + "\n値:" + this.rawDataScenarioType, false);
- }
- if (this.rawDataScenarioAnyNumberPlay == "○" || this.rawDataScenarioAnyNumberPlay == "◯")
- {
- this.dataScenarioAnyNumberPlay = true;
- }
- else if (this.rawDataScenarioAnyNumberPlay == "×")
- {
- this.dataScenarioAnyNumberPlay = false;
- }
- else
- {
- NDebug.Assert("エンパイアライフモード.csv\n項目「何度でも再生できるか」に、想定外の文字が入りました。\n\n表:" + text + "\n値:" + this.rawDataScenarioAnyNumberPlay, false);
- }
- this.dataScenarioFileName = Path.ChangeExtension(this.rawDataScenarioFileName, ".ks");
- if (string.IsNullOrEmpty(this.rawDataScenarioFileLabel))
- {
- this.dataScenarioFileLabel = "*top";
- }
- else
- {
- this.dataScenarioFileLabel = ((this.rawDataScenarioFileLabel.IndexOf("*") >= 0) ? this.rawDataScenarioFileLabel : ("*" + this.rawDataScenarioFileLabel));
- }
- if (string.IsNullOrEmpty(this.rawDataNTRBlock))
- {
- this.dataNTRBlock = null;
- }
- else if (this.rawDataNTRBlock == "○" || this.rawDataNTRBlock == "◯")
- {
- this.dataNTRBlock = new bool?(true);
- }
- else if (this.rawDataNTRBlock == "×")
- {
- this.dataNTRBlock = new bool?(false);
- }
- else
- {
- NDebug.Assert("エンパイアライフモード.csv\n項目「NTRブロック」の値に、想定外の文字が入りました。\n\n表:" + text + "\n値:" + this.rawDataNTRBlock, false);
- }
- this.dataFacilityUniqueNameArray = this.rawDataFacilityUniqueName.Split(new char[]
- {
- ','
- });
- for (int j = 0; j < this.dataFacilityUniqueNameArray.Length; j++)
- {
- string text2 = this.dataFacilityUniqueNameArray[j] = this.dataFacilityUniqueNameArray[j].Trim();
- NDebug.Assert(FacilityDataTable.GetFacilityDefaultData(text2, true) != null, "エンパイアライフモード.csv\n項目「施設」の値「" + text2 + "」は正しくない情報です。\n\n表:" + text);
- }
- if (this.rawDataFacilityCostumeChange == "○" || this.rawDataFacilityCostumeChange == "◯")
- {
- this.dataFacilityCostumeChange = true;
- }
- else if (this.rawDataFacilityCostumeChange == "×")
- {
- this.dataFacilityCostumeChange = false;
- }
- else
- {
- NDebug.Assert("エンパイアライフモード.csv\n項目「施設コスチュームの適用」の値に、想定外の文字が入りました。\n\n表:" + text + "\n値:" + this.rawDataFacilityCostumeChange, false);
- }
- if (string.IsNullOrEmpty(this.rawDataTimeZone))
- {
- this.dataTimeZone = null;
- }
- else if (this.rawDataTimeZone == "昼")
- {
- this.dataTimeZone = new ScheduleMgr.ScheduleTime?(ScheduleMgr.ScheduleTime.DayTime);
- }
- else if (this.rawDataTimeZone == "夜")
- {
- this.dataTimeZone = new ScheduleMgr.ScheduleTime?(ScheduleMgr.ScheduleTime.Night);
- }
- else
- {
- NDebug.Assert("エンパイアライフモード.csv\n項目「時間帯」の値に、想定外の文字が入りました。\n\n表:" + text + "\n値:" + this.rawDataTimeZone, false);
- }
- if (string.IsNullOrEmpty(this.rawDataFlagPlayer))
- {
- this.dataFlagPlayer = null;
- }
- else
- {
- this.dataFlagPlayer = new Dictionary<string, int>();
- foreach (string text3 in this.rawDataFlagPlayer.Split(new char[]
- {
- ','
- }))
- {
- string[] array2 = text3.Split(new char[]
- {
- ':'
- });
- NDebug.Assert(array2.Length == 2, "エンパイアライフモード.csv\n項目「プレイヤーフラグ」の書式に問題がありました。\n\n表:" + text + "\n値:" + text3);
- NDebug.Assert(!this.dataFlagPlayer.ContainsKey(array2[0]), "エンパイアライフモード.csv\n項目「プレイヤーフラグ」で、フラグ名が重複しました。\n\n表:" + text + "\nフラグ名:" + array2[0]);
- int value;
- if (!int.TryParse(array2[1], out value))
- {
- NDebug.Assert("エンパイアライフモード.csv\n項目「プレイヤーフラグ」で、フラグの値を整数値に変換できませんでした。\n\n表:" + text + "\n値: " + text3, false);
- }
- this.dataFlagPlayer.Add(array2[0], value);
- }
- }
- if (string.IsNullOrEmpty(this.rawDataFlagMaid))
- {
- this.dataFlagMaid = null;
- }
- else
- {
- this.dataFlagMaid = new Dictionary<string, int>();
- foreach (string text4 in this.rawDataFlagMaid.Split(new char[]
- {
- ','
- }))
- {
- string[] array4 = text4.Split(new char[]
- {
- ':'
- });
- NDebug.Assert(array4.Length == 2, "エンパイアライフモード.csv\n項目「メイドフラグ」の書式に問題がありました。\n\n表:" + text + "\n値:" + text4);
- NDebug.Assert(!this.dataFlagMaid.ContainsKey(array4[0]), "エンパイアライフモード.csv\n項目「メイドフラグ」で、フラグ名が重複しました。\n\n表:" + text + "\nフラグ名:" + array4[0]);
- int value2;
- if (!int.TryParse(array4[1], out value2))
- {
- NDebug.Assert("エンパイアライフモード.csv\n項目「メイドフラグ」で、フラグの値を整数値に変換できませんでした。\n\n表:" + text + "\n値: " + text4, false);
- }
- this.dataFlagMaid.Add(array4[0], value2);
- }
- }
- this.dataMaidPersonalUniqueNameAndActiveSlotDic = new Dictionary<int, string>();
- if (!string.IsNullOrEmpty(this.rawDataMaidPersonalTypeSlot0))
- {
- string value3;
- if (!EmpireLifeModeData.Data.personalUniqueNameDic.TryGetValue(this.rawDataMaidPersonalTypeSlot0, out value3))
- {
- NDebug.Assert("エンパイアライフモード.csv\n項目「メイド性格」の値で、性格ユニーク名への変換に失敗しました。\n\n表:" + text + "\n値:" + this.rawDataMaidPersonalTypeSlot0, false);
- }
- this.dataMaidPersonalUniqueNameAndActiveSlotDic.Add(0, value3);
- }
- if (!string.IsNullOrEmpty(this.rawDataMaidPersonalTypeSlot1))
- {
- string value4;
- if (!EmpireLifeModeData.Data.personalUniqueNameDic.TryGetValue(this.rawDataMaidPersonalTypeSlot1, out value4))
- {
- NDebug.Assert("エンパイアライフモード.csv\n項目「メイド性格」の値で、性格ユニーク名への変換に失敗しました。\n\n表:" + text + "\n値:" + this.rawDataMaidPersonalTypeSlot1, false);
- }
- this.dataMaidPersonalUniqueNameAndActiveSlotDic.Add(1, value4);
- }
- if (!string.IsNullOrEmpty(this.rawDataMaidPersonalTypeSlot2))
- {
- string value5;
- if (!EmpireLifeModeData.Data.personalUniqueNameDic.TryGetValue(this.rawDataMaidPersonalTypeSlot2, out value5))
- {
- NDebug.Assert("エンパイアライフモード.csv\n項目「メイド性格」の値で、性格ユニーク名への変換に失敗しました。\n\n表:" + text + "\n値:" + this.rawDataMaidPersonalTypeSlot2, false);
- }
- this.dataMaidPersonalUniqueNameAndActiveSlotDic.Add(2, value5);
- }
- if (string.IsNullOrEmpty(this.rawDataMaidMainCharaOnly))
- {
- this.dataMaidMainCharaOnly = null;
- }
- else if (this.rawDataMaidMainCharaOnly == "○" || this.rawDataMaidMainCharaOnly == "◯")
- {
- this.dataMaidMainCharaOnly = new bool?(true);
- }
- else if (this.rawDataMaidMainCharaOnly == "×")
- {
- this.dataMaidMainCharaOnly = new bool?(false);
- }
- else
- {
- NDebug.Assert(string.Concat(new object[]
- {
- "エンパイアライフモード.csv\n項目「初期メイドフラグ」の値に、想定外の文字が入りました。\n\n表:",
- text,
- "\n値:",
- this.dataMaidMainCharaOnly
- }), false);
- }
- if (string.IsNullOrEmpty(this.rawDataMaidContract))
- {
- this.dataMaidContract = null;
- }
- else
- {
- Contract value6;
- if (!EmpireLifeModeData.Data.contractTypeDic.TryGetValue(this.rawDataMaidContract, out value6))
- {
- NDebug.Assert("エンパイアライフモード.csv\n項目「契約状態」の値に、想定外の文字が入りました。\n\n表:" + text + "\n値:" + this.rawDataMaidContract, false);
- }
- this.dataMaidContract = new Contract?(value6);
- }
- if (string.IsNullOrEmpty(this.rawDataMaidRelation))
- {
- this.dataMaidRelation = null;
- }
- else
- {
- Relation value7;
- if (!EmpireLifeModeData.Data.relationTypeDic.TryGetValue(this.rawDataMaidRelation, out value7))
- {
- NDebug.Assert("エンパイアライフモード.csv\n項目「関係状態」の値に、想定外の文字が入りました。\n\n表:" + text + "\n値:" + this.rawDataMaidRelation, false);
- }
- this.dataMaidRelation = new Relation?(value7);
- }
- if (string.IsNullOrEmpty(this.rawDataMaidStatus))
- {
- this.dataMaidStatus = null;
- }
- else
- {
- this.dataMaidStatus = new ParametersPack();
- this.dataMaidStatus.Parse(this.rawDataMaidStatus.Replace(':', '='), ',');
- }
- List<Seikeiken> list = new List<Seikeiken>();
- if (this.rawDataMaidSeikeikenNoNo == "○" || this.rawDataMaidSeikeikenNoNo == "◯")
- {
- list.Add(Seikeiken.No_No);
- }
- if (this.rawDataMaidSeikeikenYesNo == "○" || this.rawDataMaidSeikeikenYesNo == "◯")
- {
- list.Add(Seikeiken.Yes_No);
- }
- if (this.rawDataMaidSeikeikenNoYes == "○" || this.rawDataMaidSeikeikenNoYes == "◯")
- {
- list.Add(Seikeiken.No_Yes);
- }
- if (this.rawDataMaidSeikeikenYesYes == "○" || this.rawDataMaidSeikeikenYesYes == "◯")
- {
- list.Add(Seikeiken.Yes_Yes);
- }
- this.dataMaidSeikeiken = list.ToArray();
- break;
- }
- }
- }
- private static Dictionary<string, string> personalUniqueNameDic
- {
- get
- {
- if (EmpireLifeModeData.Data.m_PersonalUniqueNameDic == null)
- {
- EmpireLifeModeData.Data.m_PersonalUniqueNameDic = new Dictionary<string, string>();
- foreach (Personal.Data data in Personal.GetAllDatas(false))
- {
- EmpireLifeModeData.Data.m_PersonalUniqueNameDic.Add(data.drawName, data.uniqueName);
- }
- }
- return EmpireLifeModeData.Data.m_PersonalUniqueNameDic;
- }
- }
- private static Dictionary<string, Contract> contractTypeDic
- {
- get
- {
- if (EmpireLifeModeData.Data.m_ContractTypeDic == null)
- {
- EmpireLifeModeData.Data.m_ContractTypeDic = new Dictionary<string, Contract>();
- IEnumerator enumerator = Enum.GetValues(typeof(Contract)).GetEnumerator();
- try
- {
- while (enumerator.MoveNext())
- {
- object obj = enumerator.Current;
- Contract contract = (Contract)obj;
- string @string = EnumConvert.GetString(contract);
- EmpireLifeModeData.Data.m_ContractTypeDic.Add(@string, contract);
- }
- }
- finally
- {
- IDisposable disposable;
- if ((disposable = (enumerator as IDisposable)) != null)
- {
- disposable.Dispose();
- }
- }
- }
- return EmpireLifeModeData.Data.m_ContractTypeDic;
- }
- }
- private static Dictionary<string, Relation> relationTypeDic
- {
- get
- {
- if (EmpireLifeModeData.Data.m_RelationTypeDic == null)
- {
- EmpireLifeModeData.Data.m_RelationTypeDic = new Dictionary<string, Relation>();
- IEnumerator enumerator = Enum.GetValues(typeof(Relation)).GetEnumerator();
- try
- {
- while (enumerator.MoveNext())
- {
- object obj = enumerator.Current;
- Relation relation = (Relation)obj;
- string @string = EnumConvert.GetString(relation);
- EmpireLifeModeData.Data.m_RelationTypeDic.Add(@string, relation);
- }
- }
- finally
- {
- IDisposable disposable;
- if ((disposable = (enumerator as IDisposable)) != null)
- {
- disposable.Dispose();
- }
- }
- }
- return EmpireLifeModeData.Data.m_RelationTypeDic;
- }
- }
- public static List<string> personalUniqueNameEnabledList
- {
- get
- {
- if (EmpireLifeModeData.Data.m_PersonalUniqueNameEnabledList == null)
- {
- EmpireLifeModeData.Data.m_PersonalUniqueNameEnabledList = new List<string>();
- List<EmpireLifeModeData.Data> allDatas = EmpireLifeModeData.GetAllDatas(true);
- int count = allDatas.Count;
- for (int i = 0; i < count; i++)
- {
- using (Dictionary<int, string>.ValueCollection.Enumerator enumerator = allDatas[i].dataMaidPersonalUniqueNameAndActiveSlotDic.Values.GetEnumerator())
- {
- while (enumerator.MoveNext())
- {
- if (!EmpireLifeModeData.Data.m_PersonalUniqueNameEnabledList.Contains(enumerator.Current))
- {
- EmpireLifeModeData.Data.m_PersonalUniqueNameEnabledList.Add(enumerator.Current);
- }
- }
- }
- }
- }
- return EmpireLifeModeData.Data.m_PersonalUniqueNameEnabledList;
- }
- }
- public readonly int ID;
- public readonly string strUniqueName;
- public readonly string rawDataScenarioType;
- public readonly string rawDataScenarioAnyNumberPlay;
- public readonly string rawDataScenarioFileName;
- public readonly string rawDataScenarioFileLabel;
- public readonly string rawDataNTRBlock;
- public readonly string rawDataFacilityUniqueName;
- public readonly string rawDataFacilityCostumeChange;
- public readonly string rawDataTimeZone;
- public readonly string rawDataFlagPlayer;
- public readonly string rawDataFlagMaid;
- public readonly string rawDataMaidPersonalTypeSlot0;
- public readonly string rawDataMaidPersonalTypeSlot1;
- public readonly string rawDataMaidPersonalTypeSlot2;
- public readonly string rawDataMaidMainCharaOnly;
- public readonly string rawDataMaidContract;
- public readonly string rawDataMaidRelation;
- public readonly string rawDataMaidStatus;
- public readonly string rawDataMaidSeikeikenNoNo;
- public readonly string rawDataMaidSeikeikenYesNo;
- public readonly string rawDataMaidSeikeikenNoYes;
- public readonly string rawDataMaidSeikeikenYesYes;
- public readonly EmpireLifeModeData.ScenarioType dataScenarioType;
- public readonly bool dataScenarioAnyNumberPlay;
- public readonly string dataScenarioFileName;
- public readonly string dataScenarioFileLabel;
- public readonly bool? dataNTRBlock;
- public readonly string[] dataFacilityUniqueNameArray;
- public readonly bool dataFacilityCostumeChange;
- public readonly ScheduleMgr.ScheduleTime? dataTimeZone;
- public readonly Dictionary<string, int> dataFlagPlayer;
- public readonly Dictionary<string, int> dataFlagMaid;
- public readonly Dictionary<int, string> dataMaidPersonalUniqueNameAndActiveSlotDic;
- public readonly bool? dataMaidMainCharaOnly;
- public readonly Contract? dataMaidContract;
- public readonly Relation? dataMaidRelation;
- public readonly ParametersPack dataMaidStatus;
- public readonly Seikeiken[] dataMaidSeikeiken;
- private static Dictionary<string, string> m_PersonalUniqueNameDic;
- private static Dictionary<string, Contract> m_ContractTypeDic;
- private static Dictionary<string, Relation> m_RelationTypeDic;
- private static List<string> m_PersonalUniqueNameEnabledList;
- }
- }
|