ScriptManagerFast.cs 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using UnityEngine;
  5. public class ScriptManagerFast
  6. {
  7. public ScriptManagerFast(ScriptManager f_ParentScriptMgr)
  8. {
  9. this.m_ParentScriptMgr = f_ParentScriptMgr;
  10. this.m_MotionKag = new MotionKagManager(f_ParentScriptMgr.tjs, f_ParentScriptMgr);
  11. this.m_MotionKag.Initialize();
  12. this.m_KagCache = new ScriptManagerFast.KagParserFastCache(this.m_MotionKag);
  13. this.m_listKagSlotSet.Add(new ScriptManagerFast.KagSet(this.m_ParentScriptMgr, this.m_KagCache, 0, null));
  14. }
  15. public void Initialize()
  16. {
  17. }
  18. ~ScriptManagerFast()
  19. {
  20. this.SelfDispose();
  21. }
  22. public void SelfDispose()
  23. {
  24. if (this.is_disposed_)
  25. {
  26. return;
  27. }
  28. foreach (ScriptManagerFast.KagSet kagSet in this.m_listKagSlotSet)
  29. {
  30. kagSet.SelfDispose();
  31. }
  32. if (this.m_MotionCacheKag != null)
  33. {
  34. this.m_MotionCacheKag.SelfDispose();
  35. }
  36. if (this.m_MotionKag != null)
  37. {
  38. this.m_MotionKag.Dispose();
  39. }
  40. GC.SuppressFinalize(this);
  41. this.is_disposed_ = true;
  42. }
  43. public bool LoadAndCacheScript(string f_strFileName)
  44. {
  45. this.m_KagCache.LoadAndCacheScript(f_strFileName);
  46. return true;
  47. }
  48. public void StartMotionScript(string f_strFileName, string f_strLabel = "", int f_nSlot = 0, Maid f_maid = null)
  49. {
  50. ScriptManagerFast.KagSet kagSet = this.m_listKagSlotSet.Find((ScriptManagerFast.KagSet a) => a.m_nSlotNo == f_nSlot);
  51. if (kagSet == null)
  52. {
  53. kagSet = new ScriptManagerFast.KagSet(this.m_ParentScriptMgr, this.m_KagCache, f_nSlot, f_maid);
  54. this.m_listKagSlotSet.Add(kagSet);
  55. }
  56. kagSet.m_KagMgr.Reset();
  57. kagSet.m_KagMgr.LoadScript(f_strFileName);
  58. if (!string.IsNullOrEmpty(f_strLabel))
  59. {
  60. kagSet.m_KagMgr.Jump(f_strLabel);
  61. }
  62. kagSet.m_KagMgr.Start();
  63. }
  64. public void StopAndResetScriptAll()
  65. {
  66. for (int i = 0; i < this.m_listKagSlotSet.Count; i++)
  67. {
  68. this.m_listKagSlotSet[i].m_KagMgr.Reset();
  69. }
  70. }
  71. public void StopAndResetScript(int f_nSlot)
  72. {
  73. ScriptManagerFast.KagSet kagSet = this.m_listKagSlotSet.Find((ScriptManagerFast.KagSet a) => a.m_nSlotNo == f_nSlot);
  74. if (kagSet != null)
  75. {
  76. kagSet.m_KagMgr.Reset();
  77. }
  78. }
  79. private ScriptManagerFast.MotionCacheKagManagerFast GetMotionCacheKag()
  80. {
  81. if (this.m_MotionCacheKag == null)
  82. {
  83. this.m_MotionCacheKag = new ScriptManagerFast.MotionCacheKagManagerFast(this.m_KagCache, GameMain.Instance.ScriptMgr, null);
  84. this.m_MotionCacheKag.Initialize();
  85. }
  86. return this.m_MotionCacheKag;
  87. }
  88. public void LoadMotionCacheKag(string f_strFileName)
  89. {
  90. ScriptManagerFast.MotionCacheKagManagerFast motionCacheKag = this.GetMotionCacheKag();
  91. if (motionCacheKag.LoadScript(f_strFileName))
  92. {
  93. motionCacheKag.Start();
  94. while (!motionCacheKag.IsFinished())
  95. {
  96. motionCacheKag.Update();
  97. }
  98. }
  99. }
  100. public void Update()
  101. {
  102. for (int i = 0; i < this.m_listKagSlotSet.Count; i++)
  103. {
  104. this.m_listKagSlotSet[i].m_KagMgr.Update();
  105. }
  106. }
  107. private bool is_disposed_;
  108. private MotionKagManager m_MotionKag;
  109. private ScriptManager m_ParentScriptMgr;
  110. private List<ScriptManagerFast.KagSet> m_listKagSlotSet = new List<ScriptManagerFast.KagSet>();
  111. private ScriptManagerFast.KagParserFastCache m_KagCache;
  112. private ScriptManagerFast.MotionCacheKagManagerFast m_MotionCacheKag;
  113. public class TJSVariantRefFast : TJSVariantRef
  114. {
  115. public TJSVariantRefFast(string value_str)
  116. {
  117. if (value_str != null)
  118. {
  119. this.value_string_ = value_str;
  120. this.type_ = TJSVariantRef.Type.tvtString;
  121. if (float.TryParse(value_str, out this.value_float_))
  122. {
  123. this.type_ = TJSVariantRef.Type.tvtReal;
  124. }
  125. if (int.TryParse(value_str, out this.value_int_))
  126. {
  127. this.type_ = TJSVariantRef.Type.tvtInteger;
  128. }
  129. if (bool.TryParse(value_str, out this.value_bool_))
  130. {
  131. this.type_ = TJSVariantRef.Type.tvtInteger;
  132. }
  133. }
  134. else
  135. {
  136. this.type_ = TJSVariantRef.Type.tvtVoid;
  137. }
  138. }
  139. public override void Clear()
  140. {
  141. }
  142. public override int AsInteger()
  143. {
  144. return this.value_int_;
  145. }
  146. public override bool AsBool()
  147. {
  148. return this.value_bool_;
  149. }
  150. public override float AsReal()
  151. {
  152. return this.value_float_;
  153. }
  154. public override string AsString()
  155. {
  156. return this.value_string_;
  157. }
  158. public override void SetInteger(int nums)
  159. {
  160. this.value_int_ = nums;
  161. }
  162. public override void SetBool(bool value)
  163. {
  164. this.value_bool_ = value;
  165. }
  166. public override void SetReal(float nums)
  167. {
  168. this.value_float_ = nums;
  169. }
  170. public override void SetString(string str)
  171. {
  172. this.value_string_ = str;
  173. }
  174. public override TJSVariantRef.Type type
  175. {
  176. get
  177. {
  178. return this.type_;
  179. }
  180. }
  181. private TJSVariantRef.Type type_;
  182. private int value_int_;
  183. private bool value_bool_;
  184. private float value_float_;
  185. private string value_string_;
  186. }
  187. public class KagTagSupportFast : KagTagSupport
  188. {
  189. ~KagTagSupportFast()
  190. {
  191. }
  192. public void AddTagProperty(string prop_name, string prop_value)
  193. {
  194. this.m_dicTJSVariant.Add(prop_name, new ScriptManagerFast.TJSVariantRefFast(prop_value));
  195. }
  196. public override bool IsValid(string prop_name)
  197. {
  198. return this.m_dicTJSVariant.ContainsKey(prop_name);
  199. }
  200. public override TJSVariantRef GetTagProperty(string prop_name)
  201. {
  202. ScriptManagerFast.TJSVariantRefFast result = null;
  203. this.m_dicTJSVariant.TryGetValue(prop_name, out result);
  204. return result;
  205. }
  206. public override ulong GetTagKey()
  207. {
  208. return 0UL;
  209. }
  210. public override ulong GetClassUniqueid()
  211. {
  212. return 0UL;
  213. }
  214. public override Dictionary<string, string> GetTagList()
  215. {
  216. return new Dictionary<string, string>();
  217. }
  218. public override void Dispose()
  219. {
  220. }
  221. protected override void Dispose(bool is_release_managed_code)
  222. {
  223. }
  224. public Dictionary<string, ScriptManagerFast.TJSVariantRefFast> m_dicTJSVariant = new Dictionary<string, ScriptManagerFast.TJSVariantRefFast>();
  225. }
  226. public class KagParserFast
  227. {
  228. public KagParserFast(BaseKagManager motion_kag_mgr)
  229. {
  230. }
  231. public ulong GetKey(string tag_name)
  232. {
  233. return GameMain.Instance.ScriptMgr.adv_kag.kag.GetKey(tag_name);
  234. }
  235. public ScriptManagerFast.KagParserFast.KLabel FindLabel(string label_name)
  236. {
  237. return this.m_listLabel.Find((ScriptManagerFast.KagParserFast.KLabel a) => a.m_strLabel == label_name);
  238. }
  239. public int GetCommandNum()
  240. {
  241. return this.m_listCommand.Count;
  242. }
  243. public ScriptManagerFast.KagParserFast.KCommand GetCommand(int index)
  244. {
  245. return this.m_listCommand[index];
  246. }
  247. public bool LoadScript(string f_strFileName)
  248. {
  249. this.m_listCommand.Clear();
  250. f_strFileName += ".ks";
  251. byte[] sjis_bytes;
  252. try
  253. {
  254. using (AFileBase afileBase = GameUty.FileOpen(f_strFileName, null))
  255. {
  256. NDebug.Assert(afileBase.IsValid(), "LoadScript スクリプトが開けません。 :" + f_strFileName);
  257. sjis_bytes = new byte[afileBase.GetSize()];
  258. afileBase.Read(ref sjis_bytes, afileBase.GetSize());
  259. }
  260. }
  261. catch (Exception ex)
  262. {
  263. Debug.LogError(string.Concat(new string[]
  264. {
  265. "LoadScript スクリプトが読み込めませんでした。 : ",
  266. f_strFileName,
  267. " : ",
  268. ex.Message,
  269. " : StackTrace :\n",
  270. ex.StackTrace
  271. }));
  272. throw ex;
  273. }
  274. string text = NUty.SjisToUnicode(sjis_bytes);
  275. string[] array = text.Split(new string[]
  276. {
  277. "\r\n",
  278. "\r",
  279. "\n"
  280. }, StringSplitOptions.RemoveEmptyEntries);
  281. ScriptManagerFast.KagParserFast.KIf kif = null;
  282. Stack<ScriptManagerFast.KagParserFast.KIf> stack = new Stack<ScriptManagerFast.KagParserFast.KIf>();
  283. int num = 0;
  284. foreach (string text2 in array)
  285. {
  286. num++;
  287. if (text2.Length != 0 && text2[0] != ';')
  288. {
  289. StringBuilder stringBuilder = new StringBuilder(text2);
  290. for (int j = 0; j < stringBuilder.Length; j++)
  291. {
  292. char c = stringBuilder[j];
  293. if (c == '=')
  294. {
  295. char c2 = stringBuilder[(j - 1 >= 0) ? (j - 1) : j];
  296. char c3 = stringBuilder[(j + 1 >= 0) ? (j + 1) : j];
  297. if (c2 == ' ' || c2 == '\t' || c3 == ' ' || c3 == '\t')
  298. {
  299. Debug.LogError(string.Concat(new object[]
  300. {
  301. "KagParser:イコール記号の前後に不正な文字があります。file=",
  302. f_strFileName,
  303. "Line=",
  304. j
  305. }));
  306. }
  307. }
  308. if (c == '"')
  309. {
  310. bool flag = false;
  311. int k;
  312. for (k = j + 1; k < stringBuilder.Length; k++)
  313. {
  314. char c4 = stringBuilder[k];
  315. if (c4 == '"')
  316. {
  317. flag = true;
  318. break;
  319. }
  320. if (c4 == ' ' || c4 == '\t')
  321. {
  322. stringBuilder[k] = '^';
  323. }
  324. if (c4 == '=')
  325. {
  326. stringBuilder[k] = '~';
  327. }
  328. }
  329. if (!flag)
  330. {
  331. Debug.LogError(string.Concat(new object[]
  332. {
  333. "KagParser:ダブルクォートが対になっていません。file=",
  334. f_strFileName,
  335. "Line=",
  336. num
  337. }));
  338. }
  339. j = k;
  340. }
  341. }
  342. text2 = stringBuilder.ToString();
  343. string[] array2 = text2.Split(new char[]
  344. {
  345. ' ',
  346. '\t'
  347. }, StringSplitOptions.RemoveEmptyEntries);
  348. if (array2.Length != 0)
  349. {
  350. if (array2[0].IndexOf('@') == 0)
  351. {
  352. ScriptManagerFast.KagParserFast.KCommand kcommand = new ScriptManagerFast.KagParserFast.KCommand();
  353. kcommand.m_strTagName = array2[0].Substring(1).ToLower();
  354. kcommand.m_ulTagKey = this.GetKey(kcommand.m_strTagName);
  355. for (int l = 1; l < array2.Length; l++)
  356. {
  357. string[] array3 = array2[l].Split(new char[]
  358. {
  359. '='
  360. }, StringSplitOptions.RemoveEmptyEntries);
  361. if (array3.Length == 0)
  362. {
  363. Debug.LogError(string.Concat(new object[]
  364. {
  365. "ScriptManagerFast Error プロパティが不正です。 file=",
  366. f_strFileName,
  367. " Line=",
  368. num
  369. }));
  370. return false;
  371. }
  372. array3[0] = array3[0].ToLower();
  373. if (array3.Length > 2)
  374. {
  375. Debug.LogError(string.Concat(new object[]
  376. {
  377. "ScriptManagerFast Error '=' の数が不正です。file=",
  378. f_strFileName,
  379. " Line=",
  380. num
  381. }));
  382. return false;
  383. }
  384. if (array3.Length >= 2)
  385. {
  386. array3[1] = array3[1].Replace('^', ' ');
  387. array3[1] = array3[1].Replace('~', '=');
  388. array3[1] = array3[1].Replace("\"", string.Empty);
  389. }
  390. if (!kcommand.m_dicParam.ContainsKey(array3[0]))
  391. {
  392. kcommand.m_dicParam.Add(array3[0], (array3.Length < 2) ? null : array3[1]);
  393. kcommand.m_kagTagSupport.AddTagProperty(array3[0], (array3.Length < 2) ? null : array3[1]);
  394. }
  395. else
  396. {
  397. Debug.LogWarning(string.Concat(new object[]
  398. {
  399. "ScriptManagerFast Error 同じプロパティ名が一つのタグの中にあります。file=",
  400. f_strFileName,
  401. " Line=",
  402. num
  403. }));
  404. }
  405. }
  406. this.m_listCommand.Add(kcommand);
  407. int num2 = this.m_listCommand.Count - 1;
  408. if (kcommand.m_strTagName == "if")
  409. {
  410. ScriptManagerFast.KagParserFast.KIf kif2 = new ScriptManagerFast.KagParserFast.KIf(num2);
  411. if (kif != null)
  412. {
  413. stack.Push(kif);
  414. kif.listChild.Add(kif2);
  415. }
  416. kcommand.m_if = kif2;
  417. kif = kif2;
  418. }
  419. else if (kcommand.m_strTagName == "elsif")
  420. {
  421. kif.listElsifPos.Add(num2);
  422. }
  423. else if (kcommand.m_strTagName == "else")
  424. {
  425. kif.nElsePos = num2;
  426. }
  427. else if (kcommand.m_strTagName == "endif")
  428. {
  429. kif.nEndifPos = num2;
  430. this.m_listIf.Add(kif);
  431. if (stack.Count != 0)
  432. {
  433. kif = stack.Pop();
  434. }
  435. else
  436. {
  437. kif = null;
  438. }
  439. }
  440. }
  441. else if (array2[0].IndexOf('*') == 0)
  442. {
  443. ScriptManagerFast.KagParserFast.KLabel klabel = new ScriptManagerFast.KagParserFast.KLabel();
  444. klabel.m_strLabel = array2[0];
  445. klabel.m_nLine = this.m_listCommand.Count;
  446. this.m_listLabel.Add(klabel);
  447. }
  448. }
  449. }
  450. }
  451. if (kif != null)
  452. {
  453. Debug.LogError(string.Concat(new object[]
  454. {
  455. "ifとendifが対になっていません。file=",
  456. f_strFileName,
  457. " Line=",
  458. num
  459. }));
  460. }
  461. this.m_strFileName = f_strFileName;
  462. return true;
  463. }
  464. private List<ScriptManagerFast.KagParserFast.KCommand> m_listCommand = new List<ScriptManagerFast.KagParserFast.KCommand>();
  465. private List<ScriptManagerFast.KagParserFast.KLabel> m_listLabel = new List<ScriptManagerFast.KagParserFast.KLabel>();
  466. private List<ScriptManagerFast.KagParserFast.KIf> m_listIf = new List<ScriptManagerFast.KagParserFast.KIf>();
  467. public string m_strFileName;
  468. public class KCommand
  469. {
  470. public string m_strTagName;
  471. public ulong m_ulTagKey;
  472. public Dictionary<string, string> m_dicParam = new Dictionary<string, string>();
  473. public ScriptManagerFast.KagTagSupportFast m_kagTagSupport = new ScriptManagerFast.KagTagSupportFast();
  474. public ScriptManagerFast.KagParserFast.KIf m_if;
  475. }
  476. public class KLabel
  477. {
  478. public string m_strLabel;
  479. public int m_nLine;
  480. }
  481. public class KIf
  482. {
  483. public KIf(int nPos)
  484. {
  485. this.nMyPos = nPos;
  486. }
  487. public int nMyPos;
  488. public List<int> listElsifPos = new List<int>();
  489. public int nElsePos;
  490. public int nEndifPos;
  491. public List<ScriptManagerFast.KagParserFast.KIf> listChild = new List<ScriptManagerFast.KagParserFast.KIf>();
  492. }
  493. }
  494. public class KagParserFastCache
  495. {
  496. public KagParserFastCache(BaseKagManager kag_mgr)
  497. {
  498. this.kag_mgr_ = kag_mgr;
  499. }
  500. public bool LoadAndCacheScript(string f_strFileName)
  501. {
  502. bool flag = true;
  503. if (!this.m_CacheKagParser.ContainsKey(f_strFileName))
  504. {
  505. ScriptManagerFast.KagParserFast kagParserFast = new ScriptManagerFast.KagParserFast(this.kag_mgr_);
  506. flag = kagParserFast.LoadScript(f_strFileName);
  507. if (flag)
  508. {
  509. this.m_CacheKagParser[f_strFileName] = kagParserFast;
  510. }
  511. }
  512. return flag;
  513. }
  514. public ScriptManagerFast.KagParserFast GetKagParser(string f_strFileName)
  515. {
  516. ScriptManagerFast.KagParserFast result;
  517. if (!this.m_CacheKagParser.TryGetValue(f_strFileName, out result))
  518. {
  519. if (!this.LoadAndCacheScript(f_strFileName))
  520. {
  521. Debug.LogError("kagスクリプトが見つかりません。" + f_strFileName);
  522. return null;
  523. }
  524. result = this.m_CacheKagParser[f_strFileName];
  525. }
  526. return result;
  527. }
  528. private Dictionary<string, ScriptManagerFast.KagParserFast> m_CacheKagParser = new Dictionary<string, ScriptManagerFast.KagParserFast>();
  529. private BaseKagManager kag_mgr_;
  530. }
  531. public class BaseKagManagerFast
  532. {
  533. public BaseKagManagerFast(BaseKagManager kag_mgr, ScriptManagerFast.KagParserFastCache kag_cache, ScriptManagerFast.BaseKagManagerFast kag_parent = null)
  534. {
  535. this.m_BaseKagMgr = kag_mgr;
  536. this.m_KagCache = kag_cache;
  537. this.m_KagParent = kag_parent;
  538. this.m_TjsResultShare = new TJSVariant();
  539. }
  540. public virtual void Initialize()
  541. {
  542. this.AddTagCallBack("wait", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideWait));
  543. this.AddTagCallBack("jump", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideJump));
  544. this.AddTagCallBack("call", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideCall));
  545. this.AddTagCallBack("return", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideReturn));
  546. this.AddTagCallBack("s", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideStop));
  547. this.AddTagCallBack("eval", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideEval));
  548. this.AddTagCallBack("if", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideIf));
  549. this.AddTagCallBack("elsif", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideElsif));
  550. this.AddTagCallBack("else", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideElse));
  551. this.AddTagCallBack("endif", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideEndif));
  552. }
  553. public virtual void SelfDispose()
  554. {
  555. if (this.m_KagChild != null)
  556. {
  557. this.m_KagChild.SelfDispose();
  558. }
  559. this.m_TjsResultShare.Dispose();
  560. }
  561. protected virtual ulong GetKey(string tag_name)
  562. {
  563. return GameMain.Instance.ScriptMgr.adv_kag.kag.GetKey(tag_name);
  564. }
  565. public virtual bool LoadScript(string f_strFileName)
  566. {
  567. this.Reset();
  568. this.m_KagParser = this.m_KagCache.GetKagParser(f_strFileName);
  569. return this.m_KagParser != null;
  570. }
  571. public virtual void AddTagCallBack(string tag_name, ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack call_back_function)
  572. {
  573. this.m_dicCallbackOverride.Add(this.GetKey(tag_name), call_back_function);
  574. }
  575. protected virtual ScriptManagerFast.BaseKagManagerFast CreateChild()
  576. {
  577. return new ScriptManagerFast.BaseKagManagerFast(this.m_BaseKagMgr, this.m_KagCache, this);
  578. }
  579. public virtual bool TagOverrideWait(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  580. {
  581. TJSVariantRef tagProperty = tag_data.GetTagProperty("time");
  582. this.m_listWaitEvent.Add(new ScriptManagerFast.BaseKagManagerFast.WaitEventTime((float)tagProperty.AsInteger() / 1000f));
  583. return true;
  584. }
  585. public virtual bool TagOverrideJump(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  586. {
  587. string text = null;
  588. if (tag_data.IsValid("label"))
  589. {
  590. TJSVariantRef tagProperty = tag_data.GetTagProperty("label");
  591. text = tagProperty.AsString().ToLower();
  592. }
  593. if (tag_data.IsValid("file"))
  594. {
  595. TJSVariantRef tagProperty2 = tag_data.GetTagProperty("file");
  596. string text2 = tagProperty2.AsString();
  597. this.LoadScript(tagProperty2.AsString());
  598. if (!string.IsNullOrEmpty(text))
  599. {
  600. this.Jump(text);
  601. }
  602. return false;
  603. }
  604. this.m_IfExecStack.Clear();
  605. this.m_IfExeNow = null;
  606. return !this.Jump(text);
  607. }
  608. public virtual bool TagOverrideCall(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  609. {
  610. string text = null;
  611. if (tag_data.IsValid("label"))
  612. {
  613. TJSVariantRef tagProperty = tag_data.GetTagProperty("label");
  614. text = tagProperty.AsString().ToLower();
  615. }
  616. if (tag_data.IsValid("file"))
  617. {
  618. TJSVariantRef tagProperty2 = tag_data.GetTagProperty("file");
  619. string text2 = tagProperty2.AsString();
  620. if (this.m_KagChild != null)
  621. {
  622. this.m_KagChild.Reset();
  623. this.m_KagChild = null;
  624. }
  625. this.m_KagChild = this.CreateChild();
  626. this.m_KagChild.Initialize();
  627. this.m_KagChild.LoadScript(tagProperty2.AsString());
  628. if (!string.IsNullOrEmpty(text))
  629. {
  630. this.m_KagChild.Jump(text);
  631. }
  632. this.m_KagChild.Start();
  633. this.m_bKagChild = true;
  634. return true;
  635. }
  636. this.m_CallStack.Push(this.m_nNowIndex + 1);
  637. return !this.Jump(text);
  638. }
  639. public virtual bool TagOverrideReturn(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  640. {
  641. if (this.m_CallStack.Count != 0)
  642. {
  643. int index = this.m_CallStack.Pop();
  644. this.SetIndex(index);
  645. }
  646. else
  647. {
  648. if (this.m_KagParent != null)
  649. {
  650. this.m_KagParent.OnReturnFromChild();
  651. this.Reset();
  652. return true;
  653. }
  654. Debug.LogError("Returnこれ以上戻る親が居ません。");
  655. }
  656. return false;
  657. }
  658. public virtual bool TagOverrideStop(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  659. {
  660. return true;
  661. }
  662. public virtual bool TagOverrideEval(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  663. {
  664. TJSVariantRef tagProperty = tag_data.GetTagProperty("exp");
  665. string eval_str = tagProperty.AsString();
  666. GameMain.Instance.ScriptMgr.EvalScript(eval_str);
  667. return false;
  668. }
  669. public virtual bool TagOverrideIf(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  670. {
  671. TJSVariantRef tagProperty = tag_data.GetTagProperty("exp");
  672. string eval_str = tagProperty.AsString();
  673. ScriptManagerFast.BaseKagManagerFast.IfExec ifExeNow = new ScriptManagerFast.BaseKagManagerFast.IfExec(command.m_if);
  674. if (this.m_IfExeNow != null)
  675. {
  676. this.m_IfExecStack.Push(this.m_IfExeNow);
  677. }
  678. this.m_IfExeNow = ifExeNow;
  679. GameMain.Instance.ScriptMgr.EvalScript(eval_str, this.m_TjsResultShare);
  680. bool flag = this.m_TjsResultShare.AsBool();
  681. if (!flag)
  682. {
  683. int num = this.m_IfExeNow.DequeueElsif();
  684. if (num == 0)
  685. {
  686. num = this.m_IfExeNow.m_kif.nElsePos;
  687. if (num == 0)
  688. {
  689. num = this.m_IfExeNow.m_kif.nEndifPos;
  690. if (num == 0)
  691. {
  692. Debug.LogError("endifが見つかりません。");
  693. }
  694. }
  695. }
  696. this.SetIndex(num);
  697. }
  698. this.m_IfExeNow.m_mach = flag;
  699. return false;
  700. }
  701. public virtual bool TagOverrideElsif(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  702. {
  703. if (this.m_IfExeNow.m_mach)
  704. {
  705. int nEndifPos = this.m_IfExeNow.m_kif.nEndifPos;
  706. if (nEndifPos == 0)
  707. {
  708. Debug.LogError("endifが見つかりません。");
  709. }
  710. this.SetIndex(nEndifPos);
  711. return false;
  712. }
  713. TJSVariantRef tagProperty = tag_data.GetTagProperty("exp");
  714. string eval_str = tagProperty.AsString();
  715. GameMain.Instance.ScriptMgr.EvalScript(eval_str, this.m_TjsResultShare);
  716. bool flag = this.m_TjsResultShare.AsBool();
  717. if (!flag)
  718. {
  719. int num = this.m_IfExeNow.DequeueElsif();
  720. if (num == 0)
  721. {
  722. num = this.m_IfExeNow.m_kif.nElsePos;
  723. if (num == 0)
  724. {
  725. num = this.m_IfExeNow.m_kif.nEndifPos;
  726. if (num == 0)
  727. {
  728. Debug.LogError("endifが見つかりません。");
  729. }
  730. }
  731. }
  732. this.SetIndex(num);
  733. }
  734. this.m_IfExeNow.m_mach = flag;
  735. return false;
  736. }
  737. public virtual bool TagOverrideElse(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  738. {
  739. if (this.m_IfExeNow.m_mach)
  740. {
  741. int nEndifPos = this.m_IfExeNow.m_kif.nEndifPos;
  742. if (nEndifPos == 0)
  743. {
  744. Debug.LogError("endifが見つかりません。");
  745. }
  746. this.SetIndex(nEndifPos);
  747. return false;
  748. }
  749. this.m_IfExeNow.m_mach = true;
  750. return false;
  751. }
  752. public virtual bool TagOverrideEndif(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  753. {
  754. if (this.m_IfExecStack.Count == 0)
  755. {
  756. this.m_IfExeNow = null;
  757. }
  758. else
  759. {
  760. this.m_IfExeNow = this.m_IfExecStack.Pop();
  761. }
  762. return false;
  763. }
  764. public virtual void OnReturnFromChild()
  765. {
  766. this.m_bKagChild = false;
  767. this.m_bExec = true;
  768. }
  769. public virtual void Reset()
  770. {
  771. this.m_bExec = false;
  772. this.SetIndex(0);
  773. this.m_listWaitEvent.Clear();
  774. this.m_CallStack.Clear();
  775. if (this.m_KagChild != null)
  776. {
  777. this.m_KagChild.Reset();
  778. }
  779. this.m_bKagChild = false;
  780. this.m_IfExecStack.Clear();
  781. this.m_IfExeNow = null;
  782. }
  783. public virtual void Start()
  784. {
  785. if (!this.m_bKagChild)
  786. {
  787. this.m_bExec = true;
  788. }
  789. else
  790. {
  791. this.m_KagChild.Start();
  792. }
  793. }
  794. protected virtual void SetIndex(int f_nNewIndex)
  795. {
  796. this.m_nNowIndex = f_nNewIndex;
  797. this.m_bIndexIncrement = false;
  798. }
  799. public virtual bool Jump(string f_strLabelName)
  800. {
  801. ScriptManagerFast.KagParserFast.KLabel klabel = this.m_KagParser.FindLabel(f_strLabelName);
  802. if (klabel == null)
  803. {
  804. Debug.LogError("ScriptManagerFast Call タグ指定のラベルはありません。");
  805. return false;
  806. }
  807. this.SetIndex(klabel.m_nLine);
  808. return true;
  809. }
  810. public virtual void Update()
  811. {
  812. this.m_bWait = false;
  813. int num = this.m_listWaitEvent.Count - 1;
  814. while (0 <= num)
  815. {
  816. bool flag = this.m_listWaitEvent[num].Update();
  817. this.m_bWait = (this.m_bWait || flag);
  818. if (!flag)
  819. {
  820. this.m_listWaitEvent.RemoveAt(num);
  821. }
  822. num--;
  823. }
  824. while (this.m_bExec && !this.m_bKagChild && !this.m_bWait)
  825. {
  826. if (this.m_KagParser.GetCommandNum() <= this.m_nNowIndex)
  827. {
  828. this.m_bExec = false;
  829. break;
  830. }
  831. ScriptManagerFast.KagParserFast.KCommand command = this.m_KagParser.GetCommand(this.m_nNowIndex);
  832. this.m_bIndexIncrement = true;
  833. float realtimeSinceStartup = Time.realtimeSinceStartup;
  834. ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack kagFastTagCallBack;
  835. bool flag2;
  836. if (this.m_dicCallbackOverride.TryGetValue(command.m_ulTagKey, out kagFastTagCallBack))
  837. {
  838. flag2 = kagFastTagCallBack(command.m_kagTagSupport, command);
  839. }
  840. else
  841. {
  842. flag2 = this.m_BaseKagMgr.kag.CallTag(command.m_ulTagKey, command.m_kagTagSupport, true);
  843. }
  844. if (this.m_bIndexIncrement)
  845. {
  846. this.m_nNowIndex++;
  847. }
  848. if (flag2)
  849. {
  850. this.m_bExec = !flag2;
  851. break;
  852. }
  853. }
  854. if (this.m_bKagChild)
  855. {
  856. this.m_KagChild.Update();
  857. }
  858. }
  859. protected bool m_bExec;
  860. protected bool m_bWait;
  861. protected int m_nNowIndex;
  862. protected bool m_bIndexIncrement = true;
  863. protected Dictionary<ulong, ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack> m_dicCallbackOverride = new Dictionary<ulong, ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack>();
  864. protected BaseKagManager m_BaseKagMgr;
  865. protected ScriptManagerFast.KagParserFastCache m_KagCache;
  866. protected ScriptManagerFast.KagParserFast m_KagParser;
  867. protected ScriptManagerFast.BaseKagManagerFast m_KagParent;
  868. protected ScriptManagerFast.BaseKagManagerFast m_KagChild;
  869. protected bool m_bKagChild;
  870. protected Stack<int> m_CallStack = new Stack<int>();
  871. protected Stack<ScriptManagerFast.BaseKagManagerFast.IfExec> m_IfExecStack = new Stack<ScriptManagerFast.BaseKagManagerFast.IfExec>();
  872. protected ScriptManagerFast.BaseKagManagerFast.IfExec m_IfExeNow;
  873. protected TJSVariant m_TjsResultShare;
  874. protected List<ScriptManagerFast.BaseKagManagerFast.WaitEvent> m_listWaitEvent = new List<ScriptManagerFast.BaseKagManagerFast.WaitEvent>();
  875. protected class IfExec
  876. {
  877. public IfExec(ScriptManagerFast.KagParserFast.KIf kif)
  878. {
  879. this.m_kif = kif;
  880. }
  881. public int DequeueElsif()
  882. {
  883. int result = 0;
  884. if (this.m_queue < this.m_kif.listElsifPos.Count)
  885. {
  886. result = this.m_kif.listElsifPos[this.m_queue];
  887. this.m_queue++;
  888. }
  889. return result;
  890. }
  891. public ScriptManagerFast.KagParserFast.KIf m_kif;
  892. public bool m_mach;
  893. private int m_queue;
  894. }
  895. protected abstract class WaitEvent
  896. {
  897. public abstract bool IsWait();
  898. public abstract bool Update();
  899. }
  900. protected class WaitEventTime : ScriptManagerFast.BaseKagManagerFast.WaitEvent
  901. {
  902. public WaitEventTime(float f_time)
  903. {
  904. this.m_fBackTime = Time.realtimeSinceStartup;
  905. this.m_fWaitTime = f_time;
  906. this.m_bWait = true;
  907. }
  908. public override bool IsWait()
  909. {
  910. return this.m_bWait;
  911. }
  912. public override bool Update()
  913. {
  914. if (this.m_fWaitTime <= Time.realtimeSinceStartup - this.m_fBackTime)
  915. {
  916. this.m_bWait = false;
  917. return this.m_bWait;
  918. }
  919. return this.m_bWait;
  920. }
  921. private bool m_bWait;
  922. private float m_fBackTime;
  923. private float m_fWaitTime;
  924. }
  925. public delegate bool KagFastTagCallBack(KagTagSupport val_data, ScriptManagerFast.KagParserFast.KCommand command);
  926. }
  927. public class MotionKagManagerFast : ScriptManagerFast.BaseKagManagerFast
  928. {
  929. public MotionKagManagerFast(MotionKagManager motion_kag_mgr, ScriptManagerFast.KagParserFastCache kag_cache, ScriptManagerFast.BaseKagManagerFast kag_parent = null) : base(motion_kag_mgr, kag_cache, kag_parent)
  930. {
  931. this.m_MotionKagMgr = motion_kag_mgr;
  932. this.m_KagCache = kag_cache;
  933. }
  934. protected override ScriptManagerFast.BaseKagManagerFast CreateChild()
  935. {
  936. return new ScriptManagerFast.MotionKagManagerFast(this.m_MotionKagMgr, this.m_KagCache, this);
  937. }
  938. private MotionKagManager m_MotionKagMgr;
  939. }
  940. public class MotionCacheKagManagerFast : ScriptManagerFast.BaseKagManagerFast
  941. {
  942. public MotionCacheKagManagerFast(ScriptManagerFast.KagParserFastCache kag_cache, ScriptManager script_mgr, ScriptManagerFast.BaseKagManagerFast kag_parent = null) : base(null, kag_cache, kag_parent)
  943. {
  944. this.m_ScriptMgr = script_mgr;
  945. }
  946. public bool IsFinished()
  947. {
  948. return this.m_bFinish;
  949. }
  950. public override void Initialize()
  951. {
  952. this.AddTagCallBack("jump", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideJump));
  953. this.AddTagCallBack("call", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideCall));
  954. this.AddTagCallBack("motion", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideMotion));
  955. this.AddTagCallBack("motionnextabs", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideMotionNextAbs));
  956. this.AddTagCallBack("bustmove", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagOverrideBustMove));
  957. }
  958. protected override ScriptManagerFast.BaseKagManagerFast CreateChild()
  959. {
  960. return new ScriptManagerFast.MotionCacheKagManagerFast(this.m_KagCache, this.m_ScriptMgr, this);
  961. }
  962. public override bool TagOverrideJump(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  963. {
  964. return this.TagOverrideCall(tag_data, command);
  965. }
  966. public override bool TagOverrideCall(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  967. {
  968. if (!tag_data.IsValid("file"))
  969. {
  970. return false;
  971. }
  972. TJSVariantRef tagProperty = tag_data.GetTagProperty("file");
  973. string text = tagProperty.AsString();
  974. if (this.m_dicCached.ContainsKey(text.GetHashCode()))
  975. {
  976. return false;
  977. }
  978. this.m_dicCached.Add(text.GetHashCode(), true);
  979. if (this.m_KagChild != null)
  980. {
  981. this.m_KagChild.Reset();
  982. this.m_KagChild = null;
  983. }
  984. this.m_KagChild = this.CreateChild();
  985. this.m_KagChild.Initialize();
  986. this.m_KagChild.LoadScript(tagProperty.AsString());
  987. this.m_KagChild.Start();
  988. this.m_bKagChild = true;
  989. return true;
  990. }
  991. public bool TagOverrideMotion(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  992. {
  993. Maid maid = null;
  994. string str = string.Empty;
  995. if (tag_data.IsValid("maid"))
  996. {
  997. TJSVariantRef tagProperty = tag_data.GetTagProperty("maid");
  998. maid = GameMain.Instance.CharacterMgr.GetMaid(tagProperty.AsInteger());
  999. }
  1000. if (tag_data.IsValid("mot"))
  1001. {
  1002. TJSVariantRef tagProperty2 = tag_data.GetTagProperty("mot");
  1003. str = tagProperty2.AsString();
  1004. }
  1005. if (tag_data.IsValid("loop"))
  1006. {
  1007. TJSVariantRef tagProperty3 = tag_data.GetTagProperty("loop");
  1008. bool flag = tagProperty3.AsBool();
  1009. }
  1010. if (maid != null)
  1011. {
  1012. maid.body0.CacheLoadAnime(this.m_ScriptMgr.file_system, str + ".anm", !this.m_bMuneYureL, !this.m_bMuneYureR);
  1013. }
  1014. return false;
  1015. }
  1016. public bool TagOverrideMotionNextAbs(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  1017. {
  1018. return this.TagOverrideMotion(tag_data, command);
  1019. }
  1020. public bool TagOverrideBustMove(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  1021. {
  1022. if (tag_data.IsValid("maid"))
  1023. {
  1024. TJSVariantRef tagProperty = tag_data.GetTagProperty("maid");
  1025. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(tagProperty.AsInteger());
  1026. }
  1027. if (tag_data.IsValid("move"))
  1028. {
  1029. TJSVariantRef tagProperty2 = tag_data.GetTagProperty("move");
  1030. if (tagProperty2.AsString() == "non")
  1031. {
  1032. this.m_bMuneYureL = true;
  1033. this.m_bMuneYureR = true;
  1034. }
  1035. else if (tagProperty2.AsString() == "stop")
  1036. {
  1037. this.m_bMuneYureL = false;
  1038. this.m_bMuneYureR = false;
  1039. }
  1040. else if (tagProperty2.AsString() == "Lstop")
  1041. {
  1042. this.m_bMuneYureL = false;
  1043. }
  1044. else if (tagProperty2.AsString() == "Rstop")
  1045. {
  1046. this.m_bMuneYureR = false;
  1047. }
  1048. }
  1049. return false;
  1050. }
  1051. public override void OnReturnFromChild()
  1052. {
  1053. this.m_KagChild = null;
  1054. this.m_bKagChild = false;
  1055. this.m_bExec = true;
  1056. }
  1057. public override void Update()
  1058. {
  1059. if (this.m_bExec && !this.m_bKagChild)
  1060. {
  1061. if (this.m_KagParser.GetCommandNum() <= this.m_nNowIndex)
  1062. {
  1063. this.m_bExec = false;
  1064. this.m_bFinish = true;
  1065. if (this.m_KagParent != null)
  1066. {
  1067. this.m_KagParent.OnReturnFromChild();
  1068. }
  1069. return;
  1070. }
  1071. ScriptManagerFast.KagParserFast.KCommand command = this.m_KagParser.GetCommand(this.m_nNowIndex);
  1072. bool flag = false;
  1073. ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack kagFastTagCallBack;
  1074. if (this.m_dicCallbackOverride.TryGetValue(command.m_ulTagKey, out kagFastTagCallBack))
  1075. {
  1076. flag = kagFastTagCallBack(command.m_kagTagSupport, command);
  1077. }
  1078. this.m_nNowIndex++;
  1079. this.m_bExec = !flag;
  1080. }
  1081. if (this.m_bKagChild)
  1082. {
  1083. this.m_KagChild.Update();
  1084. }
  1085. }
  1086. private Dictionary<int, bool> m_dicCached = new Dictionary<int, bool>();
  1087. private bool m_bMuneYureL;
  1088. private bool m_bMuneYureR;
  1089. private bool m_bFinish;
  1090. private ScriptManager m_ScriptMgr;
  1091. }
  1092. public class VRTouchKagManagerFast : ScriptManagerFast.BaseKagManagerFast
  1093. {
  1094. public VRTouchKagManagerFast(BaseKagManager base_kag_mgr, ScriptManagerFast.KagParserFastCache kag_cache, ScriptManagerFast.BaseKagManagerFast kag_parent = null) : base(base_kag_mgr, kag_cache, kag_parent)
  1095. {
  1096. }
  1097. public override void Initialize()
  1098. {
  1099. this.AddTagCallBack("vrtouch", new ScriptManagerFast.BaseKagManagerFast.KagFastTagCallBack(this.TagVRTouch));
  1100. }
  1101. protected override ScriptManagerFast.BaseKagManagerFast CreateChild()
  1102. {
  1103. return new ScriptManagerFast.VRTouchKagManagerFast(this.m_BaseKagMgr, this.m_KagCache, this);
  1104. }
  1105. public bool TagVRTouch(KagTagSupport tag_data, ScriptManagerFast.KagParserFast.KCommand command)
  1106. {
  1107. SceneVRCommunication.Instance.TouchComm.Add_Touch(tag_data);
  1108. return false;
  1109. }
  1110. }
  1111. private class KagSet
  1112. {
  1113. public KagSet(ScriptManager f_ParentScriptMgr, ScriptManagerFast.KagParserFastCache f_Cache, int f_nSlotNo, Maid f_MainMaid = null)
  1114. {
  1115. this.m_nSlotNo = f_nSlotNo;
  1116. this.m_MotionKag = new MotionKagManager(f_ParentScriptMgr.tjs, f_ParentScriptMgr);
  1117. this.m_MotionKag.Initialize();
  1118. if (f_MainMaid == null)
  1119. {
  1120. this.m_MotionKag.SetMainMan(f_MainMaid);
  1121. this.m_MotionKag.SetMainMaid(f_MainMaid);
  1122. }
  1123. else if (f_MainMaid.boMAN)
  1124. {
  1125. this.m_MotionKag.SetMainMan(f_MainMaid);
  1126. }
  1127. else
  1128. {
  1129. this.m_MotionKag.SetMainMaid(f_MainMaid);
  1130. }
  1131. this.m_KagMgr = new ScriptManagerFast.MotionKagManagerFast(this.m_MotionKag, f_Cache, null);
  1132. this.m_KagMgr.Initialize();
  1133. }
  1134. public void SelfDispose()
  1135. {
  1136. this.m_KagMgr.SelfDispose();
  1137. this.m_MotionKag.Dispose();
  1138. }
  1139. public int m_nSlotNo;
  1140. public MotionKagManager m_MotionKag;
  1141. public ScriptManagerFast.MotionKagManagerFast m_KagMgr;
  1142. }
  1143. }