ScriptManager.cs 111 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Runtime.CompilerServices;
  5. using System.Text;
  6. using Kasizuki;
  7. using MaidStatus;
  8. using MaidStatus.CsvData;
  9. using MaidStatus.Old;
  10. using PlayerStatus;
  11. using PrivateMaidMode;
  12. using Schedule;
  13. using scoutmode;
  14. using UnityEngine;
  15. using wf;
  16. public class ScriptManager : IDisposable
  17. {
  18. public static bool isGP001Mode
  19. {
  20. get
  21. {
  22. return GameMain.Instance.CMSystem.GetTmpGenericFlag("AddAllOffset_Ignore") != 0;
  23. }
  24. }
  25. public static string ReplaceCharaName(string text)
  26. {
  27. if (string.IsNullOrEmpty(text))
  28. {
  29. return text;
  30. }
  31. string[] array = new string[]
  32. {
  33. "[HF]",
  34. "[HF1]",
  35. "[HF2]",
  36. "[HF3]",
  37. "[HF4]"
  38. };
  39. string[] array2 = new string[]
  40. {
  41. "[HL]",
  42. "[HL1]",
  43. "[HL2]",
  44. "[HL3]",
  45. "[HL4]"
  46. };
  47. string[] array3 = new string[]
  48. {
  49. "[HLF]",
  50. "[HLF1]",
  51. "[HLF2]",
  52. "[HLF3]",
  53. "[HLF4]"
  54. };
  55. for (int i = 0; i < array.Length; i++)
  56. {
  57. for (int j = 0; j < 2; j++)
  58. {
  59. string text2 = (j != 0) ? "[HF]" : "[hf]";
  60. string text3 = (j != 0) ? array[i].ToUpper() : array[i].ToLower();
  61. if (0 <= text.IndexOf(text3))
  62. {
  63. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(i);
  64. if (maid != null)
  65. {
  66. if (text3 != text2)
  67. {
  68. text = text.Replace(text3, text2);
  69. }
  70. text = text.Replace(text2, maid.status.callName);
  71. }
  72. }
  73. text2 = ((j != 0) ? "[HL]" : "[hl]");
  74. text3 = ((j != 0) ? array2[i].ToUpper() : array2[i].ToLower());
  75. if (0 <= text.IndexOf(text3))
  76. {
  77. Maid maid2 = GameMain.Instance.CharacterMgr.GetMaid(i);
  78. if (maid2 != null)
  79. {
  80. if (text3 != text2)
  81. {
  82. text = text.Replace(text3, text2);
  83. }
  84. text = text.Replace(text2, maid2.status.lastName);
  85. }
  86. }
  87. text2 = ((j != 0) ? "[HLF]" : "[hlf]");
  88. text3 = ((j != 0) ? array3[i].ToUpper() : array3[i].ToLower());
  89. if (0 <= text.IndexOf(text3))
  90. {
  91. Maid maid3 = GameMain.Instance.CharacterMgr.GetMaid(i);
  92. if (maid3 != null)
  93. {
  94. if (text3 != text2)
  95. {
  96. text = text.Replace(text3, text2);
  97. }
  98. text = text.Replace(text2, maid3.status.charaName.GetFullName(" "));
  99. }
  100. }
  101. }
  102. }
  103. if (0 <= text.IndexOf("[SF]"))
  104. {
  105. text = text.Replace("[SF]", GameMain.Instance.CharacterMgr.status.playerName);
  106. }
  107. if (0 <= text.IndexOf("[sf]"))
  108. {
  109. text = text.Replace("[sf]", GameMain.Instance.CharacterMgr.status.playerName);
  110. }
  111. return text;
  112. }
  113. public static string ReplaceCharaName(Maid maid, string text)
  114. {
  115. if (text == null)
  116. {
  117. return string.Empty;
  118. }
  119. if (maid == null)
  120. {
  121. maid = GameMain.Instance.CharacterMgr.GetMaid(0);
  122. }
  123. if (maid == null)
  124. {
  125. return text;
  126. }
  127. if (0 <= text.IndexOf("[HF]"))
  128. {
  129. if (maid.status.isFirstNameCall)
  130. {
  131. text = text.Replace("[HF]", maid.status.firstName);
  132. }
  133. else
  134. {
  135. text = text.Replace("[HF]", maid.status.lastName);
  136. }
  137. }
  138. if (0 <= text.IndexOf("[HL]"))
  139. {
  140. text = text.Replace("[HL]", maid.status.lastName);
  141. }
  142. if (0 <= text.IndexOf("[SF]"))
  143. {
  144. text = text.Replace("[SF]", GameMain.Instance.CharacterMgr.status.playerName);
  145. }
  146. return text;
  147. }
  148. public static string ReplacePersonal(Maid maid, string text)
  149. {
  150. return ScriptManager.ReplacePersonal(new Maid[]
  151. {
  152. maid
  153. }, text);
  154. }
  155. public static string ReplacePersonal(Maid[] maid_array, string text)
  156. {
  157. if (string.IsNullOrEmpty(text))
  158. {
  159. return string.Empty;
  160. }
  161. Maid maid = null;
  162. string oldValue = string.Empty;
  163. if (0 <= text.IndexOf("?4"))
  164. {
  165. maid = maid_array[4];
  166. oldValue = "?4";
  167. }
  168. else if (0 <= text.IndexOf("?3"))
  169. {
  170. maid = maid_array[3];
  171. oldValue = "?3";
  172. }
  173. else if (0 <= text.IndexOf("?2"))
  174. {
  175. maid = maid_array[2];
  176. oldValue = "?2";
  177. }
  178. else if (0 <= text.IndexOf("?1"))
  179. {
  180. maid = maid_array[1];
  181. oldValue = "?1";
  182. }
  183. else if (0 <= text.IndexOf("?0"))
  184. {
  185. maid = maid_array[0];
  186. oldValue = "?0";
  187. }
  188. else if (0 <= text.IndexOf("?"))
  189. {
  190. maid = maid_array[0];
  191. oldValue = "?";
  192. }
  193. if (maid == null)
  194. {
  195. return text;
  196. }
  197. if (maid.status.subCharaData == null)
  198. {
  199. text = text.Replace(oldValue, maid.status.personal.replaceText);
  200. }
  201. else
  202. {
  203. text = text.Replace(oldValue, maid.status.subCharaData.replaceText);
  204. }
  205. return text;
  206. }
  207. public void Initialize()
  208. {
  209. this.is_motion_blend = true;
  210. GameObject gameObject = GameObject.Find("SystemUI Root/Manager_SystemUI/MessageWindowMgr");
  211. NDebug.Assert(gameObject != null, "MessageWindowMgrが見つかりません");
  212. this.message_mgr_ = gameObject.GetComponent<MessageWindowMgr>();
  213. NDebug.Assert(this.message_mgr_ != null, "コンポーネント:MessageWindowMgrが見つかりません");
  214. this.tjs_ = TJSScript.Create(this.file_system);
  215. this.tjs_.AddFunction("GetMaidMPN", new TJSScript.FunctionCallBack(this.TJSFuncGetMaidMPN));
  216. this.tjs_.AddFunction("GetMenuFileNameFromMaidMPN", new TJSScript.FunctionCallBack(this.TJSFuncGetMenuFileNameFromMaidMPN));
  217. this.tjs_.AddFunction("IsEquipTatoo", new TJSScript.FunctionCallBack(this.TJSFuncIsEquipTatoo));
  218. this.tjs_.AddFunction("SetMaidFlag", new TJSScript.FunctionCallBack(this.TJSFuncSetMaidFlag));
  219. this.tjs_.AddFunction("SetManFlag", new TJSScript.FunctionCallBack(this.TJSFuncSetManFlag));
  220. this.tjs_.AddFunction("SetTmpFlag", new TJSScript.FunctionCallBack(this.TJSFuncSetTmpFlag));
  221. this.tjs_.AddFunction("GetMaidFlag", new TJSScript.FunctionCallBack(this.TJSFuncGetMaidFlag));
  222. this.tjs_.AddFunction("GetManFlag", new TJSScript.FunctionCallBack(this.TJSFuncGetManFlag));
  223. this.tjs_.AddFunction("GetTmpFlag", new TJSScript.FunctionCallBack(this.TJSFuncGetTmpFlag));
  224. this.tjs_.AddFunction("SetSystemFlag", new TJSScript.FunctionCallBack(this.TJSFuncSetSystemFlag));
  225. this.tjs_.AddFunction("GetSystemFlag", new TJSScript.FunctionCallBack(this.TJSFuncGetSystemFlag));
  226. this.tjs_.AddFunction("GetMaidStatus", new TJSScript.FunctionCallBack(this.TJSFuncGetMaidStatus));
  227. this.tjs_.AddFunction("SetMainCharaFlag", new TJSScript.FunctionCallBack(this.TJSFuncSetMainCharaFlag));
  228. this.tjs_.AddFunction("IsSeikantai", new TJSScript.FunctionCallBack(this.OldTJSFuncConIsSeikantai));
  229. this.tjs_.AddFunction("CreateNewMaid", new TJSScript.FunctionCallBack(this.TJSFuncCreateNewMaid));
  230. this.tjs_.AddFunction("PresetLoad", new TJSScript.FunctionCallBack(this.TJSFuncPresetLoad));
  231. this.tjs_.AddFunction("PresetLoadNPC", new TJSScript.FunctionCallBack(this.TJSFuncPresetLoadNPC));
  232. this.tjs_.AddFunction("AddMaidStatus", new TJSScript.FunctionCallBack(this.TJSFuncAddMaidStatus));
  233. this.tjs_.AddFunction("IsMaidFeature", new TJSScript.FunctionCallBack(this.TJSFuncIsMaidFeature));
  234. this.tjs_.AddFunction("IsMaidPropensity", new TJSScript.FunctionCallBack(this.TJSFuncIsMaidPropensity));
  235. this.tjs_.AddFunction("GetYotogiSkillLevel", new TJSScript.FunctionCallBack(this.TJSFuncGetYotogiSkillLevel));
  236. this.tjs_.AddFunction("IsYotogiSkill", new TJSScript.FunctionCallBack(this.TJSFuncIsYotogiSkill));
  237. this.tjs_.AddFunction("GetStockMaidCount", new TJSScript.FunctionCallBack(this.TJSFuncGetStockMaidCount));
  238. this.tjs_.AddFunction("SetSalonGrade", new TJSScript.FunctionCallBack(this.TJSFuncSetSalonGrade));
  239. this.tjs_.AddFunction("GetSalonGrade", new TJSScript.FunctionCallBack(this.TJSFuncGetSalonGrade));
  240. this.tjs_.AddFunction("GetClubEvaluation", new TJSScript.FunctionCallBack(this.TJSFuncGetClubEvaluation));
  241. this.tjs_.AddFunction("SetClubGauge", new TJSScript.FunctionCallBack(this.TJSFuncSetClubGauge));
  242. this.tjs_.AddFunction("GetClubGauge", new TJSScript.FunctionCallBack(this.TJSFuncGetClubGauge));
  243. this.tjs_.AddFunction("GetBGName", new TJSScript.FunctionCallBack(this.TJSFuncGetBGName));
  244. this.tjs_.AddFunction("IsItemParam", new TJSScript.FunctionCallBack(this.TJSFuncIsItemParam));
  245. this.tjs_.AddFunction("IsItemSlot", new TJSScript.FunctionCallBack(this.TJSFuncIsItemSlot));
  246. this.tjs_.AddFunction("IsMaidClass", new TJSScript.FunctionCallBack(this.OldTJSFuncIsMaidClass));
  247. this.tjs_.AddFunction("GetMaidClassLevel", new TJSScript.FunctionCallBack(this.OldTJSFuncGetMaidClassLevel));
  248. this.tjs_.AddFunction("IsJobMaid", new TJSScript.FunctionCallBack(this.TJSFuncIsJobMaid));
  249. this.tjs_.AddFunction("GetJobMaidLevel", new TJSScript.FunctionCallBack(this.TJSFuncGetJobMaidLevel));
  250. this.tjs_.AddFunction("IsYotogiClass", new TJSScript.FunctionCallBack(this.TJSFuncIsYotogiClass));
  251. this.tjs_.AddFunction("GetYotogiClassLevel", new TJSScript.FunctionCallBack(this.TJSFuncGetYotogiClassLevel));
  252. this.tjs_.AddFunction("GetNoonScuccessLevel", new TJSScript.FunctionCallBack(this.TJSFuncGetNoonScuccessLevel));
  253. this.tjs_.AddFunction("IsMaid", new TJSScript.FunctionCallBack(this.TJSFuncIsMaid));
  254. this.tjs_.AddFunction("IsOldPersonal", new TJSScript.FunctionCallBack(this.TJSFuncIsOldPersonal));
  255. this.tjs_.AddFunction("GetSalonLoan", new TJSScript.FunctionCallBack(this.TJSFuncConGetSalonLoan));
  256. this.tjs_.AddFunction("GetPhase", new TJSScript.FunctionCallBack(this.TJSFuncConGetPhase));
  257. this.tjs_.AddFunction("GetDay", new TJSScript.FunctionCallBack(this.TJSFuncGetDay));
  258. this.tjs_.AddFunction("CreateStockMaidLoopData", new TJSScript.FunctionCallBack(this.TJSFuncCreateStockMaidLoopData));
  259. this.tjs_.AddFunction("CreateCompetitiveShowLoopData", new TJSScript.FunctionCallBack(this.TJSFuncCreateCompetitiveShowLoopData));
  260. this.tjs_.AddFunction("GetCompetitiveShowLoopCount", new TJSScript.FunctionCallBack(this.TJSFuncGetCompetitiveShowLoopCount));
  261. this.tjs_.AddFunction("SetActiveSlotFromStockMaidLoopData", new TJSScript.FunctionCallBack(this.TJSFuncSetActiveSlotFromStockMaidLoopData));
  262. this.tjs_.AddFunction("SetMaidCondition", new TJSScript.FunctionCallBack(this.TJSFuncSetMaidCondition));
  263. this.tjs_.AddFunction("SetSeikeikenFront", new TJSScript.FunctionCallBack(this.TJSFuncSetSeikeikenFront));
  264. this.tjs_.AddFunction("SetSeikeikenBack", new TJSScript.FunctionCallBack(this.TJSFuncSetSeikeikenBack));
  265. this.tjs_.AddFunction("SetInitSeikeiken", new TJSScript.FunctionCallBack(this.TJSFuncSetInitSeikeiken));
  266. this.tjs_.AddFunction("SetNewItem", new TJSScript.FunctionCallBack(this.TJSFuncSetNewItem));
  267. this.tjs_.AddFunction("IsGameInShopItemPurchased", new TJSScript.FunctionCallBack(this.TJSFuncIsGameInShopItemPurchased));
  268. this.tjs_.AddFunction("SetContractType", new TJSScript.FunctionCallBack(this.TJSFuncSetContractType));
  269. this.tjs_.AddFunction("SetFeature", new TJSScript.FunctionCallBack(this.TJSFuncSetFeature));
  270. this.tjs_.AddFunction("SetPropensity", new TJSScript.FunctionCallBack(this.TJSFuncSetPropensity));
  271. this.tjs_.AddFunction("SetSexualParam", new TJSScript.FunctionCallBack(this.TJSFuncComSetSexualParam));
  272. this.tjs_.AddFunction("SetNewTrophy", new TJSScript.FunctionCallBack(this.TJSFuncSetNewTrophy));
  273. this.tjs_.AddFunction("CheckTrophyContractType", new TJSScript.FunctionCallBack(this.TJSFuncCheckTrophyContractType));
  274. this.tjs_.AddFunction("SetYotogiSelectStageName", new TJSScript.FunctionCallBack(this.TJSFuncSetYotogiSelectStageName));
  275. this.tjs_.AddFunction("GetYotogiSelectStageName", new TJSScript.FunctionCallBack(this.TJSFuncGetYotogiSelectStageName));
  276. this.tjs_.AddFunction("ClearCallStack", new TJSScript.FunctionCallBack(this.TJSFuncClearCallStack));
  277. this.tjs_.AddFunction("IsCommunicationChara", new TJSScript.FunctionCallBack(this.OldTJSFuncIsCommunicationChara));
  278. this.tjs_.AddFunction("SetCommunicationChara", new TJSScript.FunctionCallBack(this.TJSFuncSetCommunicationChara));
  279. this.tjs_.AddFunction("SetRandomCommuChara", new TJSScript.FunctionCallBack(this.TJSFuncSetRandomCommuChara));
  280. this.tjs_.AddFunction("CreateYotogiCharaList", new TJSScript.FunctionCallBack(this.TJSFuncCreateYotogiCharaList));
  281. this.tjs_.AddFunction("CreateNewYotogiCharaList", new TJSScript.FunctionCallBack(this.TJSFuncCreateNewYotogiCharaList));
  282. this.tjs_.AddFunction("CreateNewYotogiHaremPairCharaList", new TJSScript.FunctionCallBack(this.TJSFuncCreateNewYotogiHaremPairCharaList));
  283. this.tjs_.AddFunction("CreateVipCharaList", new TJSScript.FunctionCallBack(this.TJSFuncCreateVipCharaList));
  284. this.tjs_.AddFunction("CreateFacilityCharaList", new TJSScript.FunctionCallBack(this.TJSFuncCreateFacilityCharaList));
  285. this.tjs_.AddFunction("CreateLifeModeCharaList", new TJSScript.FunctionCallBack(this.TJSFuncCreateLifeModeCharaList));
  286. this.tjs_.AddFunction("BackupStoreCharaList", new TJSScript.FunctionCallBack(this.TJSFuncBackupStoreCharaList));
  287. this.tjs_.AddFunction("BackupReStoreCharaList", new TJSScript.FunctionCallBack(this.TJSFuncBackupReStoreCharaList));
  288. this.tjs_.AddFunction("IsReceptionChara", new TJSScript.FunctionCallBack(this.TJSFuncIsReceptionChara));
  289. this.tjs_.AddFunction("SetRandomReceptionChara", new TJSScript.FunctionCallBack(this.TJSFuncSetRandomReceptionChara));
  290. this.tjs_.AddFunction("IsSelectChara", new TJSScript.FunctionCallBack(this.TJSFuncIsSelectChara));
  291. this.tjs_.AddFunction("GetDateYear", new TJSScript.FunctionCallBack(this.TJSFuncGetDateYear));
  292. this.tjs_.AddFunction("GetDateMonth", new TJSScript.FunctionCallBack(this.TJSFuncGetDateMonth));
  293. this.tjs_.AddFunction("GetDateDay", new TJSScript.FunctionCallBack(this.TJSFuncGetDateDay));
  294. this.tjs_.AddFunction("UpdateMaidRanking", new TJSScript.FunctionCallBack(this.TJSFuncUpdateMaidRanking));
  295. this.tjs_.AddFunction("ResetMaidRanking", new TJSScript.FunctionCallBack(this.TJSFuncResetMaidRanking));
  296. this.tjs_.AddFunction("SetMaidRanking1st", new TJSScript.FunctionCallBack(this.TJSFuncSetMaidRanking1st));
  297. this.tjs_.AddFunction("IsAvailableRanking", new TJSScript.FunctionCallBack(this.TJSFuncIsAvailableRanking));
  298. this.tjs_.AddFunction("IsMVPEvent", new TJSScript.FunctionCallBack(this.TJSFuncIsMVPEvent));
  299. this.tjs_.AddFunction("IsYotogiSubCharaSelect", new TJSScript.FunctionCallBack(this.TJSFuncIsYotogiSubCharaSelect));
  300. this.tjs_.AddFunction("GetYotogiSkillSpecialType", new TJSScript.FunctionCallBack(this.TJSFuncGetYotogiSkillSpecialType));
  301. this.tjs_.AddFunction("IsSelectedYotogiSkill", new TJSScript.FunctionCallBack(this.TJSFuncIsSelectedYotogiSkill));
  302. this.tjs_.AddFunction("LearningYotogiSkill", new TJSScript.FunctionCallBack(this.TJSFuncLearningYotogiSkill));
  303. this.tjs_.AddFunction("IsExistentFile", new TJSScript.FunctionCallBack(this.TJSFuncIsExistentFile));
  304. this.tjs_.AddFunction("IsExistentFileLegacy", new TJSScript.FunctionCallBack(this.TJSFuncIsExistentFileLegacy));
  305. this.tjs_.AddFunction("CheckClearVIP", new TJSScript.FunctionCallBack(this.TJSFuncCheckClearVIP));
  306. this.tjs_.AddFunction("IsCBLVersion", new TJSScript.FunctionCallBack(this.TJSFuncIsCBLVersion));
  307. this.tjs_.AddFunction("GetRentalNPCName", new TJSScript.FunctionCallBack(this.OldTJSFuncGetRentalNPCName));
  308. this.tjs_.AddFunction("IsMarriage", new TJSScript.FunctionCallBack(this.OldTJSFuncIsMarriage));
  309. this.tjs_.AddFunction("IsNewWifeFlag", new TJSScript.FunctionCallBack(this.OldTJSFuncIsNewWifeFlag));
  310. this.tjs_.AddFunction("IsPluginPack", new TJSScript.FunctionCallBack(this.TJSFuncIsPluginPack));
  311. this.tjs_.AddFunction("AddShopLineup", new TJSScript.FunctionCallBack(this.TJSFuncAddShopLineup));
  312. this.tjs_.AddFunction("SetEventItemFlag", new TJSScript.FunctionCallBack(this.TJSFuncSetEventItemFlag));
  313. this.tjs_.AddFunction("IsEventItemFlag", new TJSScript.FunctionCallBack(this.TJSFuncIsEventItemFlag));
  314. this.tjs_.AddFunction("GetVRMode", new TJSScript.FunctionCallBack(this.TJSFuncGetVRMode));
  315. this.tjs_.AddFunction("IsVRMode", new TJSScript.FunctionCallBack(this.TJSFuncIsVRMode));
  316. this.tjs_.AddFunction("SetDanceData", new TJSScript.FunctionCallBack(this.TJSFuncSetDanceData));
  317. this.tjs_.AddFunction("GetEventAdded", new TJSScript.FunctionCallBack(this.TJSFuncGetEventAdded));
  318. this.tjs_.AddFunction("GetLockNTRPlayFlag", new TJSScript.FunctionCallBack(this.TJSFuncGetLockNTRPlayFlag));
  319. this.tjs_.AddFunction("GetLockUserDraftMaid", new TJSScript.FunctionCallBack(this.TJSFuncGetLockUserDraftMaid));
  320. this.tjs_.AddFunction("IsComPlayer", new TJSScript.FunctionCallBack(this.TJSFuncIsComPlayer));
  321. this.tjs_.AddFunction("SetPlayerMoney", new TJSScript.FunctionCallBack(this.TJSFuncSetPlayerMoney));
  322. this.tjs_.AddFunction("GetPlayerMoney", new TJSScript.FunctionCallBack(this.TJSFuncGetPlayerMoney));
  323. this.tjs_.AddFunction("SetMaidLeader", new TJSScript.FunctionCallBack(this.TJSFuncSetMaidLeader));
  324. this.tjs_.AddFunction("SetMaidCostumeFacility", new TJSScript.FunctionCallBack(this.TJSFuncSetMaidCostumeFacility));
  325. this.tjs_.AddFunction("ResetMaidCostumeFacility", new TJSScript.FunctionCallBack(this.TJSFuncResetMaidCostumeFacility));
  326. this.tjs_.AddFunction("CallTitleBar", new TJSScript.FunctionCallBack(this.TJSFuncCallTitleBar));
  327. this.tjs_.AddFunction("SetCompatibilityMode", new TJSScript.FunctionCallBack(this.TJSFuncSetCompatibilityMode));
  328. this.tjs.AddFunction("IsBuildingFacility", new TJSScript.FunctionCallBack(this.TJSFuncIsBuildingFacility));
  329. this.tjs.AddFunction("IsBuildingFacilityUpward", new TJSScript.FunctionCallBack(this.TJSFuncIsBuildingFacilityUpward));
  330. this.tjs.AddFunction("CheckDanceType", new TJSScript.FunctionCallBack(this.TJSCheckDanceType));
  331. this.tjs.AddFunction("SetMusicRelease", new TJSScript.FunctionCallBack(this.TJSSetMusicRelease));
  332. this.tjs.AddFunction("GetChallengeRank", new TJSScript.FunctionCallBack(this.TJSGetChallengeRank));
  333. this.tjs.AddFunction("SetVsSetting", new TJSScript.FunctionCallBack(this.TJSSetVsSetting));
  334. this.tjs.AddFunction("NeedDanceResult", new TJSScript.FunctionCallBack(this.TJSNeedDanceResult));
  335. this.tjs.AddFunction("BjDayFirst", new TJSScript.FunctionCallBack(this.TJSBjDayFirst));
  336. this.tjs.AddFunction("CasinoShopBuy", new TJSScript.FunctionCallBack(this.TJSCasinoShopBuy));
  337. this.tjs.AddFunction("SetEventEndFlag", new TJSScript.FunctionCallBack(this.TJSSetEventEndFlag));
  338. this.tjs_.AddFunction("IsKasizukiGuest", new TJSScript.FunctionCallBack(this.TJSFuncIsKasizukiGuest));
  339. this.tjs_.AddFunction("GetKasizukiSelectRoomName", new TJSScript.FunctionCallBack(this.TJSFuncGetKasizukiSelectRoomName));
  340. this.tjs_.AddFunction("GetKasizukiMaidLikability", new TJSScript.FunctionCallBack(this.TJSFuncGetKasizukiMaidLikability));
  341. this.tjs_.AddFunction("GetKasizukiMaidLikabilityName", new TJSScript.FunctionCallBack(this.TJSFuncGetKasizukiMaidLikabilityName));
  342. this.tjs_.AddFunction("GetKasizukiMaidWorkCount", new TJSScript.FunctionCallBack(this.TJSFuncGetKasizukiMaidWorkCount));
  343. this.tjs_.AddFunction("GetKasizukiMaidWorkCountName", new TJSScript.FunctionCallBack(this.TJSFuncGetKasizukiMaidWorkCountName));
  344. this.tjs_.AddFunction("GetKasizukiSystemFlag", new TJSScript.FunctionCallBack(this.TJSFuncGetKasizukiSystemFlag));
  345. this.tjs_.AddFunction("SetKasizukiSystemFlag", new TJSScript.FunctionCallBack(this.TJSFuncSetKasizukiSystemFlag));
  346. this.tjs_.AddFunction("AddKasizukiSystemFlag", new TJSScript.FunctionCallBack(this.TJSFuncAddKasizukiSystemFlag));
  347. this.tjs_.AddFunction("SetKasizukiPassFlag", new TJSScript.FunctionCallBack(this.TJSFuncSetKasizukiPassFlag));
  348. this.tjs_.AddFunction("GetKasizukiMaidFlag", new TJSScript.FunctionCallBack(this.TJSFuncGetKasizukiMaidFlag));
  349. this.tjs_.AddFunction("SetKasizukiMaidFlag", new TJSScript.FunctionCallBack(this.TJSFuncSetKasizukiMaidFlag));
  350. this.tjs_.AddFunction("IsKasizukiCorrectSenarioFlag", new TJSScript.FunctionCallBack(this.TJSFuncIsKasizukiCorrectSenarioFlag));
  351. this.tjs_.AddFunction("GetKasizukiGuestID", new TJSScript.FunctionCallBack(this.TJSFuncGetKasizukiGuestID));
  352. this.tjs_.AddFunction("IsVRKaraokeMode", new TJSScript.FunctionCallBack(this.TJSFuncIsVRKaraokeMode));
  353. this.tjs_.AddFunction("GetRemainingDanceTime", new TJSScript.FunctionCallBack(this.TJSFuncGetRemainingDanceTime));
  354. this.tjs_.AddFunction("GetYotogiCommandClickCount", new TJSScript.FunctionCallBack(this.TJSFuncGetYotogiCommandClickCount));
  355. this.tjs_.AddFunction("SetYotogiStage", new TJSScript.FunctionCallBack(this.TJSFuncSetYotogiStage));
  356. this.tjs_.AddFunction("GetGameMode", new TJSScript.FunctionCallBack(this.TJSFuncGetGameMode));
  357. this.tjs_.AddFunction("IsLifeMode", new TJSScript.FunctionCallBack(this.TJSFuncIsLifeMode));
  358. this.tjs_.AddFunction("IsPrivateModeMaid", new TJSScript.FunctionCallBack(this.TJSFuncIsPrivateModeMaid));
  359. this.tjs_.AddFunction("IsPrivateModeDayTalkEnabled", new TJSScript.FunctionCallBack(this.TJSFuncIsPrivateModeDayTalkEnabled));
  360. this.tjs_.AddFunction("IsPrivateModeNightTalkEnabled", new TJSScript.FunctionCallBack(this.TJSFuncIsPrivateModeNightTalkEnabled));
  361. this.tjs_.AddFunction("IsPrivateModeHEventEnabled", new TJSScript.FunctionCallBack(this.TJSFuncIsPrivateModeHEventEnabled));
  362. this.tjs_.AddFunction("SetPrivateModeMaid", new TJSScript.FunctionCallBack(this.TJSFuncSetPrivateModeMaid));
  363. this.tjs_.AddFunction("SetLockNTRPlay", new TJSScript.FunctionCallBack(this.TJSFuncSetLockNTRPlay));
  364. this.tjs_.AddFunction("IsEnabeldAdditionalRelation", new TJSScript.FunctionCallBack(this.TJSFuncIsEnabeldAdditionalRelation));
  365. this.tjs_.AddFunction("HireScoutMaid", new TJSScript.FunctionCallBack(this.TJSFuncHireScoutMaid));
  366. this.tjs_.AddFunction("SuspendedScout", new TJSScript.FunctionCallBack(this.TJSFuncSuspendedScout));
  367. this.tjs_.AddFunction("CancelScout", new TJSScript.FunctionCallBack(this.TJSFuncCancelScout));
  368. this.tjs_.AddFunction("IsCRCBody", new TJSScript.FunctionCallBack(this.TJSFuncIsCRCBody));
  369. MotionKagManager motionKagManager = new MotionKagManager(this.tjs_, this);
  370. motionKagManager.Initialize();
  371. motionKagManager.SetSloatNo(0);
  372. this.kag_mot_dic_.Add(0, motionKagManager);
  373. this.adv_kag_ = new ADVKagManager(this.tjs_, this, this.message_mgr_);
  374. this.adv_kag_.Initialize();
  375. this.adv_kag_.kag.SetOnReturnFunction(new KagScript.OnReturnCallBack(this.OnReturnEvent));
  376. this.adv_kag_.kag.SetOnRReturnFunction(new KagScript.OnScenarioLoadCallBack(this.OnRReturnEvent));
  377. this.yotogi_kag_ = new YotogiKagManager(this.tjs_, this);
  378. this.yotogi_kag_.Initialize();
  379. this.privatemode_touch_kag = new PrivateMaidTouchKagManager(this.tjs_, this);
  380. this.privatemode_touch_kag.Initialize();
  381. this.tmp_kag_ = new BaseKagManager(this.tjs_, this);
  382. this.tmp_kag_.Initialize();
  383. using (AFileBase afileBase = this.file_system.FileOpen("startup.tjs"))
  384. {
  385. this.tjs_.ExecScript(afileBase);
  386. }
  387. }
  388. ~ScriptManager()
  389. {
  390. this.Dispose(false);
  391. }
  392. public void ClearCallStack()
  393. {
  394. foreach (KeyValuePair<int, MotionKagManager> keyValuePair in this.kag_mot_dic_)
  395. {
  396. keyValuePair.Value.kag.ClearCallStack();
  397. }
  398. this.adv_kag_.kag.ClearCallStack();
  399. this.yotogi_kag_.kag.ClearCallStack();
  400. this.privatemode_touch_kag.kag.ClearCallStack();
  401. this.tmp_kag_.kag.ClearCallStack();
  402. }
  403. public void Update()
  404. {
  405. foreach (KeyValuePair<int, MotionKagManager> keyValuePair in this.kag_mot_dic_)
  406. {
  407. keyValuePair.Value.Update();
  408. }
  409. this.adv_kag_.Update();
  410. this.yotogi_kag_.Update();
  411. this.privatemode_touch_kag.Update();
  412. this.tmp_kag_.Update();
  413. }
  414. public void ExecScript(string exec_str, ref TJSVariant result)
  415. {
  416. this.tjs_.ExecScript(exec_str, ref result);
  417. }
  418. public void ExecScript(string exec_str)
  419. {
  420. this.tjs_.ExecScript(exec_str);
  421. }
  422. public void ExecScriptFile(string file_name, ref TJSVariant result)
  423. {
  424. using (AFileBase afileBase = this.file_system.FileOpen(file_name))
  425. {
  426. NDebug.Assert(afileBase.IsValid(), "not found file.\n" + file_name);
  427. this.tjs_.ExecScript(afileBase, ref result);
  428. }
  429. }
  430. public void ExecScriptFile(string file_name)
  431. {
  432. using (AFileBase afileBase = this.file_system.FileOpen(file_name))
  433. {
  434. NDebug.Assert(afileBase.IsValid(), "not found file.\n" + file_name);
  435. this.tjs_.ExecScript(afileBase);
  436. }
  437. }
  438. public void EvalScript(string eval_str, TJSVariant result)
  439. {
  440. this.tjs_.EvalScript(eval_str, result);
  441. }
  442. public void EvalScript(string eval_str)
  443. {
  444. this.tjs_.EvalScript(eval_str);
  445. }
  446. public void EvalScriptFile(string file_name, TJSVariant result)
  447. {
  448. using (AFileBase afileBase = this.file_system.FileOpen(file_name))
  449. {
  450. NDebug.Assert(afileBase.IsValid(), "not found file.\n" + file_name);
  451. this.tjs_.EvalScript(afileBase, result);
  452. }
  453. }
  454. public void EvalScriptFile(string file_name)
  455. {
  456. using (AFileBase afileBase = this.file_system.FileOpen(file_name))
  457. {
  458. NDebug.Assert(afileBase.IsValid(), "not found file.\n" + file_name);
  459. this.tjs_.EvalScript(afileBase);
  460. }
  461. }
  462. public void LoadAdvScenarioScript(string file_name, string label_name = "")
  463. {
  464. this.adv_kag_.enabled = true;
  465. this.adv_kag_.LoadScriptFile(file_name, label_name);
  466. }
  467. public void LoadYotogiScript(string file_name, string label_name = "")
  468. {
  469. this.yotogi_kag_.enabled = true;
  470. this.yotogi_kag_.LoadScriptFile(file_name, string.Empty);
  471. this.yotogi_kag_.Exec();
  472. }
  473. public void LoadTempScript(string file_name, string label_name = "")
  474. {
  475. this.tmp_kag_.enabled = true;
  476. this.tmp_kag_.LoadScriptFile(file_name, label_name);
  477. }
  478. public void LoadMotionScript(int sloat, bool is_next, string file_name, string label_name = "", string maid_guid = "", string man_guid = "", bool face_fix = false, bool valid_pos = true, bool disable_diff_pos = false)
  479. {
  480. if (!string.IsNullOrEmpty(maid_guid))
  481. {
  482. Maid x = null;
  483. for (int i = 0; i < GameMain.Instance.CharacterMgr.GetMaidCount(); i++)
  484. {
  485. Maid maid3 = GameMain.Instance.CharacterMgr.GetMaid(i);
  486. if (maid3 != null && maid3.status.guid == maid_guid)
  487. {
  488. x = maid3;
  489. break;
  490. }
  491. }
  492. if (x == null)
  493. {
  494. return;
  495. }
  496. }
  497. if (!string.IsNullOrEmpty(man_guid))
  498. {
  499. Maid x2 = null;
  500. for (int j = 0; j < GameMain.Instance.CharacterMgr.GetManCount(); j++)
  501. {
  502. Maid man = GameMain.Instance.CharacterMgr.GetMan(j);
  503. if (man != null && man.status.guid == man_guid)
  504. {
  505. x2 = man;
  506. break;
  507. }
  508. }
  509. if (x2 == null)
  510. {
  511. return;
  512. }
  513. }
  514. this.is_motion_all_prop_seq = false;
  515. this.motion_all_prop_seq_maid = null;
  516. MotionKagManager motionKagManager2;
  517. if (!this.kag_mot_dic_.ContainsKey(sloat))
  518. {
  519. MotionKagManager motionKagManager = new MotionKagManager(this.tjs_, this);
  520. motionKagManager.Initialize();
  521. motionKagManager.SetSloatNo(sloat);
  522. motionKagManager.kag.SetFileSystem(this.file_system);
  523. this.kag_mot_dic_.Add(sloat, motionKagManager);
  524. motionKagManager2 = motionKagManager;
  525. }
  526. else
  527. {
  528. motionKagManager2 = this.kag_mot_dic_[sloat];
  529. }
  530. Maid mainMaid = motionKagManager2.SetMainMaid(maid_guid);
  531. Maid maid2 = motionKagManager2.SetMainMan(man_guid);
  532. if (mainMaid == null && maid2 != null)
  533. {
  534. mainMaid = maid2;
  535. }
  536. motionKagManager2.valid_pos = valid_pos;
  537. motionKagManager2.enabled = true;
  538. motionKagManager2.ExecForcWaitEvent();
  539. motionKagManager2.LoadScriptFile(file_name, label_name);
  540. motionKagManager2.SetNextMotion(is_next);
  541. motionKagManager2.SetFaceFix(face_fix);
  542. Vector3 b = Vector3.zero;
  543. if (mainMaid != null)
  544. {
  545. b = mainMaid.transform.position;
  546. }
  547. motionKagManager2.Exec();
  548. if (!ScriptManager.isGP001Mode && !disable_diff_pos && mainMaid != null && motionKagManager2.maidOffsetSetList.Find((Maid maid) => maid == mainMaid) != null)
  549. {
  550. Vector3 b2 = mainMaid.transform.position - b;
  551. Quaternion rotation = mainMaid.transform.rotation;
  552. for (int k = 0; k < motionKagManager2.maidOffsetSetList.Count; k++)
  553. {
  554. motionKagManager2.maidOffsetSetList[k].transform.rotation = rotation;
  555. motionKagManager2.maidOffsetSetList[k].transform.position -= b2;
  556. }
  557. }
  558. }
  559. public void StopMotionScript()
  560. {
  561. this.ClearForcExecWaitEvent();
  562. foreach (KeyValuePair<int, MotionKagManager> keyValuePair in this.kag_mot_dic_)
  563. {
  564. keyValuePair.Value.ClearMotion();
  565. keyValuePair.Value.enabled = false;
  566. }
  567. }
  568. public void ClearForcExecWaitEvent()
  569. {
  570. foreach (KeyValuePair<int, MotionKagManager> keyValuePair in this.kag_mot_dic_)
  571. {
  572. keyValuePair.Value.ClearForcExecWaitEvent();
  573. }
  574. }
  575. private void TJSFuncGetMaidMPN(TJSVariantRef[] param, TJSVariantRef result)
  576. {
  577. NDebug.Assert(2 == param.Length, "GetMaidMPN args count error.");
  578. if (result == null)
  579. {
  580. return;
  581. }
  582. TJSVariantRef.Type[] array = new TJSVariantRef.Type[]
  583. {
  584. TJSVariantRef.Type.tvtInteger,
  585. TJSVariantRef.Type.tvtString
  586. };
  587. for (int i = 0; i < param.Length; i++)
  588. {
  589. NDebug.Assert(param[i].type == array[i], "TJSFuncGetMaidProp args[" + i + "] type error.");
  590. }
  591. int nMaidNo = param[0].AsInteger();
  592. string text = param[1].AsString();
  593. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  594. MPN mpn = (MPN)Enum.Parse(typeof(MPN), text);
  595. MaidProp prop = maid.GetProp(mpn);
  596. NDebug.Assert(prop != null, "[" + text + "] 指定MPNが不正です。");
  597. if (prop.type == 3)
  598. {
  599. result.SetString(prop.name);
  600. }
  601. else
  602. {
  603. result.SetInteger(prop.value);
  604. }
  605. }
  606. private void TJSFuncGetMenuFileNameFromMaidMPN(TJSVariantRef[] param, TJSVariantRef result)
  607. {
  608. NDebug.Assert(2 == param.Length, "GetMenuFileNameFromMaidMPN args count error.");
  609. if (result == null)
  610. {
  611. return;
  612. }
  613. TJSVariantRef.Type[] array = new TJSVariantRef.Type[]
  614. {
  615. TJSVariantRef.Type.tvtInteger,
  616. TJSVariantRef.Type.tvtString
  617. };
  618. for (int i = 0; i < param.Length; i++)
  619. {
  620. NDebug.Assert(param[i].type == array[i], "TJSFuncGetMaidProp args[" + i + "] type error.");
  621. }
  622. int nMaidNo = param[0].AsInteger();
  623. string text = param[1].AsString();
  624. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  625. MPN mpn = (MPN)Enum.Parse(typeof(MPN), text);
  626. MaidProp prop = maid.GetProp(mpn);
  627. NDebug.Assert(prop != null, "[" + text + "] 指定MPNが不正です。");
  628. if (prop.type == 3)
  629. {
  630. result.SetString(prop.strFileName.ToLower());
  631. }
  632. else
  633. {
  634. result.SetString(string.Empty);
  635. }
  636. }
  637. private void TJSFuncIsEquipTatoo(TJSVariantRef[] param, TJSVariantRef result)
  638. {
  639. NDebug.Assert(1 == param.Length, "IsEquipTatoo args count error.");
  640. if (result == null)
  641. {
  642. return;
  643. }
  644. TJSVariantRef.Type[] array = new TJSVariantRef.Type[]
  645. {
  646. TJSVariantRef.Type.tvtInteger
  647. };
  648. for (int i = 0; i < param.Length; i++)
  649. {
  650. NDebug.Assert(param[i].type == array[i], "TJSFuncGetMaidProp args[" + i + "] type error.");
  651. }
  652. int nMaidNo = param[0].AsInteger();
  653. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  654. MaidProp prop = maid.GetProp(MPN.acctatoo);
  655. result.SetBool(false);
  656. if (prop != null && prop.listSubProp != null)
  657. {
  658. foreach (SubProp subProp in prop.listSubProp)
  659. {
  660. if (subProp != null && !string.IsNullOrEmpty(subProp.strFileName))
  661. {
  662. result.SetBool(true);
  663. break;
  664. }
  665. }
  666. }
  667. }
  668. private void TJSFuncSetMaidFlag(TJSVariantRef[] param, TJSVariantRef result)
  669. {
  670. NDebug.Assert(param.Length == 2 || 3 == param.Length, "SetMaidFlag args count error.");
  671. int nMaidNo = 0;
  672. string flagName = string.Empty;
  673. int num;
  674. if (param.Length == 3)
  675. {
  676. nMaidNo = param[0].AsInteger();
  677. flagName = param[1].AsString();
  678. num = param[2].AsInteger();
  679. }
  680. else
  681. {
  682. flagName = param[0].AsString();
  683. num = param[1].AsInteger();
  684. }
  685. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  686. if (this.compatibilityMode || this.tjsLegacyMode)
  687. {
  688. maid.status.OldStatus.SetFlag(flagName, num);
  689. }
  690. else
  691. {
  692. maid.status.SetFlag(flagName, num);
  693. }
  694. if (result != null)
  695. {
  696. result.SetInteger(num);
  697. }
  698. }
  699. private void TJSFuncSetManFlag(TJSVariantRef[] param, TJSVariantRef result)
  700. {
  701. NDebug.Assert(param.Length == 2 || 3 == param.Length, "SetManFlag args count error.");
  702. string flagName = string.Empty;
  703. int value;
  704. if (param.Length == 3)
  705. {
  706. int num = param[0].AsInteger();
  707. flagName = param[1].AsString();
  708. value = param[2].AsInteger();
  709. }
  710. else
  711. {
  712. flagName = param[0].AsString();
  713. value = param[1].AsInteger();
  714. }
  715. if (!this.compatibilityMode)
  716. {
  717. GameMain.Instance.CharacterMgr.status.SetFlag(flagName, value);
  718. }
  719. }
  720. private void TJSFuncSetTmpFlag(TJSVariantRef[] param, TJSVariantRef result)
  721. {
  722. NDebug.Assert(2 == param.Length, "SetTmpFlag args count error.");
  723. string flag_name = string.Empty;
  724. flag_name = param[0].AsString();
  725. int num = param[1].AsInteger();
  726. GameMain.Instance.CMSystem.SetTmpGenericFlag(flag_name, num);
  727. if (result != null)
  728. {
  729. result.SetInteger(num);
  730. }
  731. }
  732. private void TJSFuncGetMaidFlag(TJSVariantRef[] param, TJSVariantRef result)
  733. {
  734. NDebug.Assert(param.Length == 1 || param.Length == 2 || 3 == param.Length, "GetMaidFlag args count error.");
  735. if (result == null)
  736. {
  737. return;
  738. }
  739. int nMaidNo = 0;
  740. string flagName = string.Empty;
  741. bool flag = false;
  742. if (param.Length == 3)
  743. {
  744. nMaidNo = param[0].AsInteger();
  745. flagName = param[1].AsString();
  746. if (param[2].AsBool())
  747. {
  748. flag = true;
  749. }
  750. }
  751. else if (param.Length == 2)
  752. {
  753. nMaidNo = param[0].AsInteger();
  754. flagName = param[1].AsString();
  755. }
  756. else
  757. {
  758. flagName = param[0].AsString();
  759. }
  760. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  761. if ((this.compatibilityMode || this.tjsLegacyMode) && !flag)
  762. {
  763. result.SetInteger(maid.status.OldStatus.GetFlag(flagName));
  764. }
  765. else
  766. {
  767. result.SetInteger(maid.status.GetFlag(flagName));
  768. }
  769. }
  770. private void TJSFuncGetManFlag(TJSVariantRef[] param, TJSVariantRef result)
  771. {
  772. NDebug.Assert(param.Length == 1 || 2 == param.Length, "GetManFlag args count error.");
  773. if (result == null)
  774. {
  775. return;
  776. }
  777. string flagName = string.Empty;
  778. if (param.Length == 2)
  779. {
  780. int num = param[0].AsInteger();
  781. flagName = param[1].AsString();
  782. }
  783. else
  784. {
  785. flagName = param[0].AsString();
  786. }
  787. result.SetInteger(GameMain.Instance.CharacterMgr.status.GetFlag(flagName));
  788. }
  789. private void TJSFuncGetTmpFlag(TJSVariantRef[] param, TJSVariantRef result)
  790. {
  791. NDebug.Assert(1 == param.Length, "GetTmpFlag args count error.");
  792. if (result == null)
  793. {
  794. return;
  795. }
  796. string flag_name = param[0].AsString();
  797. result.SetInteger(GameMain.Instance.CMSystem.GetTmpGenericFlag(flag_name));
  798. }
  799. private void TJSFuncSetSystemFlag(TJSVariantRef[] param, TJSVariantRef result)
  800. {
  801. NDebug.Assert(2 == param.Length, "SetSystemFlag args count error.");
  802. string f_strKey = string.Empty;
  803. f_strKey = param[0].AsString();
  804. int integer = param[1].AsInteger();
  805. GameMain.Instance.CMSystem.SetSystemVers(f_strKey, integer.ToString());
  806. if (result != null)
  807. {
  808. result.SetInteger(integer);
  809. }
  810. }
  811. private void TJSFuncGetSystemFlag(TJSVariantRef[] param, TJSVariantRef result)
  812. {
  813. NDebug.Assert(1 == param.Length, "GetSystemFlag args count error.");
  814. if (result == null)
  815. {
  816. return;
  817. }
  818. string f_strKey = param[0].AsString();
  819. string text = GameMain.Instance.CMSystem.GetSystemVers(f_strKey);
  820. if (string.IsNullOrEmpty(text))
  821. {
  822. text = "0";
  823. }
  824. result.SetInteger(int.Parse(text));
  825. }
  826. private void TJSFuncGetMaidStatus(TJSVariantRef[] tjs_param, TJSVariantRef result)
  827. {
  828. NDebug.Assert(2 == tjs_param.Length, "GetMaidStatus args count error.");
  829. if (result == null)
  830. {
  831. return;
  832. }
  833. int nMaidNo = tjs_param[0].AsInteger();
  834. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  835. MaidStatus.Status status = maid.status;
  836. string a = tjs_param[1].AsString();
  837. bool flag = this.compatibilityMode || this.tjsLegacyMode;
  838. if (flag && a == "状態")
  839. {
  840. a = "旧関係";
  841. }
  842. if (a == "性経験")
  843. {
  844. result.SetString(EnumConvert.GetString(status.seikeiken));
  845. }
  846. else if (a == "初期性経験")
  847. {
  848. result.SetString(EnumConvert.GetString(status.initSeikeiken));
  849. }
  850. else if (a == "性格")
  851. {
  852. result.SetString(status.personal.drawName);
  853. }
  854. else if (a == "契約タイプ")
  855. {
  856. result.SetString(EnumConvert.GetString(status.contract));
  857. }
  858. else if (a == "ヒロインタイプ")
  859. {
  860. result.SetString(EnumConvert.GetString(status.heroineType));
  861. }
  862. else if (a == "サブメイドユニークネーム")
  863. {
  864. if (status.subCharaData != null)
  865. {
  866. result.SetString(status.subCharaData.uniqueName);
  867. }
  868. else
  869. {
  870. result.SetString(string.Empty);
  871. }
  872. }
  873. else if (a == "ジョブメイド")
  874. {
  875. result.SetString(status.selectedJobClass.data.uniqueName);
  876. }
  877. else if (a == "夜伽クラス")
  878. {
  879. if (status.selectedJobClass.data.classType == AbstractClassData.ClassType.New)
  880. {
  881. result.SetString("Debut");
  882. }
  883. else
  884. {
  885. result.SetString(status.selectedYotogiClass.data.drawName);
  886. }
  887. }
  888. else if (a == "関係")
  889. {
  890. result.SetString(EnumConvert.GetString(status.relation));
  891. }
  892. else if (a == "追加関係")
  893. {
  894. result.SetString(EnumConvert.GetString(status.additionalRelation));
  895. }
  896. else if (a == "特殊関係")
  897. {
  898. result.SetString(EnumConvert.GetString(status.specialRelation));
  899. }
  900. else if (a == "旧関係")
  901. {
  902. if (status.OldStatus != null)
  903. {
  904. result.SetString(EnumConvert.GetString(status.OldStatus.relation));
  905. }
  906. else
  907. {
  908. result.SetString(EnumConvert.GetString(status.relation));
  909. }
  910. }
  911. else if (a == "カップ")
  912. {
  913. result.SetString(status.body.cup);
  914. }
  915. else if (a == "苗字")
  916. {
  917. result.SetString(status.lastName);
  918. }
  919. else if (a == "名前")
  920. {
  921. result.SetString(status.firstName);
  922. }
  923. else if (a == "身長")
  924. {
  925. result.SetInteger(status.body.height);
  926. }
  927. else if (a == "夜伽プレイ回数")
  928. {
  929. result.SetInteger(status.playCountYotogi);
  930. }
  931. else if (a == "接客プレイ回数")
  932. {
  933. result.SetInteger(status.playCountNightWork);
  934. }
  935. else if (a == "興奮値")
  936. {
  937. result.SetInteger(status.currentExcite);
  938. }
  939. else if (a == "好感度")
  940. {
  941. result.SetInteger(status.likability);
  942. if (flag && 300 <= status.likability)
  943. {
  944. result.SetInteger(299);
  945. }
  946. }
  947. else if (a == "習得率")
  948. {
  949. result.SetInteger(status.studyRate);
  950. }
  951. else if (a == "接待")
  952. {
  953. result.SetInteger(status.reception);
  954. }
  955. else if (a == "お世話")
  956. {
  957. result.SetInteger(status.care);
  958. }
  959. else if (a == "可憐")
  960. {
  961. result.SetInteger(status.lovely);
  962. }
  963. else if (a == "淫欲")
  964. {
  965. result.SetInteger(status.inyoku);
  966. }
  967. else if (a == "気品")
  968. {
  969. result.SetInteger(status.elegance);
  970. }
  971. else if (a == "M性")
  972. {
  973. result.SetInteger(status.mvalue);
  974. }
  975. else if (a == "魅惑")
  976. {
  977. result.SetInteger(status.charm);
  978. }
  979. else if (a == "変態")
  980. {
  981. result.SetInteger(status.hentai);
  982. }
  983. else if (a == "奉仕")
  984. {
  985. result.SetInteger(status.housi);
  986. }
  987. else if (a == "料理")
  988. {
  989. result.SetInteger(status.cooking);
  990. }
  991. else if (a == "ボーカル")
  992. {
  993. result.SetInteger(status.vocal);
  994. }
  995. else if (a == "ダンス")
  996. {
  997. result.SetInteger(status.dance);
  998. }
  999. else if (a == "アピール")
  1000. {
  1001. result.SetInteger(status.appealPoint);
  1002. }
  1003. else if (a == "指導")
  1004. {
  1005. result.SetInteger(status.teachRate);
  1006. }
  1007. else if (a == "経験人数")
  1008. {
  1009. result.SetInteger(status.sexPlayNumberOfPeople);
  1010. }
  1011. else if (a == "昼仕事ID")
  1012. {
  1013. result.SetInteger(status.noonWorkId);
  1014. }
  1015. else if (a == "夜仕事ID")
  1016. {
  1017. result.SetInteger(status.nightWorkId);
  1018. }
  1019. else if (a == "昼仕事レベル")
  1020. {
  1021. if (!status.workDatas.ContainsKey(status.noonWorkId))
  1022. {
  1023. result.SetInteger(1);
  1024. }
  1025. else
  1026. {
  1027. result.SetInteger(status.workDatas.Get(status.noonWorkId).level);
  1028. }
  1029. }
  1030. else if (a == "夜仕事レベル")
  1031. {
  1032. if (!status.workDatas.ContainsKey(status.nightWorkId))
  1033. {
  1034. result.SetInteger(1);
  1035. }
  1036. else
  1037. {
  1038. result.SetInteger(status.workDatas.Get(status.nightWorkId).level);
  1039. }
  1040. }
  1041. else if (a == "夜伽クラスレベル")
  1042. {
  1043. result.SetInteger(status.selectedYotogiClass.level);
  1044. }
  1045. else if (a == "ジョブメイドレベル")
  1046. {
  1047. result.SetInteger(status.selectedJobClass.level);
  1048. }
  1049. else if (a == "スリーサイズB")
  1050. {
  1051. result.SetInteger(status.body.bust);
  1052. }
  1053. else if (a == "スリーサイズW")
  1054. {
  1055. result.SetInteger(status.body.waist);
  1056. }
  1057. else if (a == "スリーサイズH")
  1058. {
  1059. result.SetInteger(status.body.hip);
  1060. }
  1061. else if (flag)
  1062. {
  1063. if (a == "レンタルメイド")
  1064. {
  1065. result.SetInteger(0);
  1066. }
  1067. else if (a == "雇用中")
  1068. {
  1069. result.SetInteger(1);
  1070. }
  1071. else if (a == "特殊状態")
  1072. {
  1073. result.SetString(EnumConvert.GetString(status.OldStatus.condition));
  1074. }
  1075. else if (a == "欲求不満")
  1076. {
  1077. result.SetInteger(status.OldStatus.frustration);
  1078. }
  1079. else if (a == "淫乱ギャップ値")
  1080. {
  1081. result.SetInteger(status.inranGap);
  1082. }
  1083. else if (a == "M性ギャップ値")
  1084. {
  1085. result.SetInteger(status.mValueGap);
  1086. }
  1087. else if (a == "変態ギャップ値")
  1088. {
  1089. result.SetInteger(status.hentaiGap);
  1090. }
  1091. else if (a == "メイドクラス")
  1092. {
  1093. if (status.selectedJobClass.data.classType == AbstractClassData.ClassType.Old)
  1094. {
  1095. result.SetString(status.selectedJobClass.data.drawName);
  1096. }
  1097. else
  1098. {
  1099. result.SetString("ノービスメイド");
  1100. }
  1101. }
  1102. }
  1103. }
  1104. private void TJSFuncSetMainCharaFlag(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1105. {
  1106. NDebug.Assert(2 == tjs_param.Length, "SetMainCharaFlag args count error.");
  1107. int nMaidNo = tjs_param[0].AsInteger();
  1108. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  1109. if (maid == null)
  1110. {
  1111. Debug.LogError("SetMainCharaFlag error\nメイド[" + nMaidNo.ToString() + "]にはメイドはいません");
  1112. }
  1113. else
  1114. {
  1115. maid.status.mainChara = tjs_param[1].AsBool();
  1116. }
  1117. }
  1118. private void OldTJSFuncConIsSeikantai(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1119. {
  1120. NDebug.Assert(this.compatibilityMode || this.tjsLegacyMode, "互換モードではないの、互換モード用関数@IsSeikantaiがよばれました");
  1121. NDebug.Assert(2 == tjs_param.Length, "IsSeikantai args count error.");
  1122. if (result == null)
  1123. {
  1124. return;
  1125. }
  1126. int nMaidNo = tjs_param[0].AsInteger();
  1127. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  1128. MaidStatus.Old.Status oldStatus = maid.status.OldStatus;
  1129. string text = tjs_param[1].AsString();
  1130. int num = 1000;
  1131. if (text == "口")
  1132. {
  1133. result.SetBool(num <= oldStatus.sexual.mouth);
  1134. }
  1135. else if (text == "喉")
  1136. {
  1137. result.SetBool(num <= oldStatus.sexual.throat);
  1138. }
  1139. else if (text == "乳首")
  1140. {
  1141. result.SetBool(num <= oldStatus.sexual.nipple);
  1142. }
  1143. else if (text == "前穴")
  1144. {
  1145. result.SetBool(num <= oldStatus.sexual.front);
  1146. }
  1147. else if (text == "後穴")
  1148. {
  1149. result.SetBool(num <= oldStatus.sexual.back);
  1150. }
  1151. else if (text == "クリ")
  1152. {
  1153. result.SetBool(num <= oldStatus.sexual.curi);
  1154. }
  1155. else
  1156. {
  1157. NDebug.Assert("IsSeikantai error.\n" + text, false);
  1158. }
  1159. }
  1160. private void TJSFuncCreateNewMaid(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1161. {
  1162. NDebug.Assert(1 == tjs_param.Length, "CreateNewMaid args count error.");
  1163. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  1164. Maid maid = null;
  1165. string text = tjs_param[0].AsString();
  1166. if (!MaidStatus.Personal.Contains(text))
  1167. {
  1168. NDebug.Assert(SubMaid.Contains(text), "CreateNewMaidの指定名が間違っています[" + text + "]");
  1169. SubMaid.Data data = SubMaid.GetData(text);
  1170. GameMain.Instance.ScriptMgr.StopMotionScript();
  1171. bool flag = false;
  1172. for (int i = 0; i < GameMain.Instance.CharacterMgr.GetStockMaidCount(); i++)
  1173. {
  1174. Maid stockMaid = GameMain.Instance.CharacterMgr.GetStockMaid(i);
  1175. if (stockMaid != null && stockMaid.status.heroineType == HeroineType.Sub && stockMaid.status.subCharaData.id == data.id)
  1176. {
  1177. flag = true;
  1178. break;
  1179. }
  1180. }
  1181. if (!flag)
  1182. {
  1183. maid = characterMgr.AddStockMaid();
  1184. List<SubMaid.BackupStatus> subMaidBackupStatusList = GameMain.Instance.CharacterMgr.subMaidBackupStatusList;
  1185. int index = -1;
  1186. SubMaid.BackupStatus backupStatus = null;
  1187. for (int j = 0; j < subMaidBackupStatusList.Count; j++)
  1188. {
  1189. if (subMaidBackupStatusList[j].subCharaUniqueName == data.uniqueName)
  1190. {
  1191. index = j;
  1192. backupStatus = subMaidBackupStatusList[j];
  1193. break;
  1194. }
  1195. }
  1196. data.ApplyStatus(maid.status, characterMgr.status.lockUserDraftMaid);
  1197. data.ApplyPreset(maid, characterMgr.status.lockUserDraftMaid, backupStatus == null);
  1198. if (backupStatus != null)
  1199. {
  1200. backupStatus.Apply(maid.status);
  1201. subMaidBackupStatusList.RemoveAt(index);
  1202. }
  1203. }
  1204. }
  1205. else
  1206. {
  1207. NDebug.Assert(MaidStatus.Personal.IsEnabled(text), "CreateNewMaidで指定された対象名[" + text + "]は有効状態ではありません");
  1208. MaidStatus.Personal.Data data2 = MaidStatus.Personal.GetData(text);
  1209. GameMain.Instance.ScriptMgr.StopMotionScript();
  1210. maid = characterMgr.AddStockMaid();
  1211. maid.status.SetPersonal(data2);
  1212. }
  1213. if (maid != null)
  1214. {
  1215. characterMgr.SetActiveMaid(maid, 0);
  1216. maid.Visible = true;
  1217. maid.AllProcPropSeqStart();
  1218. }
  1219. }
  1220. private void TJSFuncPresetLoad(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1221. {
  1222. NDebug.Assert(2 == tjs_param.Length, "PresetLoad args count error.");
  1223. int nMaidNo = tjs_param[0].AsInteger();
  1224. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  1225. if (maid == null)
  1226. {
  1227. NDebug.Assert("PresetLoad\nmaid null.", false);
  1228. return;
  1229. }
  1230. byte[] array = null;
  1231. string text = tjs_param[1].AsString();
  1232. if (text == "pre_maid_secretary")
  1233. {
  1234. CharacterMgr.Preset f_prest = GameMain.Instance.CharacterMgr.PresetLoadFromResources(text);
  1235. GameMain.Instance.CharacterMgr.PresetSet(maid, f_prest);
  1236. }
  1237. else
  1238. {
  1239. if (this.file_system.IsExistentFile(text + ".preset"))
  1240. {
  1241. using (AFileBase afileBase = GameUty.FileOpen(text + ".preset", null))
  1242. {
  1243. if (afileBase != null && afileBase.IsValid())
  1244. {
  1245. array = afileBase.ReadAll();
  1246. }
  1247. }
  1248. }
  1249. if (array == null)
  1250. {
  1251. NDebug.Assert("PresetLoad\n[" + text + "] file not fund.", false);
  1252. return;
  1253. }
  1254. using (BinaryReader binaryReader = new BinaryReader(new MemoryStream(array), Encoding.UTF8))
  1255. {
  1256. CharacterMgr.Preset f_prest2 = GameMain.Instance.CharacterMgr.PresetLoad(binaryReader, text);
  1257. GameMain.Instance.CharacterMgr.PresetSet(maid, f_prest2);
  1258. }
  1259. array = null;
  1260. }
  1261. if (this.compatibilityMode && !maid.boMAN)
  1262. {
  1263. maid.status.voiceGroup = VoiceGroup.Sub;
  1264. }
  1265. }
  1266. private void TJSFuncPresetLoadNPC(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1267. {
  1268. NDebug.Assert("未実装TJS関数[PresetLoadNPC]が呼ばれました", false);
  1269. }
  1270. private void TJSFuncAddMaidStatus(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1271. {
  1272. NDebug.Assert(3 == tjs_param.Length, "AddMaidStatus args count error.");
  1273. int nMaidNo = tjs_param[0].AsInteger();
  1274. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  1275. MaidStatus.Status status = maid.status;
  1276. string a = tjs_param[1].AsString();
  1277. int num = tjs_param[2].AsInteger();
  1278. Action<int> action = null;
  1279. if (a == "夜伽プレイ回数")
  1280. {
  1281. maid.status.playCountNightWork += num;
  1282. }
  1283. else if (a == "接客プレイ回数")
  1284. {
  1285. maid.status.playCountNightWork += num;
  1286. }
  1287. else if (a == "好感度")
  1288. {
  1289. maid.status.likability += num;
  1290. }
  1291. else if (a == "習得率")
  1292. {
  1293. maid.status.studyRate += num;
  1294. }
  1295. else if (a == "接待")
  1296. {
  1297. maid.status.baseReception += num;
  1298. }
  1299. else if (a == "お世話")
  1300. {
  1301. maid.status.baseCare += num;
  1302. }
  1303. else if (a == "可憐")
  1304. {
  1305. maid.status.baseLovely += num;
  1306. }
  1307. else if (a == "気品")
  1308. {
  1309. maid.status.baseElegance += num;
  1310. }
  1311. else if (a == "魅惑")
  1312. {
  1313. maid.status.baseCharm += num;
  1314. }
  1315. else if (a == "淫欲")
  1316. {
  1317. maid.status.baseInyoku += num;
  1318. }
  1319. else if (a == "M性")
  1320. {
  1321. maid.status.baseMvalue += num;
  1322. }
  1323. else if (a == "変態")
  1324. {
  1325. maid.status.baseHentai += num;
  1326. }
  1327. else if (a == "奉仕")
  1328. {
  1329. maid.status.baseHousi += num;
  1330. }
  1331. else if (a == "指導")
  1332. {
  1333. maid.status.baseTeachRate += num;
  1334. }
  1335. else if (a == "経験人数")
  1336. {
  1337. maid.status.sexPlayNumberOfPeople += num;
  1338. }
  1339. if (action != null)
  1340. {
  1341. action(num);
  1342. }
  1343. }
  1344. private void TJSFuncIsMaidFeature(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1345. {
  1346. NDebug.Assert(2 == tjs_param.Length, "IsMaidFeature args count error.");
  1347. if (result == null)
  1348. {
  1349. return;
  1350. }
  1351. int nMaidNo = tjs_param[0].AsInteger();
  1352. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  1353. MaidStatus.Status status = maid.status;
  1354. string uniqueName = tjs_param[1].AsString();
  1355. Feature.Data data = Feature.GetData(uniqueName);
  1356. result.SetInteger(Convert.ToInt32(status.features.ContainsKey(data.id)));
  1357. }
  1358. private void TJSFuncIsMaidPropensity(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1359. {
  1360. NDebug.Assert(2 == tjs_param.Length, "IsMaidPropensity args count error.");
  1361. if (result == null)
  1362. {
  1363. return;
  1364. }
  1365. int nMaidNo = tjs_param[0].AsInteger();
  1366. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  1367. MaidStatus.Status status = maid.status;
  1368. string uniqueName = tjs_param[1].AsString();
  1369. Propensity.Data data = Propensity.GetData(uniqueName);
  1370. result.SetInteger(Convert.ToInt32(status.propensitys.ContainsKey(data.id)));
  1371. }
  1372. private void TJSFuncGetYotogiSkillLevel(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1373. {
  1374. NDebug.Assert(2 == tjs_param.Length, "GetYotogiSkillLevel args count error.");
  1375. if (result == null)
  1376. {
  1377. return;
  1378. }
  1379. int nMaidNo = tjs_param[0].AsInteger();
  1380. int skillId = tjs_param[1].AsInteger();
  1381. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  1382. MaidStatus.Status status = maid.status;
  1383. result.SetInteger(0);
  1384. if (status.yotogiSkill.Contains(skillId))
  1385. {
  1386. YotogiSkillData yotogiSkillData = status.yotogiSkill.Get(skillId);
  1387. result.SetInteger(yotogiSkillData.level);
  1388. }
  1389. }
  1390. private void TJSFuncIsYotogiSkill(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1391. {
  1392. NDebug.Assert(2 == tjs_param.Length, "IsYotogiSkill args count error.");
  1393. if (result == null)
  1394. {
  1395. return;
  1396. }
  1397. int nMaidNo = tjs_param[0].AsInteger();
  1398. int skillId = tjs_param[1].AsInteger();
  1399. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  1400. result.SetBool(maid.status.yotogiSkill.Contains(skillId));
  1401. }
  1402. private void TJSFuncGetStockMaidCount(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1403. {
  1404. if (result == null)
  1405. {
  1406. return;
  1407. }
  1408. result.SetInteger(GameMain.Instance.CharacterMgr.GetStockMaidCount());
  1409. }
  1410. private void TJSFuncSetSalonGrade(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1411. {
  1412. NDebug.Assert(1 == tjs_param.Length, "SetSalonGrade args count error.");
  1413. GameMain.Instance.CharacterMgr.status.clubGrade = tjs_param[0].AsInteger();
  1414. }
  1415. private void TJSFuncGetSalonGrade(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1416. {
  1417. if (result == null)
  1418. {
  1419. return;
  1420. }
  1421. result.SetInteger(GameMain.Instance.CharacterMgr.status.clubGrade);
  1422. }
  1423. private void TJSFuncGetClubEvaluation(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1424. {
  1425. if (result == null)
  1426. {
  1427. return;
  1428. }
  1429. result.SetInteger(GameMain.Instance.CharacterMgr.status.clubEvaluation);
  1430. }
  1431. private void TJSFuncSetClubGauge(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1432. {
  1433. NDebug.Assert(1 == tjs_param.Length, "SetClubGauge args count error.");
  1434. GameMain.Instance.CharacterMgr.status.clubGauge = tjs_param[0].AsInteger();
  1435. }
  1436. private void TJSFuncGetClubGauge(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1437. {
  1438. if (result == null)
  1439. {
  1440. return;
  1441. }
  1442. result.SetInteger(GameMain.Instance.CharacterMgr.status.clubGauge);
  1443. }
  1444. private void TJSFuncGetBGName(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1445. {
  1446. if (result == null)
  1447. {
  1448. return;
  1449. }
  1450. result.SetString(GameMain.Instance.BgMgr.GetBGName());
  1451. }
  1452. private void TJSFuncIsItemParam(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1453. {
  1454. if (result == null)
  1455. {
  1456. return;
  1457. }
  1458. NDebug.Assert(2 == tjs_param.Length, "IsItemParam args count error.");
  1459. if (result == null)
  1460. {
  1461. return;
  1462. }
  1463. int nMaidNo = tjs_param[0].AsInteger();
  1464. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  1465. string f_strTag = tjs_param[1].AsString();
  1466. result.SetInteger(Convert.ToInt32(!string.IsNullOrEmpty(maid.body0.GetPartsParam(f_strTag))));
  1467. }
  1468. private void TJSFuncIsItemSlot(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1469. {
  1470. if (result == null)
  1471. {
  1472. return;
  1473. }
  1474. NDebug.Assert(2 == tjs_param.Length, "IsItemSlot args count error.");
  1475. if (result == null)
  1476. {
  1477. return;
  1478. }
  1479. int nMaidNo = tjs_param[0].AsInteger();
  1480. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  1481. string text = tjs_param[1].AsString();
  1482. TBody.SlotID f_eSlot = TBody.SlotID.wear;
  1483. try
  1484. {
  1485. f_eSlot = (TBody.SlotID)Enum.Parse(typeof(TBody.SlotID), text);
  1486. }
  1487. catch
  1488. {
  1489. NDebug.Assert("Parse error.[TBody.SlotID]\n" + text, false);
  1490. }
  1491. result.SetBool(maid.body0.GetSlotLoaded(f_eSlot));
  1492. }
  1493. private void OldTJSFuncIsMaidClass(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1494. {
  1495. NDebug.Assert(this.compatibilityMode || this.tjsLegacyMode, "互換モードではないの、互換モード用関数@IsMaidClassがよばれました");
  1496. this.TJSFuncIsJobMaid(tjs_param, result);
  1497. }
  1498. private void TJSFuncIsJobMaid(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1499. {
  1500. if (result == null)
  1501. {
  1502. return;
  1503. }
  1504. NDebug.Assert(tjs_param.Length == 2, "IsJobMaid args count error.");
  1505. NDebug.Assert(tjs_param[0].type == TJSVariantRef.Type.tvtInteger && tjs_param[1].type == TJSVariantRef.Type.tvtString, "error.");
  1506. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(tjs_param[0].AsInteger());
  1507. string uniqueName = tjs_param[1].AsString();
  1508. JobClass.Data data = JobClass.GetData(uniqueName);
  1509. if (maid.status.jobClass.Contains(data.id))
  1510. {
  1511. result.SetInteger(1);
  1512. }
  1513. else
  1514. {
  1515. result.SetInteger(0);
  1516. }
  1517. }
  1518. private void OldTJSFuncGetMaidClassLevel(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1519. {
  1520. NDebug.Assert(this.compatibilityMode || this.tjsLegacyMode, "互換モードではないの、互換モード用関数@GetMaidClassLevelがよばれました");
  1521. this.TJSFuncGetJobMaidLevel(tjs_param, result);
  1522. }
  1523. private void TJSFuncGetJobMaidLevel(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1524. {
  1525. if (result == null)
  1526. {
  1527. return;
  1528. }
  1529. NDebug.Assert(tjs_param.Length == 2, "GetJobMaidLevel args count error.");
  1530. NDebug.Assert(tjs_param[0].type == TJSVariantRef.Type.tvtInteger && tjs_param[1].type == TJSVariantRef.Type.tvtString, "error.");
  1531. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(tjs_param[0].AsInteger());
  1532. string uniqueName = tjs_param[1].AsString();
  1533. JobClass.Data data = JobClass.GetData(uniqueName);
  1534. if (maid.status.jobClass.Contains(data.id))
  1535. {
  1536. result.SetInteger(maid.status.jobClass.Get(data.id).level);
  1537. }
  1538. else
  1539. {
  1540. result.SetInteger(0);
  1541. }
  1542. }
  1543. private void TJSFuncIsYotogiClass(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1544. {
  1545. if (result == null)
  1546. {
  1547. return;
  1548. }
  1549. NDebug.Assert(tjs_param.Length == 2, "IsYotogiClass args count error.");
  1550. NDebug.Assert(tjs_param[0].type == TJSVariantRef.Type.tvtInteger && tjs_param[1].type == TJSVariantRef.Type.tvtString, "error.");
  1551. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(tjs_param[0].AsInteger());
  1552. string uniqueName = tjs_param[1].AsString();
  1553. YotogiClass.Data data = YotogiClass.GetData(uniqueName);
  1554. if (maid.status.yotogiClass.Contains(data.id))
  1555. {
  1556. result.SetInteger(1);
  1557. }
  1558. else
  1559. {
  1560. result.SetInteger(0);
  1561. }
  1562. }
  1563. private void TJSFuncGetYotogiClassLevel(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1564. {
  1565. if (result == null)
  1566. {
  1567. return;
  1568. }
  1569. NDebug.Assert(tjs_param.Length == 2, "GetYotogiClassLevel args count error.");
  1570. NDebug.Assert(tjs_param[0].type == TJSVariantRef.Type.tvtInteger && tjs_param[1].type == TJSVariantRef.Type.tvtString, "error.");
  1571. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(tjs_param[0].AsInteger());
  1572. string uniqueName = tjs_param[1].AsString();
  1573. YotogiClass.Data data = YotogiClass.GetData(uniqueName);
  1574. if (maid.status.yotogiClass.Contains(data.id))
  1575. {
  1576. result.SetInteger(maid.status.yotogiClass.Get(data.id).level);
  1577. }
  1578. else
  1579. {
  1580. result.SetInteger(0);
  1581. }
  1582. }
  1583. private void TJSFuncGetNoonScuccessLevel(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1584. {
  1585. if (result == null)
  1586. {
  1587. return;
  1588. }
  1589. NDebug.Assert(tjs_param.Length == 1, "TJSFuncGetNoonScuccessLevel args count error.");
  1590. NDebug.Assert(tjs_param[0].type == TJSVariantRef.Type.tvtInteger, "error.");
  1591. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  1592. Maid maid = characterMgr.GetMaid(tjs_param[0].AsInteger());
  1593. ScheduleData[] scheduleSlot = characterMgr.status.scheduleSlot;
  1594. int integer = -1;
  1595. for (int i = 0; i < scheduleSlot.Length; i++)
  1596. {
  1597. if (scheduleSlot[i] != null)
  1598. {
  1599. if (scheduleSlot[i].maid_guid == maid.status.guid)
  1600. {
  1601. integer = (int)scheduleSlot[i].noon_success_level;
  1602. break;
  1603. }
  1604. }
  1605. }
  1606. result.SetInteger(integer);
  1607. }
  1608. private void TJSFuncIsMaid(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1609. {
  1610. if (result == null)
  1611. {
  1612. return;
  1613. }
  1614. NDebug.Assert(tjs_param.Length == 1, "IsMaid args count error.");
  1615. NDebug.Assert(tjs_param[0].type == TJSVariantRef.Type.tvtInteger, "error.");
  1616. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  1617. Maid maid = characterMgr.GetMaid(tjs_param[0].AsInteger());
  1618. result.SetBool(maid != null);
  1619. }
  1620. private void TJSFuncIsOldPersonal(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1621. {
  1622. if (result == null)
  1623. {
  1624. return;
  1625. }
  1626. NDebug.Assert(tjs_param.Length == 1, "IsOldPersonal args count error.");
  1627. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  1628. Maid maid = characterMgr.GetMaid(tjs_param[0].AsInteger());
  1629. if (maid == null)
  1630. {
  1631. result.SetBool(false);
  1632. }
  1633. else
  1634. {
  1635. result.SetBool(maid.status.personal.oldPersonal);
  1636. }
  1637. }
  1638. public void TJSFuncConGetSalonLoan(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1639. {
  1640. if (result == null)
  1641. {
  1642. return;
  1643. }
  1644. result.SetInteger(0);
  1645. }
  1646. public void TJSFuncConGetPhase(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1647. {
  1648. if (result == null)
  1649. {
  1650. return;
  1651. }
  1652. result.SetInteger(2);
  1653. }
  1654. public void TJSFuncGetDay(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1655. {
  1656. if (result == null)
  1657. {
  1658. return;
  1659. }
  1660. PlayerStatus.Status status = GameMain.Instance.CharacterMgr.status;
  1661. result.SetInteger(status.days);
  1662. }
  1663. public void TJSFuncCreateStockMaidLoopData(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1664. {
  1665. this.stock_maid_loop_list.Clear();
  1666. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  1667. for (int i = 0; i < characterMgr.GetStockMaidCount(); i++)
  1668. {
  1669. this.stock_maid_loop_list.Add(characterMgr.GetStockMaid(i));
  1670. }
  1671. List<Maid> list = this.stock_maid_loop_list;
  1672. if (ScriptManager.<>f__mg$cache0 == null)
  1673. {
  1674. ScriptManager.<>f__mg$cache0 = new Comparison<Maid>(CharacterSelectManager.SortMaidStandard);
  1675. }
  1676. list.Sort(ScriptManager.<>f__mg$cache0);
  1677. if (result != null)
  1678. {
  1679. result.SetInteger(this.stock_maid_loop_list.Count);
  1680. }
  1681. }
  1682. public void TJSFuncCreateCompetitiveShowLoopData(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1683. {
  1684. this.stock_maid_loop_list.Clear();
  1685. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  1686. if (CompetitiveShowMgr.is_effect_ones)
  1687. {
  1688. for (int i = 0; i < CompetitiveShowMgr.check_maid_list.Count; i++)
  1689. {
  1690. this.stock_maid_loop_list.Add(CompetitiveShowMgr.check_maid_list[i]);
  1691. }
  1692. }
  1693. else if (0 < CompetitiveShowMgr.check_maid_list.Count)
  1694. {
  1695. this.stock_maid_loop_list.Add(CompetitiveShowMgr.check_maid_list[0]);
  1696. CompetitiveShowMgr.check_maid_list.RemoveAt(0);
  1697. }
  1698. if (result != null)
  1699. {
  1700. result.SetInteger(this.stock_maid_loop_list.Count);
  1701. }
  1702. }
  1703. public void TJSFuncGetCompetitiveShowLoopCount(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1704. {
  1705. if (result != null)
  1706. {
  1707. result.SetInteger(CompetitiveShowMgr.check_maid_list.Count);
  1708. }
  1709. }
  1710. public void TJSFuncSetActiveSlotFromStockMaidLoopData(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1711. {
  1712. GameMain.Instance.ScriptMgr.StopMotionScript();
  1713. NDebug.Assert(tjs_param.Length == 1, "SetActiveSlotFromStockMaidLoopData args count error.");
  1714. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  1715. Maid maid = this.stock_maid_loop_list[tjs_param[0].AsInteger()];
  1716. maid.Visible = false;
  1717. characterMgr.SetActiveMaid(maid, 0);
  1718. }
  1719. private void TJSFuncClearCallStack(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1720. {
  1721. this.ClearCallStack();
  1722. }
  1723. private void OldTJSFuncIsCommunicationChara(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1724. {
  1725. NDebug.Assert(this.compatibilityMode || this.tjsLegacyMode, "互換モードではないの、互換モード用関数@IsCommunicationCharaeがよばれました");
  1726. if (result == null)
  1727. {
  1728. return;
  1729. }
  1730. result.SetBool(false);
  1731. result.SetBool(0 < ScheduleAPI.CanCommunicationMaids(GameMain.Instance.CharacterMgr.status.isDaytime).Count);
  1732. }
  1733. private void TJSFuncSetCommunicationChara(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1734. {
  1735. bool isDaytime = GameMain.Instance.CharacterMgr.status.isDaytime;
  1736. Maid communicationMaid = ScheduleAPI.GetCommunicationMaid(isDaytime);
  1737. if (communicationMaid == null)
  1738. {
  1739. if (result != null)
  1740. {
  1741. result.SetBool(false);
  1742. }
  1743. return;
  1744. }
  1745. GameMain.Instance.CharacterMgr.SetActiveMaid(communicationMaid, 0);
  1746. communicationMaid.Visible = true;
  1747. ScheduleCSVData.ScheduleBase schedule = ScheduleAPI.GetSchedule(communicationMaid, isDaytime);
  1748. if (schedule.type == ScheduleTaskCtrl.TaskType.Training)
  1749. {
  1750. ScheduleCSVData.Training training = (ScheduleCSVData.Training)schedule;
  1751. if (training.trainingType == ScheduleCSVData.TrainingType.Trainee)
  1752. {
  1753. Maid maid;
  1754. if (isDaytime)
  1755. {
  1756. maid = ScheduleAPI.GetNoonTrainerMaid();
  1757. }
  1758. else
  1759. {
  1760. maid = ScheduleAPI.GetNightTrainerMaid();
  1761. }
  1762. if (maid != null)
  1763. {
  1764. GameMain.Instance.CharacterMgr.SetActiveMaid(maid, 1);
  1765. maid.Visible = true;
  1766. }
  1767. }
  1768. if (training.trainingType == ScheduleCSVData.TrainingType.Trainer)
  1769. {
  1770. Maid maid2;
  1771. if (isDaytime)
  1772. {
  1773. maid2 = ScheduleAPI.GetNoonTraineeMaid();
  1774. }
  1775. else
  1776. {
  1777. maid2 = ScheduleAPI.GetNightTraineeMaid();
  1778. }
  1779. if (maid2 != null)
  1780. {
  1781. GameMain.Instance.CharacterMgr.SetActiveMaid(maid2, 1);
  1782. maid2.Visible = true;
  1783. }
  1784. }
  1785. }
  1786. if (result != null)
  1787. {
  1788. result.SetBool(true);
  1789. }
  1790. }
  1791. private void TJSFuncSetRandomCommuChara(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1792. {
  1793. GameMain.Instance.ScriptMgr.StopMotionScript();
  1794. Maid[] array = ScheduleAPI.CanCommunicationMaids(GameMain.Instance.CharacterMgr.status.isDaytime).ToArray();
  1795. if (array.Length == 0)
  1796. {
  1797. GameMain.Instance.CharacterMgr.DeactivateMaid(0);
  1798. return;
  1799. }
  1800. Maid maid = array[UnityEngine.Random.Range(0, array.Length)];
  1801. NDebug.Assert(maid != null, "SetRandomCommuChara()\n選択されたメイドが空です");
  1802. GameMain.Instance.CharacterMgr.SetActiveMaid(maid, 0);
  1803. maid.Visible = true;
  1804. }
  1805. private void TJSFuncCreateYotogiCharaList(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1806. {
  1807. SceneCharacterSelect.CreateYotogiCharaList();
  1808. }
  1809. private void TJSFuncCreateNewYotogiCharaList(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1810. {
  1811. SceneCharacterSelect.CreateNewYotogiCharaList();
  1812. }
  1813. private void TJSFuncCreateNewYotogiHaremPairCharaList(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1814. {
  1815. SceneCharacterSelect.CreateNewYotogiHaremPairCharaList();
  1816. }
  1817. private void TJSFuncCreateVipCharaList(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1818. {
  1819. SceneCharacterSelect.CreateVipCharaList();
  1820. }
  1821. private void TJSFuncCreateFacilityCharaList(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1822. {
  1823. SceneCharacterSelect.CreateFacilityCharaList();
  1824. }
  1825. private void TJSFuncCreateLifeModeCharaList(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1826. {
  1827. SceneCharacterSelect.CreateLifeModeCharaList();
  1828. }
  1829. private void TJSFuncBackupStoreCharaList(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1830. {
  1831. SceneCharacterSelect.StoreCharaGuidStockList();
  1832. }
  1833. private void TJSFuncBackupReStoreCharaList(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1834. {
  1835. SceneCharacterSelect.ReStoreCharaGuidStockList();
  1836. }
  1837. private void TJSFuncIsReceptionChara(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1838. {
  1839. if (result == null)
  1840. {
  1841. return;
  1842. }
  1843. result.SetBool(0 < ScheduleAPI.GetEntertainMaids().Count);
  1844. }
  1845. private void TJSFuncSetRandomReceptionChara(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1846. {
  1847. GameMain.Instance.ScriptMgr.StopMotionScript();
  1848. Maid[] array = ScheduleAPI.GetEntertainMaids().ToArray();
  1849. NDebug.Assert(0 < array.Length, "SetRandomReceptionChara()\nメイドリストが空です");
  1850. Maid maid = array[UnityEngine.Random.Range(0, array.Length)];
  1851. NDebug.Assert(maid != null, "SetRandomReceptionChara()\n選択されたメイドが空です");
  1852. GameMain.Instance.CharacterMgr.SetActiveMaid(maid, 0);
  1853. maid.Visible = true;
  1854. }
  1855. private void TJSFuncIsSelectChara(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1856. {
  1857. if (result == null)
  1858. {
  1859. return;
  1860. }
  1861. result.SetBool(SceneCharacterSelect.IsSelectChara());
  1862. }
  1863. private void TJSFuncGetDateYear(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1864. {
  1865. if (result == null)
  1866. {
  1867. return;
  1868. }
  1869. result.SetInteger(DateTime.Now.Year);
  1870. }
  1871. private void TJSFuncGetDateMonth(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1872. {
  1873. if (result == null)
  1874. {
  1875. return;
  1876. }
  1877. result.SetInteger(DateTime.Now.Month);
  1878. }
  1879. private void TJSFuncGetDateDay(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1880. {
  1881. if (result == null)
  1882. {
  1883. return;
  1884. }
  1885. result.SetInteger(DateTime.Now.Day);
  1886. }
  1887. private void TJSFuncUpdateMaidRanking(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1888. {
  1889. Maid.UpdateMaidRanking();
  1890. }
  1891. private void TJSFuncResetMaidRanking(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1892. {
  1893. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  1894. for (int i = 0; i < characterMgr.GetStockMaidCount(); i++)
  1895. {
  1896. Maid stockMaid = characterMgr.GetStockMaid(i);
  1897. if (stockMaid != null)
  1898. {
  1899. stockMaid.status.popularRank = 0;
  1900. stockMaid.status.evaluation = 0;
  1901. stockMaid.status.sales = 0L;
  1902. }
  1903. }
  1904. characterMgr.status.SetFlag("__ランキング日数", 0);
  1905. }
  1906. private void TJSFuncSetMaidRanking1st(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1907. {
  1908. GameMain.Instance.ScriptMgr.StopMotionScript();
  1909. Maid maid = null;
  1910. for (int i = 0; i < GameMain.Instance.CharacterMgr.GetStockMaidCount(); i++)
  1911. {
  1912. maid = GameMain.Instance.CharacterMgr.GetStockMaid(i);
  1913. if (!(maid == null))
  1914. {
  1915. if (maid.status.popularRank == 1)
  1916. {
  1917. break;
  1918. }
  1919. }
  1920. }
  1921. if (maid == null)
  1922. {
  1923. maid = GameMain.Instance.CharacterMgr.GetStockMaid(0);
  1924. }
  1925. GameMain.Instance.CharacterMgr.SetActiveMaid(maid, 0);
  1926. maid.Visible = true;
  1927. }
  1928. private void TJSFuncIsAvailableRanking(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1929. {
  1930. if (result == null)
  1931. {
  1932. return;
  1933. }
  1934. result.SetBool(GameMain.Instance.CharacterMgr.status.isAvailableRanking);
  1935. }
  1936. private void TJSFuncIsYotogiSubCharaSelect(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1937. {
  1938. if (result == null)
  1939. {
  1940. return;
  1941. }
  1942. result.SetBool(false);
  1943. GameObject gameObject = GameObject.Find("UI Root/YotogiManager");
  1944. if (gameObject == null)
  1945. {
  1946. return;
  1947. }
  1948. if (this.compatibilityMode || this.tjsLegacyMode)
  1949. {
  1950. YotogiOldManager component = gameObject.GetComponent<YotogiOldManager>();
  1951. if (component == null)
  1952. {
  1953. return;
  1954. }
  1955. result.SetBool(component.IsCallShouldSubCharaSelect());
  1956. }
  1957. else
  1958. {
  1959. YotogiManager component2 = gameObject.GetComponent<YotogiManager>();
  1960. if (component2 == null)
  1961. {
  1962. return;
  1963. }
  1964. result.SetBool(component2.IsCallShouldSubCharaSelect());
  1965. }
  1966. }
  1967. private void TJSFuncGetYotogiSkillSpecialType(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1968. {
  1969. GameObject gameObject = GameObject.Find("UI Root/YotogiManager");
  1970. if (result == null || gameObject == null)
  1971. {
  1972. return;
  1973. }
  1974. YotogiManager component = gameObject.GetComponent<YotogiManager>();
  1975. if (component == null || component.play_skill_array == null || component.play_skill_array.Length == 0)
  1976. {
  1977. return;
  1978. }
  1979. result.SetString(component.play_skill_array[0].skill_pair.base_data.specialConditionType.ToString());
  1980. }
  1981. private void TJSFuncIsSelectedYotogiSkill(TJSVariantRef[] tjs_param, TJSVariantRef result)
  1982. {
  1983. NDebug.Assert(tjs_param.Length == 1, "IsSelectedYotogiSkill args count error.");
  1984. GameObject gameObject = GameObject.Find("UI Root/YotogiManager");
  1985. if (result == null || gameObject == null)
  1986. {
  1987. return;
  1988. }
  1989. YotogiManager component = gameObject.GetComponent<YotogiManager>();
  1990. if (component == null || component.play_skill_array == null || component.play_skill_array.Length == 0)
  1991. {
  1992. return;
  1993. }
  1994. result.SetBool(false);
  1995. int num = tjs_param[0].AsInteger();
  1996. foreach (YotogiManager.PlayingSkillData playingSkillData in component.play_skill_array)
  1997. {
  1998. if (playingSkillData != null && playingSkillData.skill_pair != null && playingSkillData.skill_pair.skill_data != null)
  1999. {
  2000. if (playingSkillData.skill_pair.skill_data.data.id == num)
  2001. {
  2002. result.SetBool(true);
  2003. break;
  2004. }
  2005. }
  2006. }
  2007. }
  2008. private void TJSFuncLearningYotogiSkill(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2009. {
  2010. NDebug.Assert(tjs_param.Length == 2, "LearningYotogiSkill args count error.");
  2011. NDebug.Assert(tjs_param[0].type == TJSVariantRef.Type.tvtInteger && tjs_param[1].type == TJSVariantRef.Type.tvtInteger, "error.");
  2012. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(tjs_param[0].AsInteger());
  2013. if (maid == null)
  2014. {
  2015. Debug.LogError("maid is null. LearningYotogiSkill");
  2016. return;
  2017. }
  2018. int skillId = tjs_param[1].AsInteger();
  2019. maid.status.yotogiSkill.Add(skillId);
  2020. }
  2021. private void TJSFuncIsExistentFile(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2022. {
  2023. if (result == null)
  2024. {
  2025. return;
  2026. }
  2027. if (this.compatibilityMode)
  2028. {
  2029. result.SetBool(false);
  2030. }
  2031. else
  2032. {
  2033. NDebug.Assert(1 == tjs_param.Length, "TJSFuncIsExistentFile args count error.");
  2034. result.SetBool(this.file_system.IsExistentFile(tjs_param[0].AsString()));
  2035. }
  2036. }
  2037. private void TJSFuncIsExistentFileLegacy(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2038. {
  2039. if (result == null)
  2040. {
  2041. return;
  2042. }
  2043. NDebug.Assert(1 == tjs_param.Length, "IsExistentFileLegacy args count error.");
  2044. result.SetBool(GameUty.FileSystemOld.IsExistentFile(tjs_param[0].AsString()));
  2045. }
  2046. private void TJSFuncCheckClearVIP(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2047. {
  2048. if (result == null)
  2049. {
  2050. return;
  2051. }
  2052. NDebug.Assert(1 == tjs_param.Length, "CheckClearVIP args count error.");
  2053. int key = tjs_param[0].AsInteger();
  2054. ReadOnlyDictionary<int, NightWorkState> night_works_state_dic = GameMain.Instance.CharacterMgr.status.night_works_state_dic;
  2055. bool @bool = false;
  2056. if (night_works_state_dic.ContainsKey(key) && night_works_state_dic[key].finish)
  2057. {
  2058. @bool = true;
  2059. }
  2060. result.SetBool(@bool);
  2061. }
  2062. private void TJSFuncIsCBLVersion(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2063. {
  2064. if (result == null)
  2065. {
  2066. return;
  2067. }
  2068. result.SetBool(false);
  2069. }
  2070. private void OldTJSFuncGetRentalNPCName(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2071. {
  2072. NDebug.Assert(this.compatibilityMode || this.tjsLegacyMode, "互換モードではないの、互換モード用関数@GetRentalNPCNameがよばれました");
  2073. if (result == null)
  2074. {
  2075. return;
  2076. }
  2077. result.SetString(string.Empty);
  2078. }
  2079. private void OldTJSFuncIsMarriage(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2080. {
  2081. NDebug.Assert(this.compatibilityMode || this.tjsLegacyMode, "互換モードではないの、互換モード用関数@IsMarriageがよばれました");
  2082. if (result == null)
  2083. {
  2084. return;
  2085. }
  2086. NDebug.Assert(1 == tjs_param.Length, "TJSFuncIsMarriage args count error.");
  2087. int nMaidNo = tjs_param[0].AsInteger();
  2088. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  2089. if (maid != null && maid.status.OldStatus != null)
  2090. {
  2091. result.SetBool(maid.status.OldStatus.isMarriage);
  2092. }
  2093. else
  2094. {
  2095. result.SetBool(false);
  2096. }
  2097. }
  2098. private void OldTJSFuncIsNewWifeFlag(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2099. {
  2100. NDebug.Assert(this.compatibilityMode || this.tjsLegacyMode, "互換モードではないの、互換モード用関数@IsNewWifeFlagがよばれました");
  2101. if (result == null)
  2102. {
  2103. return;
  2104. }
  2105. NDebug.Assert(1 == tjs_param.Length, "TJSFuncIsMarriage args count error.");
  2106. int nMaidNo = tjs_param[0].AsInteger();
  2107. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  2108. if (maid != null && maid.status.OldStatus != null)
  2109. {
  2110. result.SetBool(maid.status.OldStatus.isNewWife);
  2111. }
  2112. else
  2113. {
  2114. result.SetBool(false);
  2115. }
  2116. }
  2117. private void TJSFuncIsMVPEvent(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2118. {
  2119. if (result == null)
  2120. {
  2121. return;
  2122. }
  2123. PlayerStatus.Status status = GameMain.Instance.CharacterMgr.status;
  2124. if (!status.isAvailableRanking)
  2125. {
  2126. result.SetBool(false);
  2127. }
  2128. else if (status.GetFlag("__ランキング日数") % 7 == 0)
  2129. {
  2130. bool @bool = false;
  2131. for (int i = 0; i < GameMain.Instance.CharacterMgr.GetStockMaidCount(); i++)
  2132. {
  2133. Maid stockMaid = GameMain.Instance.CharacterMgr.GetStockMaid(i);
  2134. if (!(stockMaid == null))
  2135. {
  2136. if (stockMaid.status.popularRank == 1)
  2137. {
  2138. @bool = true;
  2139. break;
  2140. }
  2141. }
  2142. }
  2143. result.SetBool(@bool);
  2144. }
  2145. else
  2146. {
  2147. result.SetBool(false);
  2148. }
  2149. }
  2150. private void TJSFuncSetMaidCondition(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2151. {
  2152. NDebug.Assert(2 == tjs_param.Length, "SetMaidCondition args count error.");
  2153. int nMaidNo = tjs_param[0].AsInteger();
  2154. string a = tjs_param[1].AsString();
  2155. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  2156. if (this.compatibilityMode || this.tjsLegacyMode)
  2157. {
  2158. if (a == "緊張")
  2159. {
  2160. maid.status.OldStatus.relation = MaidStatus.Old.Relation.Tonus;
  2161. }
  2162. else if (a == "お近づき")
  2163. {
  2164. maid.status.OldStatus.relation = MaidStatus.Old.Relation.Contact;
  2165. }
  2166. else if (a == "信頼")
  2167. {
  2168. maid.status.OldStatus.relation = MaidStatus.Old.Relation.Trust;
  2169. }
  2170. else if (a == "恋人")
  2171. {
  2172. maid.status.OldStatus.relation = MaidStatus.Old.Relation.Lover;
  2173. }
  2174. else if (a == "愛奴")
  2175. {
  2176. maid.status.OldStatus.relation = MaidStatus.Old.Relation.Slave;
  2177. }
  2178. else if (a == "酔い")
  2179. {
  2180. maid.status.OldStatus.condition = Condition.Drunk;
  2181. }
  2182. else if (a == "お仕置き")
  2183. {
  2184. maid.status.OldStatus.condition = Condition.Osioki;
  2185. }
  2186. else if (a == "酔い解除" || a == "お仕置き解除")
  2187. {
  2188. maid.status.OldStatus.condition = Condition.Null;
  2189. }
  2190. }
  2191. else if (a == "お近づき")
  2192. {
  2193. maid.status.relation = MaidStatus.Relation.Contact;
  2194. }
  2195. else if (a == "信頼")
  2196. {
  2197. maid.status.relation = MaidStatus.Relation.Trust;
  2198. }
  2199. else if (a == "恋人")
  2200. {
  2201. maid.status.relation = MaidStatus.Relation.Lover;
  2202. }
  2203. else if (a == "警戒")
  2204. {
  2205. maid.status.additionalRelation = AdditionalRelation.Vigilance;
  2206. }
  2207. else if (a == "恋人+")
  2208. {
  2209. maid.status.additionalRelation = AdditionalRelation.LoverPlus;
  2210. }
  2211. else if (a == "愛奴")
  2212. {
  2213. maid.status.additionalRelation = AdditionalRelation.Slave;
  2214. }
  2215. else if (a == "Null")
  2216. {
  2217. maid.status.additionalRelation = AdditionalRelation.Null;
  2218. }
  2219. else if (a == "嫁")
  2220. {
  2221. maid.status.specialRelation = SpecialRelation.Married;
  2222. }
  2223. else if (a == "特殊関係解除")
  2224. {
  2225. maid.status.specialRelation = SpecialRelation.Null;
  2226. }
  2227. }
  2228. private void TJSFuncSetSeikeikenFront(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2229. {
  2230. NDebug.Assert(2 == tjs_param.Length, "SetSeikeikenFront args count error.");
  2231. int num = tjs_param[0].AsInteger();
  2232. bool seikeikenFront = tjs_param[1].AsBool();
  2233. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(num);
  2234. Seikeiken seikeiken = maid.status.seikeiken;
  2235. maid.status.SetSeikeikenFront(seikeikenFront);
  2236. if (num == 0 && maid.status.seikeiken != seikeiken)
  2237. {
  2238. if ((this.compatibilityMode || this.tjsLegacyMode) && YotogiOldManager.instans != null)
  2239. {
  2240. YotogiOldManager.instans.OnChangeSeikeiken();
  2241. }
  2242. else if (YotogiManager.instans != null)
  2243. {
  2244. YotogiManager.instans.OnChangeSeikeiken();
  2245. }
  2246. }
  2247. }
  2248. private void TJSFuncSetSeikeikenBack(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2249. {
  2250. NDebug.Assert(2 == tjs_param.Length, "SetSeikeikenBack args count error.");
  2251. int nMaidNo = tjs_param[0].AsInteger();
  2252. bool seikeikenBack = tjs_param[1].AsBool();
  2253. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  2254. maid.status.SetSeikeikenBack(seikeikenBack);
  2255. }
  2256. private void TJSFuncSetInitSeikeiken(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2257. {
  2258. NDebug.Assert(2 == tjs_param.Length, "SetInitSeikeiken args count error.");
  2259. int nMaidNo = tjs_param[0].AsInteger();
  2260. string text = tjs_param[1].AsString();
  2261. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  2262. try
  2263. {
  2264. Seikeiken initSeikeiken = (Seikeiken)Enum.Parse(typeof(Seikeiken), text);
  2265. maid.status.initSeikeiken = initSeikeiken;
  2266. }
  2267. catch (ArgumentException)
  2268. {
  2269. Debug.Log("MaidStatus.Seikeiken\nenum parse error.[" + text + "]");
  2270. }
  2271. }
  2272. private void TJSFuncSetNewItem(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2273. {
  2274. NDebug.Assert(1 == tjs_param.Length, "SetNewItem args count error.");
  2275. if (this.compatibilityMode || this.tjsLegacyMode)
  2276. {
  2277. return;
  2278. }
  2279. string itemName = tjs_param[0].AsString();
  2280. GameMain.Instance.CharacterMgr.status.AddHavePartsItem(itemName);
  2281. }
  2282. private void TJSFuncIsGameInShopItemPurchased(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2283. {
  2284. NDebug.Assert(1 == tjs_param.Length, "IsGameInShopItemPurchased args count error.");
  2285. if (result == null)
  2286. {
  2287. return;
  2288. }
  2289. int num = tjs_param[0].AsInteger();
  2290. PlayerStatus.Status status = GameMain.Instance.CharacterMgr.status;
  2291. if (!status.IsShopLineupItem(num))
  2292. {
  2293. result.SetBool(false);
  2294. }
  2295. if (status.shopLineups.ContainsKey(num))
  2296. {
  2297. result.SetBool(status.shopLineups.Get(num) == ShopItemStatus.Purchased);
  2298. }
  2299. else
  2300. {
  2301. result.SetBool(false);
  2302. }
  2303. }
  2304. private void TJSFuncSetContractType(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2305. {
  2306. NDebug.Assert(2 == tjs_param.Length, "SetContractType args count error.");
  2307. int nMaidNo = tjs_param[0].AsInteger();
  2308. string text = tjs_param[1].AsString();
  2309. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  2310. if (text == "育成中")
  2311. {
  2312. maid.status.contract = Contract.Trainee;
  2313. }
  2314. else if (text == "フリー")
  2315. {
  2316. maid.status.contract = Contract.Free;
  2317. }
  2318. else if (text == "専属")
  2319. {
  2320. maid.status.contract = Contract.Exclusive;
  2321. }
  2322. else
  2323. {
  2324. NDebug.Assert(text + "は不正です", false);
  2325. }
  2326. }
  2327. private void TJSFuncSetFeature(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2328. {
  2329. NDebug.Assert(3 == tjs_param.Length, "SetFeature args count error.");
  2330. int nMaidNo = tjs_param[0].AsInteger();
  2331. string uniqueName = tjs_param[1].AsString();
  2332. bool flag = tjs_param[2].AsBool();
  2333. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  2334. Feature.Data data = Feature.GetData(uniqueName);
  2335. maid.status.AddFeature(data);
  2336. }
  2337. private void TJSFuncSetPropensity(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2338. {
  2339. NDebug.Assert(3 == tjs_param.Length, "SetPropensity args count error.");
  2340. int nMaidNo = tjs_param[0].AsInteger();
  2341. string uniqueName = tjs_param[1].AsString();
  2342. bool flag = tjs_param[2].AsBool();
  2343. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  2344. Propensity.Data data = Propensity.GetData(uniqueName);
  2345. maid.status.AddPropensity(data);
  2346. }
  2347. private void TJSFuncComSetSexualParam(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2348. {
  2349. }
  2350. private void TJSFuncSetNewTrophy(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2351. {
  2352. if (this.compatibilityMode || this.tjsLegacyMode)
  2353. {
  2354. return;
  2355. }
  2356. NDebug.Assert(1 == tjs_param.Length, "SetNewTrophy args count error.");
  2357. int trophyId = tjs_param[0].AsInteger();
  2358. GameMain.Instance.CharacterMgr.status.AddHaveTrophy(trophyId);
  2359. }
  2360. private void TJSFuncCheckTrophyContractType(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2361. {
  2362. if (this.compatibilityMode || this.tjsLegacyMode)
  2363. {
  2364. return;
  2365. }
  2366. GameMain.Instance.CharacterMgr.status.CheckTrophyContractTypeAndrelation();
  2367. }
  2368. private void TJSFuncSetYotogiSelectStageName(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2369. {
  2370. NDebug.Assert(1 == tjs_param.Length, "SetYotogiSelectStageName args count error.");
  2371. this.debug_yotogi_stage_ = tjs_param[0].AsString();
  2372. }
  2373. private void TJSFuncGetYotogiSelectStageName(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2374. {
  2375. if (result == null)
  2376. {
  2377. return;
  2378. }
  2379. if (this.compatibilityMode || this.tjsLegacyMode)
  2380. {
  2381. result.SetString(YotogiOldStageSelectManager.StageName);
  2382. }
  2383. else
  2384. {
  2385. result.SetString(YotogiStageSelectManager.SelectedStage.uniqueName);
  2386. }
  2387. }
  2388. public void TJSFuncIsPluginPack(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2389. {
  2390. if (result == null)
  2391. {
  2392. return;
  2393. }
  2394. NDebug.Assert(1 == tjs_param.Length, "IsPluginPack args count error.");
  2395. if (this.compatibilityMode)
  2396. {
  2397. result.SetBool(false);
  2398. }
  2399. else
  2400. {
  2401. string text = tjs_param[0].AsString();
  2402. if (!PluginData.Contains(text))
  2403. {
  2404. Debug.LogError("IsPluginPackで指定された[" + text + "]は設定されていないプラグイン名です");
  2405. }
  2406. result.SetBool(PluginData.IsEnabled(text));
  2407. }
  2408. }
  2409. public void TJSFuncAddShopLineup(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2410. {
  2411. NDebug.Assert(1 == tjs_param.Length, "TJSFuncAddShopLineup args count error.");
  2412. PlayerStatus.Status status = GameMain.Instance.CharacterMgr.status;
  2413. int num = tjs_param[0].AsInteger();
  2414. if (!status.shopLineups.ContainsKey(num))
  2415. {
  2416. status.AddShopLineup(num);
  2417. }
  2418. }
  2419. public void TJSFuncSetEventItemFlag(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2420. {
  2421. NDebug.Assert(2 == tjs_param.Length, "SetEventItemFlag args count error.");
  2422. PlayerStatus.Status status = GameMain.Instance.CharacterMgr.status;
  2423. bool flag = tjs_param[1].AsInteger() != 0;
  2424. if (flag)
  2425. {
  2426. status.AddHaveItem(tjs_param[0].AsString());
  2427. }
  2428. else
  2429. {
  2430. status.RemoveHaveItem(tjs_param[0].AsString());
  2431. }
  2432. }
  2433. public void TJSFuncIsEventItemFlag(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2434. {
  2435. if (result == null)
  2436. {
  2437. NDebug.Assert("error IsEventItemFlag", false);
  2438. }
  2439. NDebug.Assert(1 == tjs_param.Length, "IsEventItemFlag args count error.");
  2440. PlayerStatus.Status status = GameMain.Instance.CharacterMgr.status;
  2441. result.SetBool(status.IsHaveItem(tjs_param[0].AsString()));
  2442. }
  2443. public void TJSFuncGetVRMode(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2444. {
  2445. if (result == null)
  2446. {
  2447. NDebug.Assert("error GetVRMode", false);
  2448. }
  2449. result.SetInteger((int)GameMain.Instance.VRDeviceTypeID);
  2450. }
  2451. public void TJSFuncIsVRMode(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2452. {
  2453. if (result == null)
  2454. {
  2455. NDebug.Assert("error IsVRMode", false);
  2456. }
  2457. result.SetInteger((!GameMain.Instance.VRMode) ? 0 : 1);
  2458. }
  2459. public void TJSFuncSetDanceData(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2460. {
  2461. NDebug.Assert(1 == tjs_param.Length, "TJSFuncAddShopLineup args count error.");
  2462. string bgm_file_name = tjs_param[0].AsString();
  2463. DanceMain.SelectDanceData = new DanceData
  2464. {
  2465. bgm_file_name = bgm_file_name,
  2466. preset_name = new List<string>(),
  2467. preset_name =
  2468. {
  2469. string.Empty
  2470. }
  2471. };
  2472. DanceMain.KaraokeMode = true;
  2473. RhythmAction_Mgr.KaraokeRecet();
  2474. GameMain.Instance.CMSystem.SetTmpGenericFlag("ダンスOVRカメラタイプ", 0);
  2475. }
  2476. public void TJSFuncGetEventAdded(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2477. {
  2478. if (result == null)
  2479. {
  2480. NDebug.Assert("error GetEventAdded", false);
  2481. }
  2482. result.SetBool(GameMain.Instance.ScenarioSelectMgr.IsEventAdded());
  2483. }
  2484. public void TJSFuncGetLockNTRPlayFlag(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2485. {
  2486. if (result == null)
  2487. {
  2488. NDebug.Assert("error GetLockNTRPlayFlag", false);
  2489. }
  2490. result.SetBool(GameMain.Instance.CharacterMgr.status.lockNTRPlay);
  2491. }
  2492. public void TJSFuncGetLockUserDraftMaid(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2493. {
  2494. if (result == null)
  2495. {
  2496. NDebug.Assert("error GetLockUserDraftMaid", false);
  2497. }
  2498. result.SetBool(GameMain.Instance.CharacterMgr.status.lockUserDraftMaid);
  2499. }
  2500. public void TJSFuncIsComPlayer(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2501. {
  2502. if (result == null)
  2503. {
  2504. NDebug.Assert("error IsComPlayer", false);
  2505. }
  2506. result.SetBool(!GameMain.Instance.CharacterMgr.status.isOldPlayer);
  2507. }
  2508. public void TJSFuncSetPlayerMoney(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2509. {
  2510. NDebug.Assert(1 == tjs_param.Length, "SetPlayerMoney args count error.");
  2511. int num = tjs_param[0].AsInteger();
  2512. GameMain.Instance.CharacterMgr.status.money = (long)num;
  2513. }
  2514. public void TJSFuncGetPlayerMoney(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2515. {
  2516. if (result == null)
  2517. {
  2518. NDebug.Assert("error GetPlayerMoney", false);
  2519. }
  2520. int integer = (2147483647L >= GameMain.Instance.CharacterMgr.status.money) ? ((int)GameMain.Instance.CharacterMgr.status.money) : int.MaxValue;
  2521. result.SetInteger(integer);
  2522. }
  2523. public void TJSFuncSetMaidLeader(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2524. {
  2525. NDebug.Assert(2 == tjs_param.Length, "SetMaidLeader args count error.");
  2526. int nMaidNo = tjs_param[0].AsInteger();
  2527. bool leader = tjs_param[1].AsBool();
  2528. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(nMaidNo);
  2529. if (maid != null)
  2530. {
  2531. maid.status.leader = leader;
  2532. }
  2533. }
  2534. public void TJSFuncSetMaidCostumeFacility(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2535. {
  2536. NDebug.Assert(1 == tjs_param.Length, "UpdateMaidCostumeFacility args count error.");
  2537. int num = tjs_param[0].AsInteger();
  2538. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(num);
  2539. NDebug.Assert(maid != null, string.Format("UpdateMaidCostumeFacility()\nメイド[{0}]番が見つかりませんでした。", num));
  2540. ScheduleMgr.ScheduleTime scheduleTime = (!GameMain.Instance.CharacterMgr.status.isDaytime) ? ScheduleMgr.ScheduleTime.Night : ScheduleMgr.ScheduleTime.DayTime;
  2541. Facility maidAssignedFacility = GameMain.Instance.FacilityMgr.GetMaidAssignedFacility(maid, scheduleTime);
  2542. if (maidAssignedFacility != null)
  2543. {
  2544. Facility.CostumeType typeCostume = maidAssignedFacility.typeCostume;
  2545. if (typeCostume == Facility.CostumeType.Edit)
  2546. {
  2547. maidAssignedFacility.UpdateMaidCostumeToEditCostume(maid, false);
  2548. }
  2549. else if (typeCostume == Facility.CostumeType.Default)
  2550. {
  2551. maidAssignedFacility.UpdateMaidCostumeToDefaultCostume(maid);
  2552. }
  2553. else if (typeCostume == Facility.CostumeType.Heroine)
  2554. {
  2555. MPN[] facilityCostumeEnableMPN = FacilityDataTable.GetFacilityCostumeEnableMPN();
  2556. for (int i = 0; i < facilityCostumeEnableMPN.Length; i++)
  2557. {
  2558. maid.ResetProp(facilityCostumeEnableMPN[i], false);
  2559. }
  2560. }
  2561. }
  2562. else
  2563. {
  2564. NDebug.Warning(string.Format("UpdateMaidCostumeFacility()\nメイド[{0}]番は、現在施設の仕事を持っていません。", num));
  2565. Debug.LogWarningFormat("UpdateMaidCostumeFacility()\nメイド[{0}]番は、現在施設の仕事を持っていません。", new object[]
  2566. {
  2567. num
  2568. });
  2569. }
  2570. }
  2571. public void TJSFuncResetMaidCostumeFacility(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2572. {
  2573. NDebug.Assert(1 == tjs_param.Length, "UpdateMaidCostumeFacility args count error.");
  2574. int num = tjs_param[0].AsInteger();
  2575. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(num);
  2576. NDebug.Assert(maid != null, string.Format("UpdateMaidCostumeFacility()\nメイド[{0}]番が見つかりませんでした。", num));
  2577. MPN[] facilityCostumeEnableMPN = FacilityDataTable.GetFacilityCostumeEnableMPN();
  2578. for (int i = 0; i < facilityCostumeEnableMPN.Length; i++)
  2579. {
  2580. maid.ResetProp(facilityCostumeEnableMPN[i], false);
  2581. }
  2582. }
  2583. public void TJSFuncCallTitleBar(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2584. {
  2585. NDebug.Assert(1 == tjs_param.Length, "CallTitleBar args count error.");
  2586. GameObject gameObject = GameObject.Find("__SceneADV__");
  2587. if (gameObject == null)
  2588. {
  2589. return;
  2590. }
  2591. SceneADV component = gameObject.GetComponent<SceneADV>();
  2592. component.CallTitleBar(tjs_param[0].AsString());
  2593. }
  2594. public void TJSFuncSetCompatibilityMode(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2595. {
  2596. NDebug.Assert(1 == tjs_param.Length, "SetCompatibilityMode args count error.");
  2597. this.compatibilityMode = tjs_param[0].AsBool();
  2598. Debug.Log("スクリプトモード変更 : 互換モード[" + ((!this.compatibilityMode) ? "×]" : "〇]"));
  2599. KagScript kag = this.adv_kag.kag;
  2600. this.compatibilityCallStackDepth = kag.callStackDepth;
  2601. this.compatibilityRCallStackDepth = kag.r_callStackDepth;
  2602. }
  2603. public void TJSFuncIsBuildingFacility(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2604. {
  2605. NDebug.Assert(result != null, "error IsBuildingFacility");
  2606. NDebug.Assert(1 == tjs_param.Length, "IsBuildingFacility args count error.");
  2607. string text = tjs_param[0].AsString();
  2608. FacilityDataTable.FacilityDefaultData facilityDefaultData = FacilityDataTable.GetFacilityDefaultData(text, false);
  2609. NDebug.Assert(facilityDefaultData != null, string.Format("{0} は存在しない情報です", text));
  2610. if (!facilityDefaultData.isEnableData)
  2611. {
  2612. Debug.Log(text + " は有効ではありません");
  2613. result.SetBool(false);
  2614. }
  2615. else
  2616. {
  2617. result.SetBool(GameMain.Instance.FacilityMgr.IsExistTypeFacility(facilityDefaultData.ID));
  2618. }
  2619. }
  2620. public void TJSFuncIsBuildingFacilityUpward(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2621. {
  2622. NDebug.Assert(result != null, "error IsBuildingFacilityUpward");
  2623. NDebug.Assert(1 == tjs_param.Length, "IsBuildingFacilityUpward args count error.");
  2624. string text = tjs_param[0].AsString();
  2625. FacilityDataTable.FacilityDefaultData facilityDefaultData = FacilityDataTable.GetFacilityDefaultData(text, false);
  2626. NDebug.Assert(facilityDefaultData != null, string.Format("{0} は存在しない情報です", text));
  2627. if (!facilityDefaultData.isEnableData)
  2628. {
  2629. Debug.Log(text + " は有効ではありません");
  2630. result.SetBool(false);
  2631. }
  2632. if (facilityDefaultData.isExistUpwardFacility)
  2633. {
  2634. result.SetBool(GameMain.Instance.FacilityMgr.IsExistTypeFacility(facilityDefaultData.upwardFacility.ID));
  2635. }
  2636. else
  2637. {
  2638. result.SetBool(false);
  2639. }
  2640. }
  2641. public void TJSCheckDanceType(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2642. {
  2643. NDebug.Assert(tjs_param.Length != 0, "CheckDanceType:引数が何も指定されてません");
  2644. bool flag = false;
  2645. foreach (TJSVariantRef tjsvariantRef in tjs_param)
  2646. {
  2647. flag |= (RhythmAction_Mgr.NowDance == (RhythmAction_Mgr.DanceType)Enum.Parse(typeof(RhythmAction_Mgr.DanceType), tjsvariantRef.AsString()));
  2648. }
  2649. result.SetBool(flag);
  2650. }
  2651. public void TJSSetMusicRelease(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2652. {
  2653. NDebug.Assert(tjs_param.Length == 1, "SetMusicRelease:指定できる引数は1つまでです");
  2654. VsDanceDataMgr.Instance.MusicRelese(tjs_param[0].AsInteger());
  2655. }
  2656. public void TJSSetVsSetting(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2657. {
  2658. NDebug.Assert(tjs_param.Length == 1, "SetVsSetting:指定できる引数は1つまでです");
  2659. VsDanceDataMgr.Instance.SelectSetting(tjs_param[0].AsInteger());
  2660. }
  2661. public void TJSNeedDanceResult(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2662. {
  2663. bool flag = true;
  2664. flag &= (RhythmAction_Mgr.NowDance != RhythmAction_Mgr.DanceType.VS_Skip);
  2665. flag &= (RhythmAction_Mgr.NowDance != RhythmAction_Mgr.DanceType.Touch);
  2666. flag &= (RhythmAction_Mgr.NowDance != RhythmAction_Mgr.DanceType.View);
  2667. flag &= (RhythmAction_Mgr.NowDance != RhythmAction_Mgr.DanceType.Encore);
  2668. result.SetBool(flag);
  2669. }
  2670. public void TJSGetChallengeRank(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2671. {
  2672. NDebug.Assert(tjs_param.Length > 0, "GetChallengeRank:引数が指定されてません");
  2673. bool flag = false;
  2674. foreach (TJSVariantRef tjsvariantRef in tjs_param)
  2675. {
  2676. flag |= (tjsvariantRef.AsString() == Result_Display.GetData("Rank"));
  2677. }
  2678. result.SetBool(flag);
  2679. }
  2680. public void TJSBjDayFirst(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2681. {
  2682. int days = GameMain.Instance.CharacterMgr.status.days;
  2683. int flag = GameMain.Instance.CharacterMgr.status.GetFlag("BJ最終プレイ日");
  2684. bool @bool = days != flag;
  2685. foreach (TJSVariantRef tjsvariantRef in tjs_param)
  2686. {
  2687. if (tjsvariantRef.AsString() == "ブラックジャック終了")
  2688. {
  2689. GameMain.Instance.CharacterMgr.status.SetFlag("BJ最終プレイ日", days);
  2690. break;
  2691. }
  2692. }
  2693. result.SetBool(@bool);
  2694. }
  2695. public void TJSCasinoShopBuy(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2696. {
  2697. NDebug.Assert(tjs_param.Length != 0, "CasinoShopBuy:引数が指定されてません");
  2698. bool flag = false;
  2699. foreach (TJSVariantRef tjsvariantRef in tjs_param)
  2700. {
  2701. int num = tjsvariantRef.AsInteger();
  2702. flag = false;
  2703. foreach (CasinoShopItem casinoShopItem in CasinoDataMgr.Instance.GetShopItem())
  2704. {
  2705. if (casinoShopItem.ID == num && casinoShopItem.IsSoldOut)
  2706. {
  2707. flag = true;
  2708. break;
  2709. }
  2710. }
  2711. if (!flag)
  2712. {
  2713. break;
  2714. }
  2715. }
  2716. result.SetBool(flag);
  2717. }
  2718. public void TJSSetEventEndFlag(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2719. {
  2720. NDebug.Assert(tjs_param.Length == 3, "SetEventEndFlag:引数が3つ必要です");
  2721. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(tjs_param[0].AsInteger());
  2722. if (!maid)
  2723. {
  2724. maid = GameMain.Instance.CharacterMgr.GetStockMaid(tjs_param[0].AsInteger());
  2725. if (!maid)
  2726. {
  2727. return;
  2728. }
  2729. }
  2730. if (!GameMain.Instance.ScenarioSelectMgr.ExistScenario(tjs_param[1].AsInteger()))
  2731. {
  2732. Debug.LogErrorFormat("選択シナリオ:{0}は存在しません", new object[]
  2733. {
  2734. tjs_param[1].AsInteger()
  2735. });
  2736. return;
  2737. }
  2738. maid.status.SetEventEndFlag(tjs_param[1].AsInteger(), tjs_param[2].AsBool());
  2739. }
  2740. public void TJSFuncIsKasizukiGuest(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2741. {
  2742. if (result == null)
  2743. {
  2744. NDebug.Assert("error IsKasizukiGuest", false);
  2745. }
  2746. ManDataType nowManType = (ManDataType)GameMain.Instance.KasizukiMgr.GetNowManType();
  2747. result.SetBool(nowManType != ManDataType.主人公);
  2748. }
  2749. public void TJSFuncGetKasizukiSelectRoomName(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2750. {
  2751. if (result == null)
  2752. {
  2753. NDebug.Assert("error GetKasizukiSelectRoomName", false);
  2754. }
  2755. RoomData.Data data = RoomData.GetData(GameMain.Instance.KasizukiMgr.GetSystemData<int>(SystemDataType.選択部屋));
  2756. result.SetString(data.uniqueName);
  2757. }
  2758. public void TJSFuncGetKasizukiMaidLikability(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2759. {
  2760. if (result == null)
  2761. {
  2762. NDebug.Assert("error GetKasizukiMaidLikability", false);
  2763. }
  2764. KasizukiManager kasizukiMgr = GameMain.Instance.KasizukiMgr;
  2765. ManDataType nowManType = (ManDataType)kasizukiMgr.GetNowManType();
  2766. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(0);
  2767. int integer = -1;
  2768. if (nowManType == ManDataType.主人公)
  2769. {
  2770. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F本編, true);
  2771. }
  2772. else if (nowManType == ManDataType.傅き男1)
  2773. {
  2774. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男1, true);
  2775. }
  2776. else if (nowManType == ManDataType.傅き男2)
  2777. {
  2778. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男2, true);
  2779. }
  2780. else if (nowManType == ManDataType.傅き男3)
  2781. {
  2782. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男3, true);
  2783. }
  2784. else if (nowManType == ManDataType.傅き男4)
  2785. {
  2786. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男4, true);
  2787. }
  2788. else if (nowManType == ManDataType.傅き男5)
  2789. {
  2790. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男5, true);
  2791. }
  2792. else if (nowManType == ManDataType.傅き男6)
  2793. {
  2794. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男6, true);
  2795. }
  2796. else if (nowManType == ManDataType.傅き男7)
  2797. {
  2798. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男7, true);
  2799. }
  2800. else if (nowManType == ManDataType.傅き男8)
  2801. {
  2802. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男8, true);
  2803. }
  2804. else if (nowManType == ManDataType.傅き男9)
  2805. {
  2806. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男9, true);
  2807. }
  2808. else if (nowManType == ManDataType.傅き男10)
  2809. {
  2810. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男10, true);
  2811. }
  2812. else if (nowManType == ManDataType.傅き男11)
  2813. {
  2814. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男11, true);
  2815. }
  2816. else if (nowManType == ManDataType.傅き男12)
  2817. {
  2818. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男12, true);
  2819. }
  2820. else if (nowManType == ManDataType.傅き男13)
  2821. {
  2822. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男13, true);
  2823. }
  2824. else if (nowManType == ManDataType.傅き男14)
  2825. {
  2826. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男14, true);
  2827. }
  2828. else if (nowManType == ManDataType.傅き男15)
  2829. {
  2830. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男15, true);
  2831. }
  2832. else if (nowManType == ManDataType.傅き男16)
  2833. {
  2834. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男16, true);
  2835. }
  2836. else if (nowManType == ManDataType.傅き男17)
  2837. {
  2838. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男17, true);
  2839. }
  2840. else if (nowManType == ManDataType.傅き男18)
  2841. {
  2842. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男18, true);
  2843. }
  2844. else if (nowManType == ManDataType.傅き男19)
  2845. {
  2846. integer = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男19, true);
  2847. }
  2848. result.SetInteger(integer);
  2849. }
  2850. public void TJSFuncGetKasizukiMaidLikabilityName(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2851. {
  2852. if (result == null)
  2853. {
  2854. NDebug.Assert("error GetKasizukiMaidLikabilityName", false);
  2855. }
  2856. KasizukiManager kasizukiMgr = GameMain.Instance.KasizukiMgr;
  2857. ManDataType nowManType = (ManDataType)kasizukiMgr.GetNowManType();
  2858. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(0);
  2859. int likability = -1;
  2860. if (nowManType == ManDataType.主人公)
  2861. {
  2862. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F本編, true);
  2863. }
  2864. else if (nowManType == ManDataType.傅き男1)
  2865. {
  2866. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男1, true);
  2867. }
  2868. else if (nowManType == ManDataType.傅き男2)
  2869. {
  2870. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男2, true);
  2871. }
  2872. else if (nowManType == ManDataType.傅き男3)
  2873. {
  2874. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男3, true);
  2875. }
  2876. else if (nowManType == ManDataType.傅き男4)
  2877. {
  2878. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男4, true);
  2879. }
  2880. else if (nowManType == ManDataType.傅き男5)
  2881. {
  2882. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男5, true);
  2883. }
  2884. else if (nowManType == ManDataType.傅き男6)
  2885. {
  2886. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男6, true);
  2887. }
  2888. else if (nowManType == ManDataType.傅き男7)
  2889. {
  2890. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男7, true);
  2891. }
  2892. else if (nowManType == ManDataType.傅き男8)
  2893. {
  2894. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男8, true);
  2895. }
  2896. else if (nowManType == ManDataType.傅き男9)
  2897. {
  2898. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男9, true);
  2899. }
  2900. else if (nowManType == ManDataType.傅き男10)
  2901. {
  2902. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男10, true);
  2903. }
  2904. else if (nowManType == ManDataType.傅き男11)
  2905. {
  2906. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男11, true);
  2907. }
  2908. else if (nowManType == ManDataType.傅き男12)
  2909. {
  2910. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男12, true);
  2911. }
  2912. else if (nowManType == ManDataType.傅き男13)
  2913. {
  2914. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男13, true);
  2915. }
  2916. else if (nowManType == ManDataType.傅き男14)
  2917. {
  2918. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男14, true);
  2919. }
  2920. else if (nowManType == ManDataType.傅き男15)
  2921. {
  2922. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男15, true);
  2923. }
  2924. else if (nowManType == ManDataType.傅き男16)
  2925. {
  2926. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男16, true);
  2927. }
  2928. else if (nowManType == ManDataType.傅き男17)
  2929. {
  2930. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男17, true);
  2931. }
  2932. else if (nowManType == ManDataType.傅き男18)
  2933. {
  2934. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男18, true);
  2935. }
  2936. else if (nowManType == ManDataType.傅き男19)
  2937. {
  2938. likability = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.好感度\uFF3F傅き男19, true);
  2939. }
  2940. string likabilityName = LikabilityReplace.GetLikabilityName(likability);
  2941. result.SetString(likabilityName);
  2942. }
  2943. public void TJSFuncGetKasizukiMaidWorkCount(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2944. {
  2945. if (result == null)
  2946. {
  2947. NDebug.Assert("error GetKasizukiMaidWorkCount", false);
  2948. }
  2949. KasizukiManager kasizukiMgr = GameMain.Instance.KasizukiMgr;
  2950. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(0);
  2951. int maidData = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.仕事回数, true);
  2952. result.SetInteger(maidData);
  2953. }
  2954. public void TJSFuncGetKasizukiMaidWorkCountName(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2955. {
  2956. if (result == null)
  2957. {
  2958. NDebug.Assert("error GetKasizukiMaidWorkCountName", false);
  2959. }
  2960. KasizukiManager kasizukiMgr = GameMain.Instance.KasizukiMgr;
  2961. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(0);
  2962. int maidData = kasizukiMgr.GetMaidData<int>(maid, MaidDataType.仕事回数, true);
  2963. string workCountName = WorkCountReplace.GetWorkCountName(maidData);
  2964. result.SetString(workCountName);
  2965. }
  2966. public void TJSFuncGetKasizukiSystemFlag(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2967. {
  2968. KasizukiManager kasizukiMgr = GameMain.Instance.KasizukiMgr;
  2969. kasizukiMgr.TJSFuncGetKasizukiSystemFlag(tjs_param, result);
  2970. }
  2971. public void TJSFuncSetKasizukiSystemFlag(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2972. {
  2973. KasizukiManager kasizukiMgr = GameMain.Instance.KasizukiMgr;
  2974. kasizukiMgr.TJSFuncSetKasizukiSystemFlag(tjs_param, result);
  2975. }
  2976. public void TJSFuncAddKasizukiSystemFlag(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2977. {
  2978. KasizukiManager kasizukiMgr = GameMain.Instance.KasizukiMgr;
  2979. kasizukiMgr.TJSFuncAddKasizukiSystemFlag(tjs_param, result);
  2980. }
  2981. public void TJSFuncSetKasizukiPassFlag(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2982. {
  2983. KasizukiManager kasizukiMgr = GameMain.Instance.KasizukiMgr;
  2984. kasizukiMgr.TJSFuncSetKasizukiPassFlag(tjs_param, result);
  2985. }
  2986. public void TJSFuncGetKasizukiMaidFlag(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2987. {
  2988. KasizukiManager kasizukiMgr = GameMain.Instance.KasizukiMgr;
  2989. kasizukiMgr.TJSFuncGetKasizukiMaidFlag(tjs_param, result);
  2990. }
  2991. public void TJSFuncSetKasizukiMaidFlag(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2992. {
  2993. KasizukiManager kasizukiMgr = GameMain.Instance.KasizukiMgr;
  2994. kasizukiMgr.TJSFuncSetKasizukiMaidFlag(tjs_param, result);
  2995. }
  2996. public void TJSFuncIsKasizukiCorrectSenarioFlag(TJSVariantRef[] tjs_param, TJSVariantRef result)
  2997. {
  2998. KasizukiManager kasizukiMgr = GameMain.Instance.KasizukiMgr;
  2999. kasizukiMgr.TJSFuncIsKasizukiCorrectSenarioFlag(tjs_param, result);
  3000. }
  3001. public void TJSFuncGetKasizukiGuestID(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3002. {
  3003. if (result == null)
  3004. {
  3005. NDebug.Assert("error GetKasizukiGuestID", false);
  3006. }
  3007. result.SetInteger(GameMain.Instance.KasizukiMgr.GetNowManType());
  3008. }
  3009. public void TJSFuncIsVRKaraokeMode(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3010. {
  3011. if (result == null)
  3012. {
  3013. NDebug.Assert("error IsVRKaraokeMode", false);
  3014. }
  3015. result.SetInteger((!SceneVRCommunication.Instance.KaraokeMode) ? 0 : 1);
  3016. }
  3017. public void TJSFuncGetGameMode(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3018. {
  3019. result.SetString(GameModeManager.nowGameMode.ToString());
  3020. }
  3021. public void TJSFuncIsLifeMode(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3022. {
  3023. result.SetBool(GameModeManager.nowGameMode == GameModeManager.Type.LifeMode);
  3024. }
  3025. public void TJSFuncIsPrivateModeMaid(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3026. {
  3027. if (result == null)
  3028. {
  3029. return;
  3030. }
  3031. NDebug.Assert(tjs_param.Length == 1, "IsPrivateModeMaid args count error.");
  3032. NDebug.Assert(tjs_param[0].type == TJSVariantRef.Type.tvtInteger, "error.");
  3033. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(tjs_param[0].AsInteger());
  3034. result.SetBool(maid != null && maid == PrivateModeMgr.Instance.PrivateMaid);
  3035. }
  3036. public void TJSFuncIsPrivateModeDayTalkEnabled(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3037. {
  3038. if (result != null)
  3039. {
  3040. result.SetBool(GameMain.Instance.CMSystem.SConfig.PrivateModeSettingDayTalkEnabled);
  3041. }
  3042. }
  3043. public void TJSFuncIsPrivateModeNightTalkEnabled(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3044. {
  3045. if (result != null)
  3046. {
  3047. result.SetBool(GameMain.Instance.CMSystem.SConfig.PrivateModeSettingNightTalkEnabled);
  3048. }
  3049. }
  3050. public void TJSFuncIsPrivateModeHEventEnabled(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3051. {
  3052. if (result != null)
  3053. {
  3054. result.SetBool(GameMain.Instance.CMSystem.SConfig.PrivateModeSettingHEventEnabled);
  3055. }
  3056. }
  3057. public void TJSFuncSetPrivateModeMaid(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3058. {
  3059. Maid privateMaid = PrivateModeMgr.Instance.PrivateMaid;
  3060. if (privateMaid == null)
  3061. {
  3062. if (result != null)
  3063. {
  3064. result.SetBool(false);
  3065. }
  3066. return;
  3067. }
  3068. int f_nActiveSlotNo = 0;
  3069. if (tjs_param.Length > 0)
  3070. {
  3071. f_nActiveSlotNo = tjs_param[0].AsInteger();
  3072. }
  3073. GameMain.Instance.CharacterMgr.SetActiveMaid(privateMaid, f_nActiveSlotNo);
  3074. privateMaid.Visible = true;
  3075. if (result != null)
  3076. {
  3077. result.SetBool(true);
  3078. }
  3079. }
  3080. public void TJSFuncSetLockNTRPlay(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3081. {
  3082. NDebug.Assert(tjs_param.Length == 1, "SetLockNTRPlay:引数が1つ必要です");
  3083. GameMain.Instance.CharacterMgr.status.lockNTRPlay = tjs_param[0].AsBool();
  3084. }
  3085. public void TJSFuncIsEnabeldAdditionalRelation(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3086. {
  3087. if (result == null)
  3088. {
  3089. return;
  3090. }
  3091. result.SetBool(Product.enabeldAdditionalRelation);
  3092. }
  3093. public void TJSFuncHireScoutMaid(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3094. {
  3095. if (GameMain.Instance.CharacterMgr.GetMaid(0) == null)
  3096. {
  3097. return;
  3098. }
  3099. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(0);
  3100. ScoutManager.Instance.HireScoutMaid(maid);
  3101. }
  3102. public void TJSFuncSuspendedScout(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3103. {
  3104. if (GameMain.Instance.CharacterMgr.GetMaid(0) == null)
  3105. {
  3106. return;
  3107. }
  3108. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(0);
  3109. ScoutManager.Instance.SuspendedScout(maid);
  3110. }
  3111. public void TJSFuncCancelScout(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3112. {
  3113. if (GameMain.Instance.CharacterMgr.GetMaid(0) == null)
  3114. {
  3115. return;
  3116. }
  3117. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(0);
  3118. ScoutManager.Instance.CancelScout(maid);
  3119. }
  3120. public void TJSFuncIsCRCBody(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3121. {
  3122. result.SetBool(false);
  3123. }
  3124. public void TJSFuncGetRemainingDanceTime(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3125. {
  3126. if (result == null)
  3127. {
  3128. NDebug.Assert("error GetRemainingDanceTime", false);
  3129. }
  3130. float num;
  3131. if (RhythmAction_Mgr.Instance != null)
  3132. {
  3133. num = RhythmAction_Mgr.Instance.RemainingTime;
  3134. }
  3135. else
  3136. {
  3137. string message = "リズムアクションマネージャのインスタンスが見つかりません。-1を返します。";
  3138. Debug.LogWarning(message);
  3139. num = -0.001f;
  3140. }
  3141. result.SetInteger(Mathf.RoundToInt(num * 1000f));
  3142. }
  3143. public void TJSFuncGetYotogiCommandClickCount(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3144. {
  3145. if (result == null)
  3146. {
  3147. NDebug.Assert("error GetYotogiCommandClickCount", false);
  3148. }
  3149. NDebug.Assert(tjs_param.Length == 2, "GetYotogiCommandClickCount:引数が2つ必要です");
  3150. string text = tjs_param[0].AsString();
  3151. bool flag = tjs_param[1].AsBool();
  3152. result.SetInteger(0);
  3153. if (YotogiManager.instans == null || YotogiManager.instans.play_mgr == null || string.IsNullOrEmpty(text))
  3154. {
  3155. return;
  3156. }
  3157. Dictionary<string, int> dictionary = (!flag) ? YotogiManager.instans.play_mgr.commandClickCountSingle : YotogiManager.instans.play_mgr.commandClickCountTotal;
  3158. int integer = 0;
  3159. dictionary.TryGetValue(text, out integer);
  3160. result.SetInteger(integer);
  3161. }
  3162. public void TJSFuncSetYotogiStage(TJSVariantRef[] tjs_param, TJSVariantRef result)
  3163. {
  3164. NDebug.Assert(1 <= tjs_param.Length && tjs_param.Length <= 2, "SetYotogiStage:引数が1つ,もしくは2つである必要があります");
  3165. YotogiStage.Data data = YotogiStage.GetData(tjs_param[0].AsString());
  3166. bool isDayTime = GameMain.Instance.CharacterMgr.status.isDaytime;
  3167. if (tjs_param.Length == 2)
  3168. {
  3169. isDayTime = tjs_param[1].AsBool();
  3170. }
  3171. YotogiStageSelectManager.SelectStage(data, isDayTime);
  3172. }
  3173. public void OnReturnEvent(string fileName, int line)
  3174. {
  3175. if (this.compatibilityMode)
  3176. {
  3177. KagScript kag = this.adv_kag.kag;
  3178. int num = kag.callStackDepth - 1;
  3179. int r_callStackDepth = kag.r_callStackDepth;
  3180. if (this.compatibilityCallStackDepth == num && this.compatibilityRCallStackDepth == r_callStackDepth)
  3181. {
  3182. this.compatibilityMode = false;
  3183. }
  3184. }
  3185. }
  3186. public void OnRReturnEvent(string fileName, string labelName)
  3187. {
  3188. if (this.compatibilityMode)
  3189. {
  3190. KagScript kag = this.adv_kag.kag;
  3191. int callStackDepth = kag.callStackDepth;
  3192. int num = kag.r_callStackDepth - 1;
  3193. if (this.compatibilityCallStackDepth == callStackDepth && this.compatibilityRCallStackDepth == num)
  3194. {
  3195. this.compatibilityMode = false;
  3196. }
  3197. }
  3198. }
  3199. public void Dispose()
  3200. {
  3201. this.Dispose(true);
  3202. GC.SuppressFinalize(this);
  3203. }
  3204. protected void Dispose(bool is_release_managed_code)
  3205. {
  3206. if (this.is_disposed_)
  3207. {
  3208. return;
  3209. }
  3210. foreach (KeyValuePair<int, MotionKagManager> keyValuePair in this.kag_mot_dic_)
  3211. {
  3212. keyValuePair.Value.Dispose();
  3213. }
  3214. this.kag_mot_dic_.Clear();
  3215. if (this.adv_kag_ != null)
  3216. {
  3217. this.adv_kag_.Dispose();
  3218. }
  3219. if (this.yotogi_kag_ != null)
  3220. {
  3221. this.yotogi_kag_.Dispose();
  3222. }
  3223. if (this.privatemode_touch_kag != null)
  3224. {
  3225. this.privatemode_touch_kag.Dispose();
  3226. }
  3227. if (this.tmp_kag_ != null)
  3228. {
  3229. this.tmp_kag_.Dispose();
  3230. }
  3231. if (this.tjs_ != null)
  3232. {
  3233. this.tjs_.Dispose();
  3234. }
  3235. this.is_disposed_ = true;
  3236. }
  3237. public void Serialize(BinaryWriter binary)
  3238. {
  3239. binary.Write("CM3D2_SCRIPT");
  3240. binary.Write(1550);
  3241. this.adv_kag_.Serialize(binary);
  3242. }
  3243. public void Deserialize(BinaryReader binary)
  3244. {
  3245. this.compatibilityMode = false;
  3246. string a = binary.ReadString();
  3247. NDebug.Assert(a == "CM3D2_SCRIPT", "SCRIPTのヘッダーが不正です。");
  3248. int num = binary.ReadInt32();
  3249. this.adv_kag_.Deserialize(binary);
  3250. this.yotogi_kag_.Dispose();
  3251. this.yotogi_kag_ = new YotogiKagManager(this.tjs_, this);
  3252. this.yotogi_kag_.Initialize();
  3253. this.privatemode_touch_kag.Dispose();
  3254. this.privatemode_touch_kag = new PrivateMaidTouchKagManager(this.tjs_, this);
  3255. this.privatemode_touch_kag.Initialize();
  3256. foreach (KeyValuePair<int, MotionKagManager> keyValuePair in this.kag_mot_dic_)
  3257. {
  3258. keyValuePair.Value.Dispose();
  3259. }
  3260. this.kag_mot_dic_.Clear();
  3261. MotionKagManager motionKagManager = new MotionKagManager(this.tjs_, this);
  3262. motionKagManager.Initialize();
  3263. motionKagManager.SetSloatNo(0);
  3264. this.kag_mot_dic_.Add(0, motionKagManager);
  3265. this.ExecScript("global.tf = new Dictionary();");
  3266. SubtitleMovieManager.DestroyGlobalInstance();
  3267. }
  3268. public bool compatibilityMode
  3269. {
  3270. get
  3271. {
  3272. return this.compatibilityMode_;
  3273. }
  3274. set
  3275. {
  3276. this.compatibilityMode_ = value;
  3277. if (this.adv_kag_ != null && this.adv_kag_.kag != null)
  3278. {
  3279. this.adv_kag_.kag.SetFileSystem(this.file_system);
  3280. }
  3281. foreach (KeyValuePair<int, MotionKagManager> keyValuePair in this.kag_mot_dic_)
  3282. {
  3283. keyValuePair.Value.kag.SetFileSystem(this.file_system);
  3284. }
  3285. if (this.yotogi_kag_ != null && this.yotogi_kag_.kag != null)
  3286. {
  3287. this.yotogi_kag_.kag.SetFileSystem(this.file_system);
  3288. }
  3289. if (GameMain.Instance.SoundMgr != null)
  3290. {
  3291. GameMain.Instance.SoundMgr.compatibilityMode = value;
  3292. }
  3293. this.StopMotionScript();
  3294. }
  3295. }
  3296. public bool tjsLegacyMode
  3297. {
  3298. get
  3299. {
  3300. return DailyMgr.IsLegacy;
  3301. }
  3302. }
  3303. public bool is_motion_all_prop_seq { get; set; }
  3304. public Maid motion_all_prop_seq_maid { get; set; }
  3305. public bool is_motion_blend { get; set; }
  3306. public TJSScript tjs
  3307. {
  3308. get
  3309. {
  3310. return this.tjs_;
  3311. }
  3312. }
  3313. public ADVKagManager adv_kag
  3314. {
  3315. get
  3316. {
  3317. return this.adv_kag_;
  3318. }
  3319. }
  3320. public YotogiKagManager yotogi_kag
  3321. {
  3322. get
  3323. {
  3324. return this.yotogi_kag_;
  3325. }
  3326. }
  3327. public BaseKagManager tmp_kag
  3328. {
  3329. get
  3330. {
  3331. return this.tmp_kag_;
  3332. }
  3333. }
  3334. public PrivateMaidTouchKagManager privatemode_touch_kag { get; private set; }
  3335. public Dictionary<int, MotionKagManager> kag_mot_dic
  3336. {
  3337. get
  3338. {
  3339. return this.kag_mot_dic_;
  3340. }
  3341. }
  3342. public AFileSystemBase file_system
  3343. {
  3344. get
  3345. {
  3346. return (!this.compatibilityMode) ? GameUty.FileSystem : GameUty.FileSystemOld;
  3347. }
  3348. }
  3349. private TJSScript tjs_;
  3350. private Dictionary<int, MotionKagManager> kag_mot_dic_ = new Dictionary<int, MotionKagManager>();
  3351. private ADVKagManager adv_kag_;
  3352. private YotogiKagManager yotogi_kag_;
  3353. private BaseKagManager tmp_kag_;
  3354. private MessageWindowMgr message_mgr_;
  3355. private bool is_disposed_;
  3356. private string debug_yotogi_stage_;
  3357. private bool compatibilityMode_;
  3358. private List<Maid> stock_maid_loop_list = new List<Maid>();
  3359. private int compatibilityCallStackDepth;
  3360. private int compatibilityRCallStackDepth;
  3361. [CompilerGenerated]
  3362. private static Comparison<Maid> <>f__mg$cache0;
  3363. }