12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511 |
- 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.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(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_B06;
- }
- if (yotogi.id > 0)
- {
- ScheduleCSVData.YotogiDataDic[yotogi.id] = yotogi;
- }
- }
- }
- IL_B06:;
- }
- }
- 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.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<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;
- }
- }
- }
|