1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519 |
- using System;
- using System.Collections.Generic;
- using System.Runtime.CompilerServices;
- using MaidStatus;
- using MaidStatus.Old;
- using UnityEngine;
- using wf;
- namespace Schedule
- {
- public static class ScheduleCSVData
- {
- static ScheduleCSVData()
- {
- ScheduleCSVData.CVSRead();
- ScheduleCSVData.FacilityPowerUpTask();
- }
- public static Dictionary<int, ScheduleCSVData.Training> TrainingData
- {
- get
- {
- return ScheduleCSVData.TrainingDataDic;
- }
- }
- public static Dictionary<int, ScheduleCSVData.Yotogi> YotogiData
- {
- get
- {
- return ScheduleCSVData.YotogiDataDic;
- }
- }
- public static Dictionary<int, ScheduleCSVData.Work> WorkData
- {
- get
- {
- Dictionary<int, ScheduleCSVData.Work> dictionary = new Dictionary<int, ScheduleCSVData.Work>();
- if (ScheduleCSVData.FaclityPowerUp != null)
- {
- dictionary.Add(ScheduleCSVData.FaclityPowerUp.id, ScheduleCSVData.FaclityPowerUp);
- }
- foreach (KeyValuePair<int, ScheduleCSVData.Work> keyValuePair in FacilityDataTable.GetAllWorkData(true))
- {
- if (!dictionary.ContainsKey(keyValuePair.Key))
- {
- dictionary.Add(keyValuePair.Key, keyValuePair.Value);
- }
- }
- return dictionary;
- }
- }
- public static Dictionary<int, ScheduleCSVData.ScheduleBase> AllData
- {
- get
- {
- Dictionary<int, ScheduleCSVData.ScheduleBase> dictionary = new Dictionary<int, ScheduleCSVData.ScheduleBase>();
- foreach (KeyValuePair<int, ScheduleCSVData.Training> keyValuePair in ScheduleCSVData.TrainingDataDic)
- {
- if (!dictionary.ContainsKey(keyValuePair.Key))
- {
- dictionary.Add(keyValuePair.Key, keyValuePair.Value);
- }
- }
- foreach (KeyValuePair<int, ScheduleCSVData.Yotogi> keyValuePair2 in ScheduleCSVData.YotogiDataDic)
- {
- if (!dictionary.ContainsKey(keyValuePair2.Key))
- {
- dictionary.Add(keyValuePair2.Key, keyValuePair2.Value);
- }
- }
- if (ScheduleCSVData.FaclityPowerUp != null)
- {
- dictionary.Add(ScheduleCSVData.FaclityPowerUp.id, ScheduleCSVData.FaclityPowerUp);
- }
- foreach (KeyValuePair<int, ScheduleCSVData.Work> keyValuePair3 in FacilityDataTable.GetAllWorkData(true))
- {
- if (!dictionary.ContainsKey(keyValuePair3.Key))
- {
- dictionary.Add(keyValuePair3.Key, keyValuePair3.Value);
- }
- }
- return dictionary;
- }
- }
- private static void CVSRead()
- {
- ScheduleCSVData.TrainingDataDic = new Dictionary<int, ScheduleCSVData.Training>();
- ScheduleCSVData.YotogiDataDic = new Dictionary<int, ScheduleCSVData.Yotogi>();
- ScheduleCSVData.EntertainNumberData = new int[6];
- ScheduleCSVData.EntertainGuestData = new List<ScheduleCSVData.EntertainGuest>[6];
- for (int i = 0; i < ScheduleCSVData.EntertainGuestData.Length; i++)
- {
- ScheduleCSVData.EntertainGuestData[i] = new List<ScheduleCSVData.EntertainGuest>();
- }
- HashSet<int> enabled_list = new HashSet<int>();
- HashSet<int> hashSet = new HashSet<int>();
- HashSet<int> hashSet2 = new HashSet<int>();
- CsvCommonIdManager.ReadEnabledIdList(CsvCommonIdManager.FileSystemType.Normal, true, "schedule_work_noon_enabled", ref enabled_list);
- CsvCommonIdManager.ReadEnabledIdList(CsvCommonIdManager.FileSystemType.Normal, true, "schedule_work_night_enabled", ref hashSet);
- CsvCommonIdManager.ReadEnabledIdList(CsvCommonIdManager.FileSystemType.Normal, true, "schedule_work_facility_enabled", ref hashSet2);
- ScheduleCSVData.ReadEnabledIdListPlugIn("schedule_work_night_", hashSet, GameUty.FileSystem, GameUty.PathList);
- string file_name = "schedule_work_night_category_list.nei";
- if (ScheduleCSVData.<>f__mg$cache0 == null)
- {
- ScheduleCSVData.<>f__mg$cache0 = new Action<CsvParser>(ScheduleCSVData.CVSReader_TaskCategoryList);
- }
- ScheduleCSVData.CVSReader(file_name, ScheduleCSVData.<>f__mg$cache0, false);
- string file_name2 = "schedule_work_noon.nei";
- if (ScheduleCSVData.<>f__mg$cache1 == null)
- {
- ScheduleCSVData.<>f__mg$cache1 = new Action<CsvParser, HashSet<int>>(ScheduleCSVData.CVSReader_TrainingData_CMO3D);
- }
- ScheduleCSVData.CVSReader(file_name2, ScheduleCSVData.<>f__mg$cache1, enabled_list, false);
- string file_name3 = "schedule_work_night.nei";
- if (ScheduleCSVData.<>f__mg$cache2 == null)
- {
- ScheduleCSVData.<>f__mg$cache2 = new Action<CsvParser, HashSet<int>>(ScheduleCSVData.CVSReader_YotogiData_CMO3D);
- }
- ScheduleCSVData.CVSReader(file_name3, ScheduleCSVData.<>f__mg$cache2, hashSet, false);
- string file_name4 = "schedule_work_easyyotogi.nei";
- if (ScheduleCSVData.<>f__mg$cache3 == null)
- {
- ScheduleCSVData.<>f__mg$cache3 = new Action<CsvParser, HashSet<int>>(ScheduleCSVData.CVSReader_EasyYotogiData);
- }
- ScheduleCSVData.CVSReader(file_name4, ScheduleCSVData.<>f__mg$cache3, hashSet, false);
- List<MaidStatus.Personal.Data> allDatas = MaidStatus.Personal.GetAllDatas(false);
- ScheduleCSVData.NoonWorkInitData = new Dictionary<int, Dictionary<int, int>>();
- ScheduleCSVData.NightWorkInitData = new Dictionary<int, Dictionary<int, int>>();
- for (int j = 0; j < allDatas.Count; j++)
- {
- ScheduleCSVData.NoonWorkInitData.Add(allDatas[j].id, new Dictionary<int, int>());
- ScheduleCSVData.NightWorkInitData.Add(allDatas[j].id, new Dictionary<int, int>());
- }
- string file_name5 = "schedule_init_noon.nei";
- if (ScheduleCSVData.<>f__mg$cache4 == null)
- {
- ScheduleCSVData.<>f__mg$cache4 = new Action<CsvParser>(ScheduleCSVData.CVSReader_TaskInitData_Noon_COM3D);
- }
- ScheduleCSVData.CVSReader(file_name5, ScheduleCSVData.<>f__mg$cache4, false);
- string file_name6 = "schedule_init_night.nei";
- if (ScheduleCSVData.<>f__mg$cache5 == null)
- {
- ScheduleCSVData.<>f__mg$cache5 = new Action<CsvParser>(ScheduleCSVData.CVSReader_TaskInitData_Night_COM3D);
- }
- ScheduleCSVData.CVSReader(file_name6, ScheduleCSVData.<>f__mg$cache5, false);
- string file_name7 = "schedule_entertain_number.nei";
- if (ScheduleCSVData.<>f__mg$cache6 == null)
- {
- ScheduleCSVData.<>f__mg$cache6 = new Action<CsvParser>(ScheduleCSVData.CVSReader_EntertainNumberData);
- }
- ScheduleCSVData.CVSReader(file_name7, ScheduleCSVData.<>f__mg$cache6, false);
- string file_name8 = "schedule_entertain_guest.nei";
- if (ScheduleCSVData.<>f__mg$cache7 == null)
- {
- ScheduleCSVData.<>f__mg$cache7 = new Action<CsvParser>(ScheduleCSVData.CVSReader_EntertainGuestData);
- }
- ScheduleCSVData.CVSReader(file_name8, ScheduleCSVData.<>f__mg$cache7, false);
- string file_name9 = "schedule_define.nei";
- if (ScheduleCSVData.<>f__mg$cache8 == null)
- {
- ScheduleCSVData.<>f__mg$cache8 = new Action<CsvParser>(ScheduleCSVData.CVSReader_Define);
- }
- ScheduleCSVData.CVSReader(file_name9, ScheduleCSVData.<>f__mg$cache8, false);
- string file_name10 = "schedule_work_netorare.nei";
- if (ScheduleCSVData.<>f__mg$cache9 == null)
- {
- ScheduleCSVData.<>f__mg$cache9 = new Action<CsvParser>(ScheduleCSVData.CVSReader_NetorareIdList);
- }
- ScheduleCSVData.CVSReader(file_name10, ScheduleCSVData.<>f__mg$cache9, false);
- if (GameUty.IsEnabledCompatibilityMode)
- {
- ScheduleCSVData.NoonWorkInitDataLegacy = new Dictionary<int, Dictionary<int, int>>();
- ScheduleCSVData.NightWorkInitDataLegacy = new Dictionary<int, Dictionary<int, int>>();
- for (int k = 0; k < allDatas.Count; k++)
- {
- ScheduleCSVData.NoonWorkInitDataLegacy.Add(allDatas[k].id, new Dictionary<int, int>());
- ScheduleCSVData.NightWorkInitDataLegacy.Add(allDatas[k].id, new Dictionary<int, int>());
- }
- string file_name11 = "schedule_init_noon.nei";
- if (ScheduleCSVData.<>f__mg$cacheA == null)
- {
- ScheduleCSVData.<>f__mg$cacheA = new Action<CsvParser>(ScheduleCSVData.CVSReader_TaskInitData_Noon_CM3D2);
- }
- ScheduleCSVData.CVSReader(file_name11, ScheduleCSVData.<>f__mg$cacheA, true);
- string file_name12 = "schedule_init_night.nei";
- if (ScheduleCSVData.<>f__mg$cacheB == null)
- {
- ScheduleCSVData.<>f__mg$cacheB = new Action<CsvParser>(ScheduleCSVData.CVSReader_TaskInitData_Night_CM3D2);
- }
- ScheduleCSVData.CVSReader(file_name12, ScheduleCSVData.<>f__mg$cacheB, true);
- CsvCommonIdManager.ReadEnabledIdList(CsvCommonIdManager.FileSystemType.Old, true, "schedule_work_noon_enabled", ref enabled_list);
- CsvCommonIdManager.ReadEnabledIdList(CsvCommonIdManager.FileSystemType.Old, true, "schedule_work_night_enabled", ref hashSet);
- ScheduleCSVData.ReadEnabledIdListPlugIn("schedule_work_night_", hashSet, GameUty.FileSystemOld, GameUty.PathListOld);
- string file_name13 = "schedule_work_legacy_disable.nei";
- if (ScheduleCSVData.<>f__mg$cacheC == null)
- {
- ScheduleCSVData.<>f__mg$cacheC = new Action<CsvParser>(ScheduleCSVData.CVSReader_LeagacyDisableIdList);
- }
- ScheduleCSVData.CVSReader(file_name13, ScheduleCSVData.<>f__mg$cacheC, false);
- string file_name14 = "schedule_work_night_category_list.nei";
- if (ScheduleCSVData.<>f__mg$cacheD == null)
- {
- ScheduleCSVData.<>f__mg$cacheD = new Action<CsvParser>(ScheduleCSVData.CVSReader_TaskCategoryList);
- }
- ScheduleCSVData.CVSReader(file_name14, ScheduleCSVData.<>f__mg$cacheD, true);
- string file_name15 = "schedule_work_noon.nei";
- if (ScheduleCSVData.<>f__mg$cacheE == null)
- {
- ScheduleCSVData.<>f__mg$cacheE = new Action<CsvParser, HashSet<int>>(ScheduleCSVData.CVSReader_TrainingData_CM3D2);
- }
- ScheduleCSVData.CVSReader(file_name15, ScheduleCSVData.<>f__mg$cacheE, enabled_list, true);
- string file_name16 = "schedule_work_night.nei";
- if (ScheduleCSVData.<>f__mg$cacheF == null)
- {
- ScheduleCSVData.<>f__mg$cacheF = new Action<CsvParser, HashSet<int>>(ScheduleCSVData.CVSReader_YotogiData_CM3D2);
- }
- ScheduleCSVData.CVSReader(file_name16, ScheduleCSVData.<>f__mg$cacheF, hashSet, true);
- }
- }
- private static void ReadEnabledIdListPlugIn(string csvName, HashSet<int> idlLst, AFileSystemBase fsb, List<string> pathList)
- {
- foreach (string str in pathList)
- {
- string a = csvName + str;
- if (!(a == "schedule_work_night_legacy"))
- {
- CsvCommonIdManager.ReadEnabledIdList(fsb, null, csvName + str, ref idlLst);
- }
- }
- }
- private static bool CVSReader(string file_name, Action<CsvParser> Reader, bool useOldSystem = false)
- {
- AFileBase afileBase;
- if (useOldSystem)
- {
- afileBase = GameUty.FileSystemOld.FileOpen(file_name);
- }
- else
- {
- afileBase = GameUty.FileSystem.FileOpen(file_name);
- }
- using (afileBase)
- {
- if (!afileBase.IsValid())
- {
- return false;
- }
- using (CsvParser csvParser = new CsvParser())
- {
- if (!csvParser.Open(afileBase))
- {
- Debug.LogWarning("csv open failed.\n" + file_name);
- return false;
- }
- Reader(csvParser);
- }
- }
- return true;
- }
- private static bool CVSReader(string file_name, Action<CsvParser, HashSet<int>> Reader, HashSet<int> enabled_list, bool useOldSystem = false)
- {
- AFileBase afileBase;
- if (useOldSystem)
- {
- afileBase = GameUty.FileSystemOld.FileOpen(file_name);
- }
- else
- {
- afileBase = GameUty.FileSystem.FileOpen(file_name);
- }
- using (AFileBase afileBase2 = afileBase)
- {
- if (!afileBase2.IsValid())
- {
- return false;
- }
- using (CsvParser csvParser = new CsvParser())
- {
- if (!csvParser.Open(afileBase2))
- {
- Debug.LogWarning("csv open failed.\n" + file_name);
- return false;
- }
- Reader(csvParser, enabled_list);
- }
- }
- return true;
- }
- private static void CVSReader_WorkData(CsvParser csv, HashSet<int> enabled_list)
- {
- int max_cell_y = csv.max_cell_y;
- for (int i = 1; i < max_cell_y; i++)
- {
- int num = 0;
- ScheduleCSVData.Work work = new ScheduleCSVData.Work();
- work.type = ScheduleTaskCtrl.TaskType.Work;
- work.id = csv.GetCellAsInteger(num++, i);
- if (enabled_list.Contains(work.id))
- {
- work.name = csv.GetCellAsString(num++, i);
- num++;
- work.icon = csv.GetCellAsString(num++, i);
- string cellAsString = csv.GetCellAsString(num++, i);
- if (!string.IsNullOrEmpty(cellAsString) && Enum.IsDefined(typeof(ScheduleCSVData.TrainingType), cellAsString))
- {
- work.trainingType = (ScheduleCSVData.TrainingType)Enum.Parse(typeof(ScheduleCSVData.TrainingType), cellAsString, false);
- }
- work.study_rate = csv.GetCellAsInteger(num++, i);
- work.reception = csv.GetCellAsInteger(num++, i);
- work.care = csv.GetCellAsInteger(num++, i);
- work.lovely = csv.GetCellAsInteger(num++, i);
- work.elegance = csv.GetCellAsInteger(num++, i);
- work.charm = csv.GetCellAsInteger(num++, i);
- work.teach_rate = csv.GetCellAsInteger(num++, i);
- work.cooking = csv.GetCellAsInteger(num++, i);
- work.vocal = csv.GetCellAsInteger(num++, i);
- work.dance = csv.GetCellAsInteger(num++, i);
- work.appealPoint = csv.GetCellAsInteger(num++, i);
- work.exp = csv.GetCellAsInteger(num++, i);
- work.income = csv.GetCellAsInteger(num++, i);
- work.cmdExp = csv.GetCellAsInteger(num++, i);
- string cellAsString2 = csv.GetCellAsString(num++, i);
- work.condContract = new List<Contract>();
- string[] array = cellAsString2.Split(new char[]
- {
- '|'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int j = 0; j < array.Length; j++)
- {
- if (Enum.IsDefined(typeof(Contract), array[j]))
- {
- work.condContract.Add((Contract)Enum.Parse(typeof(Contract), array[j], false));
- }
- }
- string cellAsString3 = csv.GetCellAsString(num++, i);
- work.condMaidClass = new List<int>();
- string[] array2 = cellAsString3.Split(new char[]
- {
- '&'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int k = 0; k < array2.Length; k++)
- {
- int id = JobClass.GetData(array2[k]).id;
- work.condMaidClass.Add(id);
- }
- work.needEventItemIdList = new List<int>();
- if (csv.GetCellAsString(num, 0) == "必要状態")
- {
- work.needMaidStatus = csv.GetCellAsString(num++, i);
- string cellAsString4 = csv.GetCellAsString(num++, i);
- if (!string.IsNullOrEmpty(cellAsString4))
- {
- string[] array3 = cellAsString4.Split(new char[]
- {
- '|'
- });
- foreach (string s in array3)
- {
- work.needEventItemIdList.Add(int.Parse(s));
- }
- }
- }
- if (num < csv.max_cell_x)
- {
- string cellAsString5 = csv.GetCellAsString(num, i);
- if (cellAsString5 != null)
- {
- if (!(cellAsString5 == "表示"))
- {
- if (cellAsString5 == "非表示")
- {
- work.disableIfRentalMaid = true;
- }
- }
- else
- {
- work.visibleIfRentalMaid = true;
- }
- }
- }
- num++;
- work.condPackage = new List<string>();
- if (work.id > 0)
- {
- work.categoryID = 52;
- ScheduleCSVData.WorkDataDic[work.id] = work;
- }
- }
- }
- }
- private static void CVSReader_LeagacyDisableIdList(CsvParser csv)
- {
- ScheduleCSVData.WorkLegacyDisableId = new List<int>();
- int max_cell_y = csv.max_cell_y;
- for (int i = 1; i < max_cell_y; i++)
- {
- ScheduleCSVData.WorkLegacyDisableId.Add(csv.GetCellAsInteger(0, i));
- }
- }
- private static void CVSReader_NetorareIdList(CsvParser csv)
- {
- ScheduleCSVData.NetorareFlag = new List<int>();
- int max_cell_y = csv.max_cell_y;
- for (int i = 1; i < max_cell_y; i++)
- {
- ScheduleCSVData.NetorareFlag.Add(csv.GetCellAsInteger(0, i));
- }
- }
- private static void FacilityPowerUpTask()
- {
- ScheduleCSVData.FaclityPowerUp = new ScheduleCSVData.Work();
- ScheduleCSVData.FaclityPowerUp.name = "施設強化";
- ScheduleCSVData.FaclityPowerUp.type = ScheduleTaskCtrl.TaskType.Work;
- ScheduleCSVData.FaclityPowerUp.workTyp = ScheduleCSVData.WorkType.PowerUp;
- ScheduleCSVData.FaclityPowerUp.icon = "schedule_icon_shisetsu";
- ScheduleCSVData.FaclityPowerUp.id = ScheduleCSVData.faclilityPowerUpWorkId;
- ScheduleCSVData.FaclityPowerUp.categoryID = 52;
- ScheduleCSVData.FaclityPowerUp.isCommu = false;
- }
- private static void CVSReader_TrainingData_CM3D2(CsvParser csv, HashSet<int> enabled_list)
- {
- ScheduleCSVData.CVSReader_TrainingData(csv, enabled_list, ScheduleCSVData.ScheduleBase.Mode.CM3D2);
- }
- private static void CVSReader_TrainingData_CMO3D(CsvParser csv, HashSet<int> enabled_list)
- {
- ScheduleCSVData.CVSReader_TrainingData(csv, enabled_list, ScheduleCSVData.ScheduleBase.Mode.COM3D);
- }
- private static void CVSReader_TrainingData(CsvParser csv, HashSet<int> enabled_list, ScheduleCSVData.ScheduleBase.Mode mode)
- {
- int max_cell_y = csv.max_cell_y;
- for (int i = 1; i < max_cell_y; i++)
- {
- int num = 0;
- ScheduleCSVData.Training training = new ScheduleCSVData.Training();
- training.mode = mode;
- training.type = ScheduleTaskCtrl.TaskType.Training;
- training.id = csv.GetCellAsInteger(num++, i);
- if (enabled_list.Contains(training.id))
- {
- training.name = csv.GetCellAsString(num++, i);
- if (training.name == string.Empty)
- {
- return;
- }
- num++;
- if (mode == ScheduleCSVData.ScheduleBase.Mode.COM3D)
- {
- training.facilityId = csv.GetCellAsInteger(num++, i);
- }
- else if (mode == ScheduleCSVData.ScheduleBase.Mode.CM3D2)
- {
- training.facilityId = ScheduleCSVData.trainingFaclilityID;
- }
- training.icon = csv.GetCellAsString(num++, i);
- string cellAsString = csv.GetCellAsString(num++, i);
- if (!string.IsNullOrEmpty(cellAsString) && Enum.IsDefined(typeof(ScheduleCSVData.TrainingType), cellAsString))
- {
- training.trainingType = (ScheduleCSVData.TrainingType)Enum.Parse(typeof(ScheduleCSVData.TrainingType), cellAsString, false);
- }
- if (training.trainingType == ScheduleCSVData.TrainingType.Basic || training.trainingType == ScheduleCSVData.TrainingType.Trainee || training.trainingType == ScheduleCSVData.TrainingType.Trainer)
- {
- training.isCommu = true;
- }
- else
- {
- training.isCommu = false;
- }
- training.study_rate = csv.GetCellAsInteger(num++, i);
- training.reception = csv.GetCellAsInteger(num++, i);
- training.care = csv.GetCellAsInteger(num++, i);
- training.lovely = csv.GetCellAsInteger(num++, i);
- training.elegance = csv.GetCellAsInteger(num++, i);
- training.charm = csv.GetCellAsInteger(num++, i);
- training.teach_rate = csv.GetCellAsInteger(num++, i);
- if (mode == ScheduleCSVData.ScheduleBase.Mode.COM3D)
- {
- training.cooking = csv.GetCellAsInteger(num++, i);
- training.vocal = csv.GetCellAsInteger(num++, i);
- training.dance = csv.GetCellAsInteger(num++, i);
- training.appealPoint = csv.GetCellAsInteger(num++, i);
- }
- training.exp = csv.GetCellAsInteger(num++, i);
- if (mode == ScheduleCSVData.ScheduleBase.Mode.CM3D2)
- {
- num++;
- num++;
- }
- training.income = csv.GetCellAsInteger(num++, i);
- training.cmdExp = csv.GetCellAsInteger(num++, i);
- string cellAsString2 = csv.GetCellAsString(num++, i);
- training.condContract = new List<Contract>();
- string[] array = cellAsString2.Split(new char[]
- {
- '|'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int j = 0; j < array.Length; j++)
- {
- if (Enum.IsDefined(typeof(Contract), array[j]))
- {
- training.condContract.Add((Contract)Enum.Parse(typeof(Contract), array[j], false));
- }
- }
- string cellAsString3 = csv.GetCellAsString(num++, i);
- training.condMaidClass = new List<int>();
- string[] array2 = cellAsString3.Split(new char[]
- {
- '&'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int k = 0; k < array2.Length; k++)
- {
- int id = JobClass.GetData(array2[k]).id;
- training.condMaidClass.Add(id);
- }
- training.needEventItemIdList = new List<int>();
- if (csv.GetCellAsString(num, 0) == "必要状態")
- {
- training.needMaidStatus = csv.GetCellAsString(num++, i);
- string cellAsString4 = csv.GetCellAsString(num++, i);
- if (!string.IsNullOrEmpty(cellAsString4))
- {
- string[] array3 = cellAsString4.Split(new char[]
- {
- '|'
- });
- foreach (string s in array3)
- {
- training.needEventItemIdList.Add(int.Parse(s));
- }
- }
- }
- if (num < csv.max_cell_x)
- {
- string cellAsString5 = csv.GetCellAsString(num, i);
- if (cellAsString5 != null)
- {
- if (!(cellAsString5 == "表示"))
- {
- if (cellAsString5 == "非表示")
- {
- training.disableIfRentalMaid = true;
- }
- }
- else
- {
- training.visibleIfRentalMaid = true;
- }
- }
- }
- num++;
- training.condPackage = new List<string>();
- if (training.trainingType == ScheduleCSVData.TrainingType.Dispatch)
- {
- if (mode == ScheduleCSVData.ScheduleBase.Mode.COM3D)
- {
- training.mode = ScheduleCSVData.ScheduleBase.Mode.CM3D2;
- }
- else if (mode == ScheduleCSVData.ScheduleBase.Mode.CM3D2)
- {
- goto IL_489;
- }
- }
- if (training.id > 0)
- {
- training.categoryID = 51;
- ScheduleCSVData.TrainingDataDic[training.id] = training;
- }
- }
- IL_489:;
- }
- }
- private static void CVSReader_YotogiData_CM3D2(CsvParser csv, HashSet<int> enabled_list)
- {
- ScheduleCSVData.CVSReader_YotogiData(csv, enabled_list, ScheduleCSVData.ScheduleBase.Mode.CM3D2);
- }
- private static void CVSReader_YotogiData_CMO3D(CsvParser csv, HashSet<int> enabled_list)
- {
- ScheduleCSVData.CVSReader_YotogiData(csv, enabled_list, ScheduleCSVData.ScheduleBase.Mode.COM3D);
- }
- private static void CVSReader_YotogiData(CsvParser csv, HashSet<int> enabled_list, ScheduleCSVData.ScheduleBase.Mode mode)
- {
- int max_cell_y = csv.max_cell_y;
- for (int i = 1; i < max_cell_y; i++)
- {
- int num = 0;
- ScheduleCSVData.Yotogi yotogi = new ScheduleCSVData.Yotogi();
- yotogi.mode = mode;
- yotogi.type = ScheduleTaskCtrl.TaskType.Yotogi;
- yotogi.id = csv.GetCellAsInteger(num++, i);
- if (enabled_list.Contains(yotogi.id))
- {
- yotogi.name = csv.GetCellAsString(num++, i);
- if (yotogi.name == string.Empty)
- {
- return;
- }
- num++;
- yotogi.icon = csv.GetCellAsString(num++, i);
- yotogi.isCommu = false;
- yotogi.categoryID = csv.GetCellAsInteger(num++, i);
- if (mode == ScheduleCSVData.ScheduleBase.Mode.COM3D)
- {
- yotogi.netorareFlag = csv.GetCellBool(num++, i);
- }
- string cellAsString = csv.GetCellAsString(num++, i);
- if (!string.IsNullOrEmpty(cellAsString) && Enum.IsDefined(typeof(ScheduleCSVData.YotogiType), cellAsString))
- {
- yotogi.yotogiType = (ScheduleCSVData.YotogiType)Enum.Parse(typeof(ScheduleCSVData.YotogiType), cellAsString, false);
- }
- yotogi.information = csv.GetCellAsString(num++, i);
- yotogi.income = csv.GetCellAsInteger(num++, i);
- yotogi.evaluation = csv.GetCellAsInteger(num++, i);
- yotogi.add_play_number = csv.GetCellAsInteger(num++, i);
- yotogi.add_other_play_number = csv.GetCellAsInteger(num++, i);
- yotogi.condInfo = new List<string>();
- for (int j = 0; j < 9; j++)
- {
- string cellAsString2 = csv.GetCellAsString(num++, i);
- if (!string.IsNullOrEmpty(cellAsString2))
- {
- yotogi.condInfo.Add(cellAsString2);
- }
- }
- yotogi.condSalonGrade = csv.GetCellAsInteger(num++, i);
- if (mode == ScheduleCSVData.ScheduleBase.Mode.CM3D2)
- {
- yotogi.condSalonGrade = 1;
- }
- yotogi.condSkill = new Dictionary<int, int>();
- string cellAsString3 = csv.GetCellAsString(num++, i);
- string[] array = cellAsString3.Split(new char[]
- {
- '&'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int k = 0; k < array.Length; k++)
- {
- if (array[k].Contains(","))
- {
- string[] array2 = array[k].Split(new char[]
- {
- ','
- }, StringSplitOptions.None);
- yotogi.condSkill[int.Parse(array2[0])] = int.Parse(array2[1]);
- }
- }
- string cellAsString4 = csv.GetCellAsString(num++, i);
- yotogi.condContract = new List<Contract>();
- string[] array3 = cellAsString4.Split(new char[]
- {
- '|'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int l = 0; l < array3.Length; l++)
- {
- if (Enum.IsDefined(typeof(Contract), array3[l]))
- {
- yotogi.condContract.Add((Contract)Enum.Parse(typeof(Contract), array3[l], false));
- }
- }
- string cellAsString5 = csv.GetCellAsString(num++, i);
- yotogi.condMaidClass = new List<int>();
- string[] array4 = cellAsString5.Split(new char[]
- {
- '&'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int m = 0; m < array4.Length; m++)
- {
- int id = JobClass.GetData(array4[m]).id;
- yotogi.condMaidClass.Add(id);
- }
- string cellAsString6 = csv.GetCellAsString(num++, i);
- yotogi.condYotogiClass = new List<int>();
- string[] array5 = cellAsString6.Split(new char[]
- {
- '&'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int n = 0; n < array5.Length; n++)
- {
- int id2 = YotogiClass.GetData(array5[n]).id;
- yotogi.condYotogiClass.Add(id2);
- }
- string cellAsString7 = csv.GetCellAsString(num++, i);
- yotogi.condPropensity = new List<int>();
- string[] array6 = cellAsString7.Split(new char[]
- {
- '|'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int num2 = 0; num2 < array6.Length; num2++)
- {
- if (Propensity.Contains(array6[num2]))
- {
- int id3 = Propensity.GetData(array6[num2]).id;
- yotogi.condPropensity.Add(id3);
- }
- }
- string cellAsString8 = csv.GetCellAsString(num++, i);
- yotogi.condSeikeiken = new List<Seikeiken>();
- string[] array7 = cellAsString8.Split(new char[]
- {
- '|'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int num3 = 0; num3 < array7.Length; num3++)
- {
- if (Enum.IsDefined(typeof(Seikeiken), array7[num3]))
- {
- yotogi.condSeikeiken.Add((Seikeiken)Enum.Parse(typeof(Seikeiken), array7[num3], false));
- }
- }
- string cellAsString9 = csv.GetCellAsString(num++, i);
- yotogi.condFlag1 = new List<string>();
- string[] array8 = cellAsString9.Split(new char[]
- {
- '&'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int num4 = 0; num4 < array8.Length; num4++)
- {
- yotogi.condFlag1.Add(array8[num4]);
- }
- string cellAsString10 = csv.GetCellAsString(num++, i);
- yotogi.condFlag0 = new List<string>();
- string[] array9 = cellAsString10.Split(new char[]
- {
- '&'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int num5 = 0; num5 < array9.Length; num5++)
- {
- yotogi.condFlag0.Add(array9[num5]);
- }
- string cellAsString11 = csv.GetCellAsString(num++, i);
- string[] array10 = cellAsString11.Split(new char[]
- {
- '|'
- }, StringSplitOptions.RemoveEmptyEntries);
- yotogi.condRelation = new List<MaidStatus.Relation>();
- yotogi.condAdditionalRelation = new List<AdditionalRelation>();
- yotogi.condSpecialRelation = new List<SpecialRelation>();
- yotogi.condRelationOld = new List<MaidStatus.Old.Relation>();
- if (mode == ScheduleCSVData.ScheduleBase.Mode.COM3D)
- {
- for (int num6 = 0; num6 < array10.Length; num6++)
- {
- if (Enum.IsDefined(typeof(MaidStatus.Relation), array10[num6]))
- {
- yotogi.condRelation.Add((MaidStatus.Relation)Enum.Parse(typeof(MaidStatus.Relation), array10[num6], false));
- }
- else if (Enum.IsDefined(typeof(AdditionalRelation), array10[num6]))
- {
- yotogi.condAdditionalRelation.Add((AdditionalRelation)Enum.Parse(typeof(AdditionalRelation), array10[num6], false));
- }
- else if (Enum.IsDefined(typeof(SpecialRelation), array10[num6]))
- {
- yotogi.condSpecialRelation.Add((SpecialRelation)Enum.Parse(typeof(SpecialRelation), array10[num6], false));
- }
- }
- }
- else if (mode == ScheduleCSVData.ScheduleBase.Mode.CM3D2)
- {
- for (int num7 = 0; num7 < array10.Length; num7++)
- {
- if (Enum.IsDefined(typeof(MaidStatus.Old.Relation), array10[num7]))
- {
- yotogi.condRelationOld.Add((MaidStatus.Old.Relation)Enum.Parse(typeof(MaidStatus.Old.Relation), array10[num7], false));
- }
- }
- }
- if (mode == ScheduleCSVData.ScheduleBase.Mode.CM3D2 && num < csv.max_cell_x)
- {
- string cellAsString12 = csv.GetCellAsString(num, i);
- if (cellAsString12 != null)
- {
- if (!(cellAsString12 == "表示"))
- {
- if (cellAsString12 == "非表示")
- {
- yotogi.disableIfRentalMaid = true;
- }
- }
- else
- {
- yotogi.visibleIfRentalMaid = true;
- }
- }
- }
- num++;
- yotogi.subMaidUnipueName = csv.GetCellAsString(num, i);
- num++;
- if (mode != ScheduleCSVData.ScheduleBase.Mode.CM3D2 || !(yotogi.subMaidUnipueName != string.Empty))
- {
- yotogi.condPackage = new List<string>();
- yotogi.condManVisibleFlag1 = new List<string>();
- if (mode == ScheduleCSVData.ScheduleBase.Mode.COM3D)
- {
- if (num < csv.max_cell_x)
- {
- string cellAsString13 = csv.GetCellAsString(num, i);
- string[] array11 = cellAsString13.Split(new char[]
- {
- '&'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int num8 = 0; num8 < array11.Length; num8++)
- {
- yotogi.condManVisibleFlag1.Add(array11[num8]);
- }
- }
- num++;
- }
- yotogi.condManFlag1 = new List<string>();
- if (num < csv.max_cell_x)
- {
- string cellAsString14 = csv.GetCellAsString(num, i);
- string[] array12 = cellAsString14.Split(new char[]
- {
- '&'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int num9 = 0; num9 < array12.Length; num9++)
- {
- yotogi.condManFlag1.Add(array12[num9]);
- }
- }
- num++;
- yotogi.condManFlag0 = new List<string>();
- if (num < csv.max_cell_x)
- {
- string cellAsString15 = csv.GetCellAsString(num, i);
- string[] array13 = cellAsString15.Split(new char[]
- {
- '&'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int num10 = 0; num10 < array13.Length; num10++)
- {
- yotogi.condManFlag0.Add(array13[num10]);
- }
- }
- num++;
- yotogi.condPersonal = new List<int>();
- if (num < csv.max_cell_x)
- {
- string cellAsString16 = csv.GetCellAsString(num, i);
- string[] array14 = cellAsString16.Split(new char[]
- {
- '|'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int num11 = 0; num11 < array14.Length; num11++)
- {
- int id4 = MaidStatus.Personal.GetData(array14[num11]).id;
- yotogi.condPersonal.Add(id4);
- }
- }
- num++;
- yotogi.condMainChara = csv.GetCellBool(num, i);
- num++;
- yotogi.condFacilityID = new List<List<int>>();
- if (num < csv.max_cell_x)
- {
- string cellAsString17 = csv.GetCellAsString(num, i);
- string[] array15 = cellAsString17.Split(new char[]
- {
- '&'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int num12 = 0; num12 < array15.Length; num12++)
- {
- string[] array16 = array15[num12].Split(new char[]
- {
- '|'
- }, StringSplitOptions.RemoveEmptyEntries);
- List<int> list = new List<int>();
- for (int num13 = 0; num13 < array16.Length; num13++)
- {
- int num14 = 0;
- if (int.TryParse(array16[num13], out num14) && num14 != 0)
- {
- list.Add(num14);
- }
- }
- yotogi.condFacilityID.Add(list);
- }
- }
- num++;
- yotogi.pairCondPersonal = new List<int>();
- if (csv.IsCellToExistData(num, 0) && csv.IsCellToExistData(num, i))
- {
- string cellAsString18 = csv.GetCellAsString(num, i);
- string[] array17 = cellAsString18.Split(new char[]
- {
- '|'
- }, StringSplitOptions.RemoveEmptyEntries);
- for (int num15 = 0; num15 < array17.Length; num15++)
- {
- int id5 = MaidStatus.Personal.GetData(array17[num15]).id;
- yotogi.pairCondPersonal.Add(id5);
- }
- }
- num++;
- yotogi.isCheckGP002Personal = false;
- if (csv.IsCellToExistData(num, 0) && csv.IsCellToExistData(num, i))
- {
- string cellAsString19 = csv.GetCellAsString(num, i);
- yotogi.isCheckGP002Personal = (cellAsString19 == "〇" || cellAsString19 == "○");
- }
- num++;
- if (mode == ScheduleCSVData.ScheduleBase.Mode.COM3D)
- {
- if (yotogi.yotogiType == ScheduleCSVData.YotogiType.HaveSex)
- {
- yotogi.mode = ScheduleCSVData.ScheduleBase.Mode.Common;
- }
- if (yotogi.yotogiType == ScheduleCSVData.YotogiType.Entertain || yotogi.yotogiType == ScheduleCSVData.YotogiType.Rest)
- {
- yotogi.mode = ScheduleCSVData.ScheduleBase.Mode.CM3D2;
- }
- }
- else if (mode == ScheduleCSVData.ScheduleBase.Mode.CM3D2 && yotogi.yotogiType != ScheduleCSVData.YotogiType.Vip && yotogi.yotogiType != ScheduleCSVData.YotogiType.VipCall)
- {
- goto IL_B54;
- }
- if (yotogi.id > 0)
- {
- ScheduleCSVData.YotogiDataDic[yotogi.id] = yotogi;
- }
- }
- }
- IL_B54:;
- }
- }
- private static void CVSReader_EasyYotogiData(CsvParser csv, HashSet<int> enabled_list)
- {
- int max_cell_y = csv.max_cell_y;
- for (int i = 1; i < max_cell_y; i++)
- {
- int num = 0;
- ScheduleCSVData.Yotogi yotogi = new ScheduleCSVData.Yotogi();
- ScheduleCSVData.Yotogi.EasyYotogi easyYotogi = new ScheduleCSVData.Yotogi.EasyYotogi();
- yotogi.easyYotogi = easyYotogi;
- yotogi.isCommu = false;
- yotogi.mode = ScheduleCSVData.ScheduleBase.Mode.COM3D;
- yotogi.type = ScheduleTaskCtrl.TaskType.Yotogi;
- yotogi.id = csv.GetCellAsInteger(num++, i);
- if (enabled_list.Contains(yotogi.id))
- {
- yotogi.name = csv.GetCellAsString(num++, i);
- if (yotogi.name == string.Empty)
- {
- return;
- }
- num++;
- yotogi.icon = csv.GetCellAsString(num++, i);
- string cellAsString = csv.GetCellAsString(num++, i);
- if (!string.IsNullOrEmpty(cellAsString) && Enum.IsDefined(typeof(ScheduleCSVData.YotogiType), cellAsString))
- {
- yotogi.yotogiType = (ScheduleCSVData.YotogiType)Enum.Parse(typeof(ScheduleCSVData.YotogiType), cellAsString, false);
- }
- yotogi.information = csv.GetCellAsString(num++, i);
- yotogi.categoryID = csv.GetCellAsInteger(num++, i);
- yotogi.easyYotogi.trophyId = csv.GetCellAsInteger(num++, i);
- yotogi.easyYotogi.care = csv.GetCellAsInteger(num++, i);
- yotogi.easyYotogi.reception = csv.GetCellAsInteger(num++, i);
- yotogi.easyYotogi.teach_rate = csv.GetCellAsInteger(num++, i);
- yotogi.easyYotogi.inyoku = csv.GetCellAsInteger(num++, i);
- yotogi.easyYotogi.hentai = csv.GetCellAsInteger(num++, i);
- yotogi.easyYotogi.housi = csv.GetCellAsInteger(num++, i);
- yotogi.easyYotogi.msei = csv.GetCellAsInteger(num++, i);
- yotogi.easyYotogi.study_rate = csv.GetCellAsInteger(num++, i);
- yotogi.condInfo = new List<string>();
- yotogi.condContract = new List<Contract>();
- yotogi.condSkill = new Dictionary<int, int>();
- yotogi.condPersonal = new List<int>();
- yotogi.pairCondPersonal = new List<int>();
- yotogi.condSeikeiken = new List<Seikeiken>();
- yotogi.condYotogiClass = new List<int>();
- yotogi.condRelation = new List<MaidStatus.Relation>();
- yotogi.condAdditionalRelation = new List<AdditionalRelation>();
- yotogi.condSpecialRelation = new List<SpecialRelation>();
- yotogi.condPropensity = new List<int>();
- yotogi.condFlag0 = new List<string>();
- yotogi.condFlag1 = new List<string>();
- yotogi.condManVisibleFlag1 = new List<string>();
- yotogi.condManFlag1 = new List<string>();
- yotogi.condManFlag0 = new List<string>();
- yotogi.condMaidClass = new List<int>();
- yotogi.condFacilityID = new List<List<int>>();
- yotogi.condRelationOld = new List<MaidStatus.Old.Relation>();
- yotogi.condPackage = new List<string>();
- if (yotogi.id > 0)
- {
- ScheduleCSVData.YotogiDataDic[yotogi.id] = yotogi;
- }
- }
- }
- }
- private static void CVSReader_TaskCategoryList(CsvParser csv)
- {
- if (ScheduleCSVData.TaskCategoryNameMap == null)
- {
- ScheduleCSVData.TaskCategoryNameMap = new SortedDictionary<int, string>();
- }
- int max_cell_y = csv.max_cell_y;
- for (int i = 1; i < max_cell_y; i++)
- {
- int num = 0;
- int cellAsInteger = csv.GetCellAsInteger(num++, i);
- string cellAsString = csv.GetCellAsString(num++, i);
- if (!(cellAsString == string.Empty))
- {
- if (!ScheduleCSVData.TaskCategoryNameMap.ContainsKey(cellAsInteger))
- {
- ScheduleCSVData.TaskCategoryNameMap.Add(cellAsInteger, cellAsString);
- }
- }
- }
- }
- private static void CVSReader_TaskInitData_Noon_CM3D2(CsvParser csv)
- {
- ScheduleCSVData.CVSReader_TaskInitData(csv, ScheduleCSVData.NoonWorkInitDataLegacy);
- }
- private static void CVSReader_TaskInitData_Noon_COM3D(CsvParser csv)
- {
- ScheduleCSVData.CVSReader_TaskInitData(csv, ScheduleCSVData.NoonWorkInitData);
- }
- private static void CVSReader_TaskInitData_Night_CM3D2(CsvParser csv)
- {
- ScheduleCSVData.CVSReader_TaskInitData(csv, ScheduleCSVData.NightWorkInitDataLegacy);
- }
- private static void CVSReader_TaskInitData_Night_COM3D(CsvParser csv)
- {
- ScheduleCSVData.CVSReader_TaskInitData(csv, ScheduleCSVData.NightWorkInitData);
- }
- private static void CVSReader_TaskInitData(CsvParser csv, Dictionary<int, Dictionary<int, int>> dataDic)
- {
- int max_cell_y = csv.max_cell_y;
- for (int i = 1; i < max_cell_y; i++)
- {
- int num = csv.GetCellAsInteger(0, i);
- if (Product.isPublic && num == 10000)
- {
- num = 10003;
- }
- int num2 = 2;
- while (csv.IsCellToExistData(num2, 0))
- {
- string cellAsString = csv.GetCellAsString(num2, 0);
- MaidStatus.Personal.Data data = MaidStatus.Personal.GetData(cellAsString);
- int cellAsInteger = csv.GetCellAsInteger(num2, i);
- if (cellAsInteger > 0)
- {
- dataDic[data.id][num] = cellAsInteger;
- }
- num2++;
- }
- }
- }
- private static void CVSReader_EntertainNumberData(CsvParser csv)
- {
- int max_cell_y = csv.max_cell_y;
- for (int i = 1; i < max_cell_y; i++)
- {
- int cellAsInteger = csv.GetCellAsInteger(0, i);
- ScheduleCSVData.EntertainNumberData[cellAsInteger] = csv.GetCellAsInteger(1, i);
- }
- }
- private static void CVSReader_EntertainGuestData(CsvParser csv)
- {
- int max_cell_y = csv.max_cell_y;
- for (int i = 1; i < max_cell_y; i++)
- {
- int num = 0;
- ScheduleCSVData.EntertainGuest entertainGuest = new ScheduleCSVData.EntertainGuest();
- int num2 = entertainGuest.condSalonGrade = csv.GetCellAsInteger(num++, i);
- entertainGuest.baseIcome = csv.GetCellAsInteger(num++, i);
- entertainGuest.baseEvaluation = csv.GetCellAsInteger(num++, i);
- entertainGuest.sexual = (csv.GetCellAsString(num++, i) == "○");
- ScheduleCSVData.EntertainGuestData[num2].Add(entertainGuest);
- }
- }
- private static void CVSReader_Define(CsvParser csv)
- {
- int max_cell_y = csv.max_cell_y;
- for (int i = 0; i < max_cell_y; i++)
- {
- string cellAsString = csv.GetCellAsString(0, i);
- switch (cellAsString)
- {
- case "dayAddSalonClean":
- ScheduleCSVData.dayAddSalonClean = csv.GetCellAsInteger(1, i);
- break;
- case "dayAddSalonBeautiful":
- ScheduleCSVData.dayAddSalonBeautiful = csv.GetCellAsInteger(1, i);
- break;
- case "haveSexAddSalonClean":
- ScheduleCSVData.haveSexAddSalonClean = csv.GetCellAsInteger(1, i);
- break;
- case "haveSexAddSalonBeautiful":
- ScheduleCSVData.haveSexAddSalonBeautiful = csv.GetCellAsInteger(1, i);
- break;
- case "entertainAddSalonClean":
- ScheduleCSVData.entertainAddSalonClean = csv.GetCellAsInteger(1, i);
- break;
- case "entertainAddSalonBeautiful":
- ScheduleCSVData.entertainAddSalonBeautiful = csv.GetCellAsInteger(1, i);
- break;
- case "entertainParameterRevisionThreshold":
- ScheduleCSVData.entertainParameterRevisionThreshold = csv.GetCellAsInteger(1, i);
- break;
- case "entertainPropensityRevisionMin":
- ScheduleCSVData.entertainPropensityRevisionMin = csv.GetCellAsInteger(1, i);
- break;
- case "entertainPropensityRevisionMax":
- ScheduleCSVData.entertainPropensityRevisionMax = csv.GetCellAsInteger(1, i);
- break;
- case "workSuccessLvPerfectIncidence":
- ScheduleCSVData.workSuccessLvPerfectIncidence = csv.GetCellAsInteger(1, i);
- break;
- case "workSuccessLvMissIncidence":
- ScheduleCSVData.workSuccessLvMissIncidence = csv.GetCellAsInteger(1, i);
- break;
- case "dispatchIncomCoefficient":
- ScheduleCSVData.dispatchIncomCoefficient = csv.GetCellAsInteger(1, i);
- break;
- case "vipFullOpenDay":
- ScheduleCSVData.vipFullOpenDay = csv.GetCellAsInteger(1, i);
- break;
- case "noonWorkLv2Exp":
- ScheduleCSVData.noonWorkLv2Exp = csv.GetCellAsInteger(1, i);
- break;
- case "noonWorkLv3Exp":
- ScheduleCSVData.noonWorkLv3Exp = csv.GetCellAsInteger(1, i);
- break;
- case "subMaidInitTaskId":
- ScheduleCSVData.subMaidInitTaskId = csv.GetCellAsInteger(1, i);
- break;
- case "faclilityPowerUpWorkId":
- ScheduleCSVData.faclilityPowerUpWorkId = csv.GetCellAsInteger(1, i);
- break;
- }
- }
- }
- [Obsolete("FacilityDataTable.csへ移動しました。", false)]
- private static Dictionary<int, ScheduleCSVData.Work> WorkDataDic;
- private static Dictionary<int, ScheduleCSVData.Training> TrainingDataDic;
- private static Dictionary<int, ScheduleCSVData.Yotogi> YotogiDataDic;
- private static ScheduleCSVData.Work FaclityPowerUp;
- public static SortedDictionary<int, string> TaskCategoryNameMap;
- public static List<int> WorkLegacyDisableId;
- public static List<int> NetorareFlag;
- public static Dictionary<int, Dictionary<int, int>> NoonWorkInitData;
- public static Dictionary<int, Dictionary<int, int>> NoonWorkInitDataLegacy;
- public static Dictionary<int, Dictionary<int, int>> NightWorkInitData;
- public static Dictionary<int, Dictionary<int, int>> NightWorkInitDataLegacy;
- public static int[] EntertainNumberData;
- public static List<ScheduleCSVData.EntertainGuest>[] EntertainGuestData;
- public static int dayAddSalonClean;
- public static int dayAddSalonBeautiful;
- public static int haveSexAddSalonClean;
- public static int haveSexAddSalonBeautiful;
- public static int entertainAddSalonClean;
- public static int entertainAddSalonBeautiful;
- public static int entertainParameterRevisionThreshold;
- public static int entertainPropensityRevisionMin;
- public static int entertainPropensityRevisionMax;
- public static int workSuccessLvPerfectIncidence = 10;
- public static int workSuccessLvMissIncidence = 10;
- public static int dispatchIncomCoefficient = 500;
- public static int vipFullOpenDay = 100;
- public static int noonWorkLv2Exp = 10;
- public static int noonWorkLv3Exp = 30;
- public static int subMaidInitTaskId;
- public static int faclilityPowerUpWorkId = 3000;
- public static int trainingFaclilityID = 100;
- public const int scheduleTrainingCategoryID = 51;
- public const int scheduleWorkCategoryID = 52;
- public const int scheduleYotogiCategoryID = 100;
- [CompilerGenerated]
- private static Action<CsvParser> <>f__mg$cache0;
- [CompilerGenerated]
- private static Action<CsvParser, HashSet<int>> <>f__mg$cache1;
- [CompilerGenerated]
- private static Action<CsvParser, HashSet<int>> <>f__mg$cache2;
- [CompilerGenerated]
- private static Action<CsvParser, HashSet<int>> <>f__mg$cache3;
- [CompilerGenerated]
- private static Action<CsvParser> <>f__mg$cache4;
- [CompilerGenerated]
- private static Action<CsvParser> <>f__mg$cache5;
- [CompilerGenerated]
- private static Action<CsvParser> <>f__mg$cache6;
- [CompilerGenerated]
- private static Action<CsvParser> <>f__mg$cache7;
- [CompilerGenerated]
- private static Action<CsvParser> <>f__mg$cache8;
- [CompilerGenerated]
- private static Action<CsvParser> <>f__mg$cache9;
- [CompilerGenerated]
- private static Action<CsvParser> <>f__mg$cacheA;
- [CompilerGenerated]
- private static Action<CsvParser> <>f__mg$cacheB;
- [CompilerGenerated]
- private static Action<CsvParser> <>f__mg$cacheC;
- [CompilerGenerated]
- private static Action<CsvParser> <>f__mg$cacheD;
- [CompilerGenerated]
- private static Action<CsvParser, HashSet<int>> <>f__mg$cacheE;
- [CompilerGenerated]
- private static Action<CsvParser, HashSet<int>> <>f__mg$cacheF;
- public enum TrainingType
- {
- Basic,
- Dispatch,
- Trainer,
- Trainee,
- Holiday,
- Travel
- }
- public enum YotogiType
- {
- Basic,
- Rest,
- Entertain,
- HaveSex,
- Vip,
- VipCall,
- Travel,
- EasyYotogi,
- NewSex
- }
- public enum WorkType
- {
- Basic,
- PowerUp
- }
- public class ScheduleBase
- {
- public bool IsCommon
- {
- get
- {
- return this.mode == ScheduleCSVData.ScheduleBase.Mode.Common;
- }
- }
- public bool IsLegacy
- {
- get
- {
- return this.mode == ScheduleCSVData.ScheduleBase.Mode.CM3D2;
- }
- }
- public ScheduleCSVData.ScheduleBase.Mode mode = ScheduleCSVData.ScheduleBase.Mode.COM3D;
- public ScheduleTaskCtrl.TaskType type;
- public bool isCommu = true;
- public string name;
- public string icon;
- public int id;
- public string information;
- public int categoryID;
- public List<string> condInfo;
- public bool visibleIfRentalMaid;
- public bool disableIfRentalMaid;
- public enum Mode
- {
- CM3D2,
- COM3D,
- Common
- }
- }
- public class Training : ScheduleCSVData.ScheduleBase
- {
- public FacilityDataTable.FacilityDefaultData facility
- {
- get
- {
- if (this.facilityDefaultData == null)
- {
- this.facilityDefaultData = FacilityDataTable.GetFacilityDefaultData(this.facilityId, true);
- }
- return this.facilityDefaultData;
- }
- set
- {
- this.facilityDefaultData = value;
- }
- }
- private FacilityDataTable.FacilityDefaultData facilityDefaultData;
- public ScheduleCSVData.TrainingType trainingType;
- public int facilityId = 100;
- public int study_rate;
- public int reception;
- public int care;
- public int lovely;
- public int elegance;
- public int charm;
- public int teach_rate;
- public int cooking;
- public int vocal;
- public int dance;
- public int appealPoint;
- public int exp;
- public int income;
- public int cmdExp;
- public List<Contract> condContract;
- public List<int> condMaidClass;
- public string needMaidStatus;
- public List<int> needEventItemIdList;
- public List<string> condPackage;
- }
- public class Work : ScheduleCSVData.Training
- {
- public ScheduleCSVData.WorkType workTyp;
- }
- public class Yotogi : ScheduleCSVData.ScheduleBase
- {
- public ScheduleCSVData.YotogiType yotogiType;
- public int income;
- public int evaluation;
- public int add_play_number;
- public int add_other_play_number;
- public int condSalonGrade;
- public Dictionary<int, int> condSkill;
- public List<Contract> condContract;
- public List<int> condMaidClass;
- public List<int> condYotogiClass;
- public List<int> condPropensity;
- public List<Seikeiken> condSeikeiken;
- public List<string> condFlag1;
- public List<string> condFlag0;
- public List<MaidStatus.Relation> condRelation;
- public List<AdditionalRelation> condAdditionalRelation;
- public List<SpecialRelation> condSpecialRelation;
- public string subMaidUnipueName = string.Empty;
- public List<string> condPackage;
- public List<string> condManVisibleFlag1;
- public List<string> condManFlag1;
- public List<string> condManFlag0;
- public List<int> condPersonal;
- public bool condMainChara;
- public List<List<int>> condFacilityID;
- public List<int> pairCondPersonal;
- public bool isCheckGP002Personal;
- public bool netorareFlag;
- public ScheduleCSVData.Yotogi.EasyYotogi easyYotogi;
- public List<MaidStatus.Old.Relation> condRelationOld;
- public class EasyYotogi
- {
- public int trophyId;
- public int care;
- public int reception;
- public int teach_rate;
- public int inyoku;
- public int hentai;
- public int housi;
- public int msei;
- public int study_rate;
- }
- }
- public class EntertainGuest
- {
- public int condSalonGrade;
- public int baseIcome;
- public int baseEvaluation;
- public bool sexual;
- }
- }
- }
|