123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.IO;
- using ExIni;
- using MyRoomCustom;
- using UnityEngine;
- using Object = UnityEngine.Object;
- namespace CM3D2.MultipleMaids.Plugin
- {
- public partial class MultipleMaids
- {
- public void init2()
- {
- for (int index1 = 0; index1 < GameMain.Instance.CharacterMgr.GetStockMaidCount(); ++index1)
- {
- Maid stockMaid = GameMain.Instance.CharacterMgr.GetStockMaidList()[index1];
- if (goSlot[index1] != null)
- {
- stockMaid.body0.goSlot = new List<TBodySkin>(goSlot[index1]);
- for (int index2 = 0; index2 < bodyHit[index1].Count; ++index2)
- stockMaid.body0.goSlot[index2].bonehair.bodyhit = bodyHit[index1][index2];
- if (!GameMain.Instance.VRMode)
- {
- stockMaid.body0.quaDefEyeL.eulerAngles = eyeL[index1];
- stockMaid.body0.quaDefEyeR.eulerAngles = eyeR[index1];
- }
- shodaiFlg[index1] = false;
- }
- if (SkirtListArray[index1] != null)
- for (int index2 = 0; index2 < stockMaid.body0.goSlot.Count; ++index2)
- SetFieldValue8<BoneHair3, DynamicSkirtBone>(stockMaid.body0.goSlot[index2].bonehair3,
- "m_SkirtBone",
- SkirtListArray[index1][index2]);
- }
- for (int index1 = 0; index1 < maxMaidCnt; ++index1)
- {
- if ((bool)maidArray[index1])
- maidArray[index1].StopKuchipakuPattern();
- if ((bool)maidArray[index1])
- maidArray[index1].body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
- if ((bool)maidArray[index1] && maidArray[index1].Visible && maidArray[index1].body0.isLoadedBody)
- {
- maidArray[index1].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
- maidArray[index1].SetAutoTwistAll(true);
- }
- if ((bool)maidArray[index1])
- {
- maidArray[index1].boMabataki = true;
- if (maidArray[index1].body0.isLoadedBody)
- {
- Maid maid = maidArray[index1];
- for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
- {
- var fieldValue = GetFieldValue<TBoneHair_, List<THair1>>(maid.body0.goSlot[index2].bonehair, "hair1list");
- for (int index3 = 0; index3 < fieldValue.Count; ++index3)
- fieldValue[index3].SoftG = new Vector3(0.0f, -3f / 1000f, 0.0f);
- }
- }
- }
- }
- goSlot = new List<TBodySkin>[200];
- bodyHit = new List<TBodyHit>[200];
- allowUpdate = true;
- okFlg = false;
- isDance = false;
- isDanceChu = false;
- isSavePose = false;
- bgIndex = 0;
- bgIndexB = 0;
- bg.localScale = new Vector3(1f, 1f, 1f);
- softG = new Vector3(0.0f, -3f / 1000f, 0.0f);
- softG2 = new Vector3(0.0f, -0.005f, 0.0f);
- if (!GameMain.Instance.VRMode)
- {
- Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
- fieldValue.enabled = true;
- fieldValue.bloomIntensity = 2.85f;
- fieldValue.hdr = Bloom.HDRBloomMode.Auto;
- fieldValue.bloomThreshholdColor = new Color(1f, 1f, 1f);
- fieldValue.bloomBlurIterations = 3;
- }
- mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
- maidCnt = 1;
- editMaid = 0;
- wearIndex = 0;
- bGuiMessage = false;
- inName = "";
- inName2 = "";
- inName3 = "";
- inText = "";
- fontSize = 25;
- isMessage = false;
- GameObject gameObject = GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
- MessageWindowMgr messageWindowMgr = GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr;
- new MessageClass(gameObject, messageWindowMgr).Clear();
- messageWindowMgr.CloseMessageWindowPanel();
- SetFieldValue2<UILabel, int>(UTY.GetChildObject(gameObject, "MessageViewer/MsgParent/Message", false).GetComponent<UILabel>(),
- "mFontSize",
- fontSize);
- ikMaid = 0;
- ikBui = 0;
- faceFlg = false;
- faceFlg2 = false;
- sceneFlg = false;
- poseFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- unLockFlg = false;
- isNamida = false;
- isNamidaH = false;
- isSekimenH = false;
- isHohoH = false;
- isTear1 = false;
- isTear2 = false;
- isTear3 = false;
- isShock = false;
- isYodare = false;
- isHoho = false;
- isHoho2 = false;
- isHohos = false;
- isHohol = false;
- isToothoff = false;
- isNosefook = false;
- isFaceInit = false;
- isPoseInit = false;
- isWear = true;
- isSkirt = true;
- isMekure1 = false;
- isMekure2 = false;
- isZurasi = false;
- isBra = true;
- isPanz = true;
- isHeadset = true;
- isAccUde = true;
- isStkg = true;
- isShoes = true;
- isGlove = true;
- isMegane = true;
- isAccSenaka = true;
- isMaid = true;
- isF6 = false;
- isPanel = true;
- isBloom = false;
- isBloomA = false;
- isBlur = false;
- isBlur2 = false;
- bloom1 = 2.85f;
- bloom2 = 3f;
- bloom3 = 0.0f;
- bloom4 = 0.0f;
- bloom5 = 0.0f;
- blur1 = -3.98f;
- blur4 = -0.75f;
- blur2 = 0.9f;
- blur3 = 4.19f;
- bokashi = 0.0f;
- kamiyure = 0.0f;
- isDepth = false;
- isDepthA = false;
- depth1 = 3f;
- depth2 = 0.1f;
- depth3 = 15f;
- depth4 = 2.5f;
- isFog = false;
- fog1 = 4f;
- fog2 = 1f;
- fog3 = 1f;
- fog4 = 0.0f;
- fog5 = 1f;
- fog6 = 1f;
- fog7 = 1f;
- isSepia = false;
- isSepian = false;
- isBloomS = true;
- isDepthS = false;
- isBlurS = false;
- isFogS = false;
- isHairSetting = true;
- isSkirtSetting = false;
- if (depth_field_ != null)
- depth_field_.enabled = false;
- if (fog_ != null)
- fog_.enabled = false;
- if (sepia_tone_ != null)
- sepia_tone_.enabled = false;
- isCube = false;
- isCube2 = true;
- isCube3 = false;
- isCube4 = true;
- isCubeS = false;
- cubeSize = 0.12f;
- isPoseEdit = false;
- isFaceEdit = false;
- bgmIndex = 0;
- if (sceneLevel == 5)
- bgmIndex = 2;
- effectIndex = 0;
- selectMaidIndex = 0;
- copyIndex = 0;
- selectLightIndex = 0;
- doguBIndex = 0;
- parIndex = 0;
- isEditNo = 0;
- editSelectMaid = null;
- for (int index = 0; index < 10; ++index)
- {
- date[index] = "";
- ninzu[index] = "";
- }
- isDanceStart1F = false;
- isDanceStart1K = false;
- isDanceStart2F = false;
- isDanceStart3F = false;
- isDanceStart3K = false;
- isDanceStart4F = false;
- isDanceStart4K = false;
- isDanceStart5F = false;
- isDanceStart5K = false;
- isDanceStart6F = false;
- isDanceStart6K = false;
- isDanceStart7F = false;
- isDanceStart7V = false;
- isDanceStart8F = false;
- isDanceStart8V = false;
- isDanceStart8P = false;
- isDanceStart9F = false;
- isDanceStart9K = false;
- isDanceStart10F = false;
- isDanceStart11F = false;
- isDanceStart11V = false;
- isDanceStart12F = false;
- isDanceStart13F = false;
- isDanceStart13K = false;
- isDanceStart14F = false;
- isDanceStart14V = false;
- isDanceStart15F = false;
- isDanceStart15V = false;
- for (int index1 = 0; index1 < maxMaidCnt; ++index1)
- {
- danceFace[index1] = 0.0f;
- FaceName[index1] = "";
- FaceName2[index1] = "";
- FaceName3[index1] = "";
- isStop[index1] = false;
- isBone[index1] = false;
- isBoneN[index1] = false;
- poseIndex[index1] = 0;
- itemIndex[index1] = 0;
- itemIndex2[index1] = 0;
- faceIndex[index1] = 0;
- faceBlendIndex[index1] = 0;
- headEyeIndex[index1] = 0;
- isLock[index1] = false;
- isFace[index1] = true;
- mekure1[index1] = false;
- mekure2[index1] = false;
- zurasi[index1] = false;
- mekure1n[index1] = false;
- mekure2n[index1] = false;
- zurasin[index1] = false;
- isLook[index1] = false;
- isLookn[index1] = false;
- lookX[index1] = 0.0f;
- lookY[index1] = -0.0f;
- lookXn[index1] = 0.0f;
- lookYn[index1] = -0.0f;
- voice1[index1] = false;
- voice2[index1] = false;
- voice1n[index1] = false;
- voice2n[index1] = false;
- hanten[index1] = false;
- hantenn[index1] = false;
- kotei[index1] = false;
- xFlg[index1] = false;
- zFlg[index1] = false;
- ikMode[index1] = 0;
- Destroy(gMaid[index1]);
- Destroy(gMaidC[index1]);
- Destroy(gHandL[index1]);
- Destroy(gArmL[index1]);
- Destroy(gHandR[index1]);
- Destroy(gArmR[index1]);
- Destroy(gFootL[index1]);
- Destroy(gHizaL[index1]);
- Destroy(gFootR[index1]);
- Destroy(gHizaR[index1]);
- Destroy(gClavicleL[index1]);
- Destroy(gClavicleR[index1]);
- Destroy(gNeck[index1]);
- Destroy(gSpine[index1]);
- Destroy(gSpine0a[index1]);
- Destroy(gSpine1a[index1]);
- Destroy(gSpine1[index1]);
- Destroy(gPelvis[index1]);
- Destroy(gizmoHandL[index1]);
- Destroy(gizmoHandR[index1]);
- Destroy(gizmoFootL[index1]);
- Destroy(gizmoFootR[index1]);
- HandL1[index1] = null;
- for (int index2 = 0; index2 < 30; ++index2)
- Destroy(gFinger[index1, index2]);
- for (int index2 = 0; index2 < 12; ++index2)
- Destroy(gFinger2[index1, index2]);
- isIK[index1] = isIKAll;
- pHandL[index1] = 0;
- pHandR[index1] = 0;
- muneIKL[index1] = false;
- muneIKR[index1] = false;
- }
- if ((bool)kami)
- kami.SetActive(false);
- danceCheckIndex = 0;
- for (int index = 0; index < danceCheck.Length; ++index)
- danceCheck[danceCheckIndex] = 1f;
- lightIndex = new List<int>();
- lightIndex.Add(0);
- lightColorR = new List<float>();
- lightColorR.Add(1f);
- lightColorG = new List<float>();
- lightColorG.Add(1f);
- lightColorB = new List<float>();
- lightColorB.Add(1f);
- lightX = new List<float>();
- lightX.Add(40f);
- lightY = new List<float>();
- lightY.Add(180f);
- lightAkarusa = new List<float>();
- lightAkarusa.Add(0.95f);
- lightKage = new List<float>();
- lightKage.Add(0.098f);
- lightRange = new List<float>();
- lightRange.Add(50f);
- isIdx1 = false;
- isIdx2 = false;
- isIdx3 = false;
- isIdx4 = false;
- bgObject.SetActive(true);
- GameMain.Instance.MainLight.Reset();
- GameMain.Instance.MainLight.SetIntensity(0.95f);
- GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 30f;
- GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
- GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
- GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
- for (int index = 0; index < doguBObject.Count; ++index)
- Destroy(doguBObject[index]);
- doguBObject.Clear();
- doguBIndex = 0;
- parIndex = 0;
- doguCombo.selectedItemIndex = 0;
- parCombo.selectedItemIndex = 0;
- for (int index = 1; index < lightList.Count; ++index)
- Destroy(lightList[index]);
- lightList = new List<GameObject>();
- lightList.Add(GameMain.Instance.MainLight.gameObject);
- lightComboList = new GUIContent[lightList.Count];
- lightComboList[0] = new GUIContent("メイン");
- lightCombo.selectedItemIndex = 0;
- selectLightIndex = 0;
- bgCombo.selectedItemIndex = 0;
- kankyoCombo.selectedItemIndex = 0;
- bgCombo2.selectedItemIndex = 0;
- itemCombo2.selectedItemIndex = 0;
- slotCombo.selectedItemIndex = 0;
- sortList.Clear();
- scrollPos = new Vector2(0.0f, 0.0f);
- var component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
- component.mode = Vignetting.AberrationMode.Simple;
- component.intensity = -3.98f;
- component.chromaticAberration = -0.75f;
- component.axialAberration = 1.18f;
- component.blurSpread = 4.19f;
- component.luminanceDependency = 0.494f;
- component.blurDistance = 1.71f;
- component.enabled = false;
- doguIndex.Clear();
- doguSelectIndex = 0;
- for (int index = 0; index < doguObject.Count; ++index)
- if (doguObject[index] != null)
- {
- Destroy(doguObject[index]);
- doguObject[index] = null;
- }
- doguObject.Clear();
- }
- public void init()
- {
- isInit = true;
- for (int index1 = 0; index1 < GameMain.Instance.CharacterMgr.GetStockMaidCount(); ++index1)
- {
- Maid stockMaid = GameMain.Instance.CharacterMgr.GetStockMaidList()[index1];
- if (goSlot[index1] != null)
- {
- stockMaid.body0.goSlot = new List<TBodySkin>(goSlot[index1]);
- for (int index2 = 0; index2 < bodyHit[index1].Count; ++index2)
- stockMaid.body0.goSlot[index2].bonehair.bodyhit = bodyHit[index1][index2];
- if (!GameMain.Instance.VRMode)
- {
- stockMaid.body0.quaDefEyeL.eulerAngles = eyeL[index1];
- stockMaid.body0.quaDefEyeR.eulerAngles = eyeR[index1];
- }
- shodaiFlg[index1] = false;
- }
- if (SkirtListArray[index1] != null)
- for (int index2 = 0; index2 < stockMaid.body0.goSlot.Count; ++index2)
- SetFieldValue8<BoneHair3, DynamicSkirtBone>(stockMaid.body0.goSlot[index2].bonehair3,
- "m_SkirtBone",
- SkirtListArray[index1][index2]);
- }
- for (int index1 = 0; index1 < maxMaidCnt; ++index1)
- {
- if ((bool)maidArray[index1])
- maidArray[index1].StopKuchipakuPattern();
- if ((bool)maidArray[index1])
- maidArray[index1].body0.trsLookTarget = GameMain.Instance.MainCamera.transform;
- if ((bool)maidArray[index1] && maidArray[index1].Visible && maidArray[index1].body0.isLoadedBody)
- {
- maidArray[index1].CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
- maidArray[index1].SetAutoTwistAll(true);
- maidArray[index1].body0.MuneYureL(1f);
- maidArray[index1].body0.MuneYureR(1f);
- }
- if ((bool)maidArray[index1])
- {
- maidArray[index1].body0.SetMask(TBody.SlotID.wear, true);
- maidArray[index1].body0.SetMask(TBody.SlotID.skirt, true);
- maidArray[index1].body0.SetMask(TBody.SlotID.bra, true);
- maidArray[index1].body0.SetMask(TBody.SlotID.panz, true);
- maidArray[index1].body0.SetMask(TBody.SlotID.mizugi, true);
- maidArray[index1].body0.SetMask(TBody.SlotID.onepiece, true);
- if (maidArray[index1].body0.isLoadedBody)
- {
- Maid maid = maidArray[index1];
- for (int index2 = 0; index2 < maid.body0.goSlot.Count; ++index2)
- {
- var fieldValue = GetFieldValue<TBoneHair_, List<THair1>>(maid.body0.goSlot[index2].bonehair, "hair1list");
- for (int index3 = 0; index3 < fieldValue.Count; ++index3)
- fieldValue[index3].SoftG = new Vector3(0.0f, -3f / 1000f, 0.0f);
- }
- }
- }
- maidArray[index1] = null;
- }
- goSlot = new List<TBodySkin>[200];
- bodyHit = new List<TBodyHit>[200];
- allowUpdate = true;
- if (okFlg)
- {
- GameMain.Instance.CharacterMgr.ResetCharaPosAll();
- for (int index = 0; index < GameMain.Instance.CharacterMgr.GetStockMaidCount(); ++index)
- if (sceneLevel != 5 || index != editMaid)
- {
- Maid stockMaid = GameMain.Instance.CharacterMgr.GetStockMaidList()[index];
- stockMaid.transform.localScale = new Vector3(1f, 1f, 1f);
- var f_eMode = (TBody.MaskMode)Enum.Parse(typeof(TBody.MaskMode), "None");
- stockMaid.body0.SetMaskMode(f_eMode);
- stockMaid.boMabataki = true;
- }
- GameMain.Instance.CharacterMgr.DeactivateCharaAll();
- for (int index = 11; index < GameMain.Instance.CharacterMgr.GetStockMaidCount(); ++index)
- {
- Maid stockMaid = GameMain.Instance.CharacterMgr.GetStockMaidList()[index];
- Vector3 zero = Vector3.zero;
- stockMaid.SetPos(zero);
- stockMaid.SetRot(zero);
- stockMaid.SetPosOffset(zero);
- if (stockMaid.body0 != null)
- stockMaid.body0.SetBoneHitHeightY(0.0f);
- stockMaid.Visible = false;
- stockMaid.ActiveSlotNo = -1;
- stockMaid.DelPrefabAll();
- if (stockMaid.body0.isLoadedBody)
- {
- stockMaid.CrossFade(poseArray[0] + ".anm", false, true, false, 0.0f, 1f);
- stockMaid.SetAutoTwistAll(true);
- }
- stockMaid.boMabataki = true;
- }
- }
- okFlg = false;
- isDance = false;
- isDanceChu = false;
- isSavePose = false;
- bgIndex = 0;
- bgIndexB = 0;
- bg.localScale = new Vector3(1f, 1f, 1f);
- softG = new Vector3(0.0f, -3f / 1000f, 0.0f);
- softG2 = new Vector3(0.0f, -0.005f, 0.0f);
- if (!GameMain.Instance.VRMode)
- {
- Bloom fieldValue = GetFieldValue<CameraMain, Bloom>(mainCamera, "m_gcBloom");
- fieldValue.enabled = true;
- fieldValue.bloomIntensity = 2.85f;
- fieldValue.hdr = Bloom.HDRBloomMode.Auto;
- fieldValue.bloomThreshholdColor = new Color(1f, 1f, 1f);
- fieldValue.bloomBlurIterations = 3;
- }
- mainCamera.GetComponent<Camera>().backgroundColor = new Color(0.0f, 0.0f, 0.0f);
- maidCnt = 0;
- wearIndex = 0;
- isF6 = false;
- faceFlg = false;
- faceFlg2 = false;
- sceneFlg = false;
- poseFlg = false;
- kankyoFlg = false;
- kankyo2Flg = false;
- unLockFlg = false;
- inName = "";
- inName2 = "";
- inName3 = "";
- inText = "";
- fontSize = 25;
- bGuiMessage = false;
- isMessage = false;
- GameObject gameObject = GameObject.Find("__GameMain__/SystemUI Root").transform.Find("MessageWindowPanel").gameObject;
- MessageWindowMgr messageWindowMgr = GameMain.Instance.ScriptMgr.adv_kag.MessageWindowMgr;
- new MessageClass(gameObject, messageWindowMgr).Clear();
- messageWindowMgr.CloseMessageWindowPanel();
- SetFieldValue2<UILabel, int>(UTY.GetChildObject(gameObject, "MessageViewer/MsgParent/Message", false).GetComponent<UILabel>(),
- "mFontSize",
- fontSize);
- ikMaid = 0;
- ikBui = 0;
- isNamida = false;
- isNamidaH = false;
- isSekimenH = false;
- isHohoH = false;
- isTear1 = false;
- isTear2 = false;
- isTear3 = false;
- isShock = false;
- isYodare = false;
- isHoho = false;
- isHoho2 = false;
- isHohos = false;
- isHohol = false;
- isToothoff = false;
- isNosefook = false;
- isFaceInit = false;
- isPoseInit = false;
- isWear = true;
- isSkirt = true;
- isMekure1 = false;
- isMekure2 = false;
- isZurasi = false;
- isBra = true;
- isPanz = true;
- isHeadset = true;
- isAccUde = true;
- isStkg = true;
- isShoes = true;
- isGlove = true;
- isMegane = true;
- isAccSenaka = true;
- isMaid = true;
- isPanel = true;
- isBloom = false;
- isBloomA = false;
- isBlur = false;
- isBlur2 = false;
- bloom1 = 2.85f;
- bloom2 = 3f;
- bloom3 = 0.0f;
- bloom4 = 0.0f;
- bloom5 = 0.0f;
- blur1 = -3.98f;
- blur4 = -0.75f;
- blur2 = 0.9f;
- blur3 = 4.19f;
- bokashi = 0.0f;
- kamiyure = 0.0f;
- isDepth = false;
- isDepthA = false;
- depth1 = 3f;
- depth2 = 0.1f;
- depth3 = 15f;
- depth4 = 2.5f;
- isFog = false;
- fog1 = 4f;
- fog2 = 1f;
- fog3 = 1f;
- fog4 = 0.0f;
- fog5 = 1f;
- fog6 = 1f;
- fog7 = 1f;
- isSepia = false;
- isSepian = false;
- isBloomS = true;
- isDepthS = false;
- isBlurS = false;
- isFogS = false;
- isHairSetting = true;
- isSkirtSetting = false;
- if (depth_field_ != null)
- depth_field_.enabled = false;
- if (fog_ != null)
- fog_.enabled = false;
- if (sepia_tone_ != null)
- sepia_tone_.enabled = false;
- isCube = false;
- isCube2 = true;
- isCube3 = false;
- isCube4 = true;
- isCubeS = false;
- cubeSize = 0.12f;
- isPoseEdit = false;
- isFaceEdit = false;
- bgmIndex = 0;
- if (sceneLevel == 5)
- bgmIndex = 2;
- effectIndex = 0;
- selectMaidIndex = 0;
- copyIndex = 0;
- selectLightIndex = 0;
- doguBIndex = 0;
- parIndex = 0;
- isEditNo = 0;
- editSelectMaid = null;
- for (int index = 0; index < 10; ++index)
- {
- date[index] = "";
- ninzu[index] = "";
- }
- isDanceStart1F = false;
- isDanceStart1K = false;
- isDanceStart2F = false;
- isDanceStart3F = false;
- isDanceStart3K = false;
- isDanceStart4F = false;
- isDanceStart4K = false;
- isDanceStart5F = false;
- isDanceStart5K = false;
- isDanceStart6F = false;
- isDanceStart6K = false;
- isDanceStart7F = false;
- isDanceStart7V = false;
- isDanceStart8F = false;
- isDanceStart8V = false;
- isDanceStart8P = false;
- isDanceStart9F = false;
- isDanceStart9K = false;
- isDanceStart10F = false;
- isDanceStart11F = false;
- isDanceStart11V = false;
- isDanceStart12F = false;
- isDanceStart13F = false;
- isDanceStart13K = false;
- isDanceStart14F = false;
- isDanceStart14V = false;
- isDanceStart15F = false;
- isDanceStart15V = false;
- for (int index1 = 0; index1 < maxMaidCnt; ++index1)
- {
- danceFace[index1] = 0.0f;
- FaceName[index1] = "";
- FaceName2[index1] = "";
- FaceName3[index1] = "";
- isStop[index1] = false;
- isBone[index1] = false;
- isBoneN[index1] = false;
- poseIndex[index1] = 0;
- itemIndex[index1] = 0;
- itemIndex2[index1] = 0;
- faceIndex[index1] = 0;
- faceBlendIndex[index1] = 0;
- headEyeIndex[index1] = 0;
- isLock[index1] = false;
- isFace[index1] = true;
- mekure1[index1] = false;
- mekure2[index1] = false;
- zurasi[index1] = false;
- mekure1n[index1] = false;
- mekure2n[index1] = false;
- zurasin[index1] = false;
- isLook[index1] = false;
- isLookn[index1] = false;
- lookX[index1] = 0.0f;
- lookY[index1] = -0.0f;
- lookXn[index1] = 0.0f;
- lookYn[index1] = -0.0f;
- voice1[index1] = false;
- voice2[index1] = false;
- voice1n[index1] = false;
- voice2n[index1] = false;
- hanten[index1] = false;
- hantenn[index1] = false;
- kotei[index1] = false;
- xFlg[index1] = false;
- zFlg[index1] = false;
- ikMode[index1] = 0;
- Destroy(gMaid[index1]);
- Destroy(gMaidC[index1]);
- Destroy(gHandL[index1]);
- Destroy(gArmL[index1]);
- Destroy(gHandR[index1]);
- Destroy(gArmR[index1]);
- Destroy(gFootL[index1]);
- Destroy(gHizaL[index1]);
- Destroy(gFootR[index1]);
- Destroy(gHizaR[index1]);
- Destroy(gClavicleL[index1]);
- Destroy(gClavicleR[index1]);
- Destroy(gNeck[index1]);
- Destroy(gSpine[index1]);
- Destroy(gSpine0a[index1]);
- Destroy(gSpine1a[index1]);
- Destroy(gSpine1[index1]);
- Destroy(gPelvis[index1]);
- Destroy(gizmoHandL[index1]);
- Destroy(gizmoHandR[index1]);
- Destroy(gizmoFootL[index1]);
- Destroy(gizmoFootR[index1]);
- HandL1[index1] = null;
- for (int index2 = 0; index2 < 30; ++index2)
- Destroy(gFinger[index1, index2]);
- for (int index2 = 0; index2 < 12; ++index2)
- Destroy(gFinger2[index1, index2]);
- isIK[index1] = isIKAll;
- pHandL[index1] = 0;
- pHandR[index1] = 0;
- muneIKL[index1] = false;
- muneIKR[index1] = false;
- }
- if ((bool)kami)
- kami.SetActive(false);
- danceCheckIndex = 0;
- for (int index = 0; index < danceCheck.Length; ++index)
- danceCheck[danceCheckIndex] = 1f;
- lightIndex = new List<int>();
- lightIndex.Add(0);
- lightColorR = new List<float>();
- lightColorR.Add(1f);
- lightColorG = new List<float>();
- lightColorG.Add(1f);
- lightColorB = new List<float>();
- lightColorB.Add(1f);
- lightX = new List<float>();
- lightX.Add(40f);
- lightY = new List<float>();
- lightY.Add(180f);
- lightAkarusa = new List<float>();
- lightAkarusa.Add(0.95f);
- lightKage = new List<float>();
- lightKage.Add(0.098f);
- lightRange = new List<float>();
- lightRange.Add(50f);
- isIdx1 = false;
- isIdx2 = false;
- isIdx3 = false;
- isIdx4 = false;
- Destroy(cameraObj);
- Destroy(subcamera);
- bgObject.SetActive(true);
- GameMain.Instance.MainLight.Reset();
- GameMain.Instance.MainLight.SetIntensity(0.95f);
- GameMain.Instance.MainLight.GetComponent<Light>().spotAngle = 30f;
- GameMain.Instance.MainLight.GetComponent<Light>().range = 10f;
- GameMain.Instance.MainLight.GetComponent<Light>().type = LightType.Directional;
- GameMain.Instance.MainLight.gameObject.transform.position = new Vector3(0.0f, 2f, 0.0f);
- if (!GameMain.Instance.VRMode)
- {
- m_material = new Material(Shader.Find("Transparent/Diffuse"));
- m_material.color = new Color(0.4f, 0.4f, 1f, 0.8f);
- m_UOCamera = GetFieldValue<CameraMain, UltimateOrbitCamera>(mainCamera, "m_UOCamera");
- if (sceneLevel == 3)
- m_UOCamera.enabled = true;
- }
- for (int index = 0; index < doguBObject.Count; ++index)
- Destroy(doguBObject[index]);
- doguBObject.Clear();
- doguBIndex = 0;
- parIndex = 0;
- doguCombo.selectedItemIndex = 0;
- parCombo.selectedItemIndex = 0;
- for (int index = 1; index < lightList.Count; ++index)
- Destroy(lightList[index]);
- lightList = new List<GameObject>();
- lightList.Add(GameMain.Instance.MainLight.gameObject);
- lightComboList = new GUIContent[lightList.Count];
- lightComboList[0] = new GUIContent("メイン");
- lightCombo.selectedItemIndex = 0;
- selectLightIndex = 0;
- bgCombo.selectedItemIndex = 0;
- kankyoCombo.selectedItemIndex = 0;
- bgCombo2.selectedItemIndex = 0;
- itemCombo2.selectedItemIndex = 0;
- slotCombo.selectedItemIndex = 0;
- sortList.Clear();
- scrollPos = new Vector2(0.0f, 0.0f);
- if (!GameMain.Instance.VRMode)
- {
- var component = GameMain.Instance.MainCamera.gameObject.GetComponent<Vignetting>();
- component.mode = Vignetting.AberrationMode.Simple;
- component.intensity = -3.98f;
- component.chromaticAberration = -0.75f;
- component.axialAberration = 1.18f;
- component.blurSpread = 4.19f;
- component.luminanceDependency = 0.494f;
- component.blurDistance = 1.71f;
- component.enabled = false;
- }
- doguIndex.Clear();
- doguSelectIndex = 0;
- for (int index = 0; index < doguObject.Count; ++index)
- if (doguObject[index] != null)
- {
- Destroy(doguObject[index]);
- doguObject[index] = null;
- }
- doguObject.Clear();
- string path1 = Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose";
- if (!File.Exists(path1))
- Directory.CreateDirectory(path1);
- int countS = this.countS;
- var action1 = (Action<string, List<string>>)((path, result_list) =>
- {
- var files = Directory.GetFiles(path);
- this.countS = 0;
- for (int index = 0; index < files.Length; ++index)
- if (Path.GetExtension(files[index]) == ".anm")
- {
- strListS.Add(files[index].Split('\\')[files[index]
- .Split('\\').Length - 1]
- .Split('.')[0] + " /"
- + files[index]);
- ++this.countS;
- }
- });
- var stringList1 = new List<string>();
- action1(path1, stringList1);
- if (this.countS != countS)
- poseArray = null;
- if (poseArray != null)
- return;
- strList2 = new List<string>();
- strListE = new List<string>();
- strListE2 = new List<string>();
- strListS = new List<string>();
- strListD = new List<string>();
- strS = "";
- var stringList2 = new List<string>();
- stringList2.Add(string.Empty);
- stringList2.AddRange(GameUty.PathList);
- var bgList2 = new List<string>();
- var action2 = (Action<string>)(strFileName =>
- {
- if (!GameUty.FileSystem.IsExistentFile(strFileName))
- return;
- using (AFileBase file = GameUty.FileSystem.FileOpen(strFileName))
- {
- using (var csvParser = new CsvParser())
- {
- csvParser.Open(file);
- for (int cell_y = 1; cell_y < csvParser.max_cell_y; ++cell_y)
- if (csvParser.IsCellToExistData(0, cell_y))
- bgList2.Add(csvParser.GetCellAsString(1, cell_y));
- }
- }
- });
- action2("edit_bg.nei");
- for (int index = 0; index < stringList2.Count; ++index)
- action2("edit_bg_" + stringList2[index] + ".nei");
- var stringList3 = new List<string>();
- for (int index1 = 0; index1 < bgList2.Count; ++index1)
- {
- bool flag = false;
- for (int index2 = 0; index2 < bgArray21.Length; ++index2)
- if (bgList2[index1] == bgArray21[index2])
- flag = true;
- if (!flag && bgList2[index1] != "HoneymoonRoom" && bgList2[index1] != "ClassRoom_Play" && bgList2[index1] != "BigSight"
- && bgList2[index1] != "PrivateRoom" && bgList2[index1] != "Sea_Night" && bgList2[index1] != "Yashiki")
- stringList3.Add(bgList2[index1]);
- }
- if (GameMain.Instance.BgMgr.CreateAssetBundle("SMRoom2") != null)
- isVP = true;
- var @object = (Object)null;
- if (GameMain.Instance.BgMgr.CreateAssetBundle("Train") != null)
- isPP = true;
- @object = null;
- if (GameMain.Instance.BgMgr.CreateAssetBundle("HoneymoonRoom") != null)
- isPP2 = true;
- @object = null;
- if (GameMain.Instance.BgMgr.CreateAssetBundle("BigSight") != null)
- isPP3 = true;
- @object = null;
- if (GameMain.Instance.BgMgr.CreateAssetBundle("rotenburo") != null)
- isVA = true;
- @object = null;
- if (GameMain.Instance.BgMgr.CreateAssetBundle("karaokeroom") != null)
- isKA = true;
- @object = null;
- if (GameUty.IsEnabledCompatibilityMode)
- isCM3D2 = true;
- var stringList4 = new List<string>(350 + poseArray2.Length);
- stringList4.AddRange(poseArray2);
- var stringList5 = new List<string>();
- for (int index = 11; index < 200; ++index)
- if (index < 100)
- using (AFileBase afileBase1 = GameUty.FileSystem.FileOpen("edit_pose_0" + index + "_f.anm"))
- if (afileBase1.IsValid())
- stringList5.Add("edit_pose_0" + index + "_f");
- else
- using (AFileBase afileBase2 = GameUty.FileSystem.FileOpen("edit_pose_" + index + "_f.anm"))
- if (afileBase2.IsValid())
- stringList5.Add("edit_pose_" + index + "_f");
- for (int index1 = 15; index1 < 25; ++index1)
- for (int index2 = 0; index2 < 2; ++index2)
- {
- string str = "s";
- if (index2 == 1)
- str = "w";
- for (int index3 = 1; index3 < 20; ++index3)
- if (index3 < 10)
- using (AFileBase afileBase3 = GameUty.FileSystem.FileOpen("edit_pose_dg" + index1 + str + "_00" + index3 + "_f.anm"))
- if (afileBase3.IsValid())
- stringList5.Add("edit_pose_dg" + index1 + str + "_00" + index3 + "_f");
- else
- using (AFileBase afileBase4 = GameUty.FileSystem.FileOpen("edit_pose_dg" + index1 + str + "_0" + index3 + "_f.anm"))
- if (afileBase4.IsValid())
- stringList5.Add("edit_pose_dg" + index1 + str + "_0" + index3 + "_f");
- }
- if (stringList5.Count > 0)
- stringList4.AddRange(stringList5.ToArray());
- using (GameUty.FileSystem.FileOpen("dance_cm3d_003_sp2_f1.anm"))
- ;
- using (GameUty.FileSystem.FileOpen("dance_cm3d2_kara_003_ddfl_f1.anm"))
- ;
- using (GameUty.FileSystem.FileOpen("dance_cm3d2_kara02_001_smt_f1.anm"))
- ;
- stringList4.AddRange(poseArrayVP2);
- stringList4.AddRange(poseArrayFB);
- stringList4.AddRange(poseArray4);
- stringList4.AddRange(poseArray5);
- stringList4.AddRange(poseArray6);
- poseArray = stringList4.ToArray();
- ((Action<string, List<string>>)((path, result_list) =>
- {
- var files = Directory.GetFiles(path);
- this.countS = 0;
- for (int index = 0; index < files.Length; ++index)
- if (Path.GetExtension(files[index]) == ".anm")
- {
- strListS.Add(files[index].Split('\\')[files[index].Split('\\').Length - 1]
- .Split('.')[0] + " /"
- + files[index]);
- ++this.countS;
- }
- }))(Path.GetFullPath(".\\") + "Mod\\MultipleMaidsPose", new List<string>());
- var list = GameUty.FileSystem.GetList("motion", AFileSystemBase.ListType.AllFile);
- int num = 0;
- var stringList6 = new List<string>();
- foreach (string path2 in list)
- {
- string withoutExtension = Path.GetFileNameWithoutExtension(path2);
- string directoryName = Path.GetDirectoryName(path2);
- if (!withoutExtension.StartsWith("maid_motion_") && !withoutExtension.StartsWith("work_00")
- && !withoutExtension.EndsWith("_3_") && !withoutExtension.EndsWith("_5_")
- && !withoutExtension.StartsWith("ck_")
- && !withoutExtension.StartsWith("vr_")
- && !withoutExtension.StartsWith("dance_mc")
- && !withoutExtension.Contains("a01_") && !withoutExtension.StartsWith("j_")
- && !withoutExtension.StartsWith("k_") && !withoutExtension.StartsWith("t_")
- && !withoutExtension.StartsWith("cbl_")
- && !withoutExtension.Contains("b01_") && !withoutExtension.Contains("b02_")
- && !withoutExtension.Contains("_kubi_")
- && !withoutExtension.EndsWith("_m2") && !withoutExtension.EndsWith("_m3")
- && !withoutExtension.Contains("_m2_once")
- && !withoutExtension.Contains("_m3_once")
- && !withoutExtension.StartsWith("h_")
- && !withoutExtension.StartsWith("event_")
- && !withoutExtension.StartsWith("man_") && !withoutExtension.EndsWith("_m")
- && !withoutExtension.Contains("_m_") && !withoutExtension.Contains("_man")
- && !(withoutExtension == "dance_cm3d2_001_zoukin")
- && !(withoutExtension == "dance_cm3d2_001_mop")
- && !(withoutExtension == "maid_motion")
- && !(withoutExtension == "aruki_1_idougo_f")
- && !(withoutExtension == "sleep2") && !(withoutExtension == "stand_akire2")
- && !(withoutExtension == "ero_scene_001")
- && !(withoutExtension == "ero_scenefm_001")
- && !(withoutExtension == "training_001")
- && !(withoutExtension == "workff_001")
- && !(withoutExtension == "workfm_001")
- && !(withoutExtension == "dance_cm3d21_005_moe_mset")
- && !(withoutExtension == "hinpyoukai_001"))
- {
- if (!directoryName.Contains("\\sex\\"))
- {
- if (!withoutExtension.StartsWith("sex_"))
- {
- if (withoutExtension.StartsWith("dance_test"))
- {
- strListD.Add(withoutExtension);
- }
- else
- {
- bool flag = false;
- foreach (string str1 in strListS)
- {
- var chArray = new char[1] { '/' };
- string str2 = str1.Split(chArray)[0].Replace(" ", "");
- if (withoutExtension == str2)
- {
- flag = true;
- break;
- }
- }
- if (!flag)
- stringList6.Add(withoutExtension);
- }
- }
- }
- else if (!withoutExtension.StartsWith("pose_"))
- {
- strListE.Add(withoutExtension);
- }
- }
- }
- foreach (string str in stringList6)
- {
- bool flag = false;
- for (int index = 0; index < poseArray.Length; ++index)
- if (str == poseArray[index])
- flag = true;
- if (!flag && str.StartsWith("edit_"))
- strList2.Add(str);
- }
- foreach (string str in stringList6)
- {
- bool flag = false;
- for (int index = 0; index < poseArray.Length; ++index)
- if (str == poseArray[index])
- flag = true;
- if (!flag && str.StartsWith("pose_"))
- strList2.Add(str);
- }
- foreach (string str in stringList6)
- {
- bool flag = false;
- for (int index = 0; index < poseArray.Length; ++index)
- if (str == poseArray[index])
- flag = true;
- if (!flag && !str.StartsWith("edit_") && !str.StartsWith("pose_"))
- strList2.Add(str);
- }
- foreach (string str in strListE)
- {
- bool flag = false;
- for (int index = 0; index < poseArray.Length; ++index)
- if (str == poseArray[index])
- flag = true;
- if (!flag)
- {
- strListE2.Add(str);
- ++num;
- }
- }
- stringList4.AddRange(strList2.ToArray());
- stringList4.AddRange(strListE2.ToArray());
- existPose = false;
- poseIniStr = "";
- foreach (IniKey key in Preferences["pose"].Keys)
- {
- IniKey iniKey = Preferences["pose"][key.Key];
- if (iniKey.Value != null && iniKey.Value != "" && iniKey.Value != "del")
- {
- stringList4.AddRange(new string[1] { key.Key });
- existPose = true;
- if (poseIniStr == "")
- poseIniStr = key.Key;
- }
- }
- stringList4.AddRange(strListS.ToArray());
- poseArray = stringList4.ToArray();
- var stringList7 = new List<string>(50 + poseGroupArray2.Length);
- stringList7.AddRange(poseGroupArray2);
- stringList7.AddRange(poseGroupArrayVP);
- stringList7.AddRange(poseGroupArrayFB);
- stringList7.AddRange(poseGroupArray3);
- stringList7.Add(poseArray5[0]);
- stringList7.Add(poseArray6[0]);
- stringList7.Add(strList2[0]);
- stringList7.Add(strListE2[0]);
- if (strListS.Count > 0 && poseIniStr == "")
- {
- stringList7.Add(strListS[0]);
- existPose = true;
- }
- if (poseIniStr != "")
- stringList7.Add(poseIniStr);
- poseGroupArray = stringList7.ToArray();
- groupList = new ArrayList();
- for (int index1 = 0; index1 < poseArray.Length; ++index1)
- for (int index2 = 0; index2 < poseGroupArray.Length; ++index2)
- if (poseGroupArray[index2] == poseArray[index1])
- {
- groupList.Add(index1);
- if (poseGroupArray[index2] == strList2[0])
- sPoseCount = index1;
- }
- var strArray1 = new string[1] { "Salon_Day" };
- var strArray2 = new string[2] { "SMRoom2", "LockerRoom" };
- var strArray3 = new string[2] { "Oheya", "MyBedRoom_NightOff" };
- var strArray4 = new string[4] { "ClassRoom", "ClassRoom_Play", "HoneymoonRoom", "OutletPark" };
- var strArray5 = new string[9]
- {
- "BigSight", "BigSight_Night", "PrivateRoom", "PrivateRoom_Night", "Sea", "Sea_Night", "Yashiki_Day", "Yashiki",
- "Yashiki_Pillow"
- };
- var strArray6 = new string[8]
- {
- "rotenburo", "rotenburo_night", "villa", "villa_night", "villa_bedroom", "villa_bedroom_night", "villa_farm",
- "villa_farm_night"
- };
- var strArray7 = new string[1] { "karaokeroom" };
- var stringList8 = new List<string>(50 + poseArray2.Length);
- stringList8.AddRange(bgArray2);
- var stringList9 = new List<string>();
- var saveDataDic = CreativeRoomManager.GetSaveDataDic();
- if (saveDataDic != null)
- foreach (var keyValuePair in saveDataDic)
- stringList9.Add(keyValuePair.Key);
- stringList8.AddRange(stringList9.ToArray());
- if (isCM3D2)
- {
- stringList8.AddRange(bgArray21);
- if (isVP)
- stringList8.AddRange(strArray2);
- if (isPP)
- stringList8.AddRange(strArray3);
- if (isPP2)
- stringList8.AddRange(strArray4);
- if (isPP3)
- stringList8.AddRange(strArray5);
- if (isVA)
- stringList8.AddRange(strArray6);
- if (isKA || isKA2)
- stringList8.AddRange(strArray7);
- stringList8.AddRange(strArray1);
- }
- bgArray = stringList8.ToArray();
- var strArray8 = new string[3] { "dokidokifallinlove_short_inst", "dokidokifallinlove_short", "entrancetoyou_short" };
- var strArray9 = new string[1] { "scarlet leap_short" };
- var strArray10 = new string[3] { "stellarmytears_short", "stellarmytears_short2", "stellarmytears_short3" };
- var strArray11 = new string[1] { "RhythmixToYou" };
- var strArray12 = new string[3] { "happy_happy_scandal1", "happy_happy_scandal2", "happy_happy_scandal3" };
- var strArray13 = new string[1] { "can_know_two_close" };
- var strArray14 = new string[3] { "sweetsweeteveryday_short1", "sweetsweeteveryday_short2", "sweetsweeteveryday_short3" };
- var strArray15 = new string[5]
- {
- "bloomingdreaming_short", "kiminiaijodelicious_short", "luminousmoment_short", "nightmagicfire_short",
- "melodyofempire_short"
- };
- var stringList10 = new List<string>(50);
- stringList10.AddRange(bgmArray2);
- var stringList11 = new List<string>();
- for (int index = 18; index < 210; ++index)
- if (index < 100)
- using (AFileBase afileBase5 = GameUty.FileSystem.FileOpen("bgm0" + index + ".ogg"))
- if (afileBase5.IsValid())
- stringList11.Add("bgm0" + index);
- else
- using (AFileBase afileBase6 = GameUty.FileSystem.FileOpen("bgm" + index + ".ogg"))
- if (afileBase6.IsValid())
- stringList11.Add("bgm" + index);
- if (stringList11.Count > 0)
- stringList10.AddRange(stringList11.ToArray());
- stringList10.AddRange(strArray8);
- stringList10.AddRange(strArray9);
- stringList10.AddRange(strArray11);
- stringList10.AddRange(strArray15);
- bgmArray = stringList10.ToArray();
- var strArray16 = new string[2] { "OutletPark:54", "HoneymoonRoom:102" };
- var stringList12 = new List<string>(50 + parArray2.Length);
- stringList12.AddRange(parArray2);
- var enabled_id_list = new HashSet<int>();
- var action3 = (Action<string>)(file_name =>
- {
- file_name += ".nei";
- if (!GameUty.FileSystem.IsExistentFile(file_name))
- return;
- using (AFileBase file = GameUty.FileSystem.FileOpen(file_name))
- {
- using (var csvParser = new CsvParser())
- {
- NDebug.Assert(csvParser.Open(file), file_name + "\nopen failed.");
- for (int cell_y = 1; cell_y < csvParser.max_cell_y; ++cell_y)
- if (csvParser.IsCellToExistData(0, cell_y))
- {
- int cellAsInteger = csvParser.GetCellAsInteger(0, cell_y);
- if (!enabled_id_list.Contains(cellAsInteger))
- enabled_id_list.Add(cellAsInteger);
- }
- }
- }
- });
- action3("desk_item_enabled_id");
- for (int index = 0; index < GameUty.PathList.Count; ++index)
- action3("desk_item_enabled_id_" + GameUty.PathList[index]);
- using (AFileBase file = GameUty.FileSystem.FileOpen("desk_item_detail.nei"))
- {
- using (var csv = new CsvParser())
- {
- NDebug.Assert(csv.Open(file), "desk_item_detail.nei\nopen failed.");
- for (int index = 1; index < csv.max_cell_y; ++index)
- if (csv.IsCellToExistData(0, index))
- {
- int cellAsInteger = csv.GetCellAsInteger(0, index);
- if (enabled_id_list.Contains(cellAsInteger))
- {
- var itemData2 = new ItemData2(csv, index);
- if (itemData2.asset_name != "")
- stringList12.AddRange(new string[1] { itemData2.name + " #" + itemData2.asset_name });
- }
- }
- }
- }
- stringList12.AddRange(parArray3);
- parArray = stringList12.ToArray();
- var stringList13 = new List<string>(50 + doguBArray.Length);
- stringList13.AddRange(doguBArray);
- if (isCM3D2)
- {
- if (isVA)
- stringList13.AddRange(doguB2Array);
- if (isKA)
- stringList13.AddRange(doguB3Array);
- if (isKA2)
- stringList13.AddRange(doguB4Array);
- }
- doguBArray = stringList13.ToArray();
- var stringList14 = new List<string>(100 + itemBArray.Length);
- stringList14.AddRange(itemBArray);
- if (isCM3D2)
- {
- if (isVA)
- stringList14.AddRange(itemB2Array);
- if (isKA)
- stringList14.AddRange(itemB3Array);
- if (isKA2)
- stringList14.AddRange(itemB4Array);
- }
- itemBArray = stringList14.ToArray();
- }
- }
- }
|