CharacterSelectManager.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Runtime.CompilerServices;
  5. using PlayerStatus;
  6. using UnityEngine;
  7. using wf;
  8. public class CharacterSelectManager : MonoBehaviour
  9. {
  10. public static void DefaultMaidList(List<Maid> draw_list)
  11. {
  12. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  13. for (int i = 0; i < characterMgr.GetStockMaidCount(); i++)
  14. {
  15. draw_list.Add(characterMgr.GetStockMaid(i));
  16. }
  17. }
  18. public static int SortMaidStandardNoSchedule(Maid maid_a, Maid maid_b)
  19. {
  20. if (maid_a.status.leader && !maid_b.status.leader)
  21. {
  22. return -1;
  23. }
  24. if (!maid_a.status.leader && maid_b.status.leader)
  25. {
  26. return 1;
  27. }
  28. Status status = GameMain.Instance.CharacterMgr.status;
  29. if (maid_a.status.creationTimeNum < maid_b.status.creationTimeNum)
  30. {
  31. return -1;
  32. }
  33. if (maid_a.status.creationTimeNum != maid_b.status.creationTimeNum)
  34. {
  35. return 1;
  36. }
  37. return string.Compare(maid_b.status.guid, maid_a.status.guid);
  38. }
  39. public static int SortMaidStandard(Maid maid_a, Maid maid_b)
  40. {
  41. if (maid_a.status.leader && !maid_b.status.leader)
  42. {
  43. return -1;
  44. }
  45. if (!maid_a.status.leader && maid_b.status.leader)
  46. {
  47. return 1;
  48. }
  49. Status status = GameMain.Instance.CharacterMgr.status;
  50. int scheduleMaidSetting = status.GetScheduleMaidSetting(maid_a);
  51. int scheduleMaidSetting2 = status.GetScheduleMaidSetting(maid_b);
  52. if (scheduleMaidSetting != -1 && scheduleMaidSetting2 == -1)
  53. {
  54. return -1;
  55. }
  56. if (scheduleMaidSetting == -1 && scheduleMaidSetting2 != -1)
  57. {
  58. return 1;
  59. }
  60. if (scheduleMaidSetting < scheduleMaidSetting2)
  61. {
  62. return -1;
  63. }
  64. if (scheduleMaidSetting > scheduleMaidSetting2)
  65. {
  66. return 1;
  67. }
  68. if (maid_a.status.creationTimeNum < maid_b.status.creationTimeNum)
  69. {
  70. return -1;
  71. }
  72. if (maid_a.status.creationTimeNum != maid_b.status.creationTimeNum)
  73. {
  74. return 1;
  75. }
  76. return string.Compare(maid_b.status.guid, maid_a.status.guid);
  77. }
  78. public static int SortMaidStandard(Transform a, Transform b)
  79. {
  80. Maid maid = a.gameObject.GetComponent<MaidPlate>().maid;
  81. Maid maid2 = b.gameObject.GetComponent<MaidPlate>().maid;
  82. return CharacterSelectManager.SortMaidStandard(maid, maid2);
  83. }
  84. public static int SortMaidRanking(Maid maid_a, Maid maid_b)
  85. {
  86. if (maid_a.status.popularRank != 0 && maid_b.status.popularRank == 0)
  87. {
  88. return -1;
  89. }
  90. if (maid_a.status.popularRank == 0 && maid_b.status.popularRank != 0)
  91. {
  92. return 1;
  93. }
  94. if (maid_a.status.popularRank < maid_b.status.popularRank)
  95. {
  96. return -1;
  97. }
  98. if (maid_a.status.popularRank != maid_b.status.popularRank)
  99. {
  100. return 1;
  101. }
  102. return CharacterSelectManager.SortMaidStandard(maid_a, maid_b);
  103. }
  104. public static int SortMaidRanking(Transform a, Transform b)
  105. {
  106. Maid maid = a.gameObject.GetComponent<MaidPlate>().maid;
  107. Maid maid2 = b.gameObject.GetComponent<MaidPlate>().maid;
  108. return CharacterSelectManager.SortMaidRanking(maid, maid2);
  109. }
  110. public void Awake()
  111. {
  112. NDebug.AssertNull(this.MaidPlateParentGrid != null);
  113. this.switch_panel_ = this.MaidPlateParentGrid.gameObject.GetComponent<UIWFSwitchPanel>();
  114. this.tab_panel_ = this.MaidPlateParentGrid.gameObject.GetComponent<UIWFTabPanel>();
  115. this.scroll_view_ = UTY.GetChildObject(base.gameObject, "Contents", false).GetComponent<UIScrollView>();
  116. this.scroll_bar_ = UTY.GetChildObject(base.gameObject, "Scroll Bar", false).GetComponent<UIScrollBar>();
  117. Transform transform = base.gameObject.transform.Find("BigThumbnail");
  118. if (transform != null)
  119. {
  120. this.big_thumbnail_ = transform.gameObject.GetComponent<BigThumbnail>();
  121. }
  122. this.SetSortType(CharacterSelectManager.SortType.Normal);
  123. }
  124. public void Create(CharacterSelectManager.Type type, int slect_max = 3, bool select_no_draw = true)
  125. {
  126. this.thumbnail_load_ = true;
  127. this.select_no_draw_ = select_no_draw;
  128. Stopwatch stopwatch = new Stopwatch();
  129. stopwatch.Start();
  130. if (this.big_thumbnail_ != null)
  131. {
  132. this.big_thumbnail_.Visible = true;
  133. }
  134. this.type_ = type;
  135. if (this.callback_maid_list_ == null)
  136. {
  137. if (CharacterSelectManager.<>f__mg$cache0 == null)
  138. {
  139. CharacterSelectManager.<>f__mg$cache0 = new CharacterSelectManager.CallBackMaidList(CharacterSelectManager.DefaultMaidList);
  140. }
  141. this.callback_maid_list_ = CharacterSelectManager.<>f__mg$cache0;
  142. }
  143. Transform transform = this.MaidPlateParentGrid.transform;
  144. for (int i = 0; i < transform.childCount; i++)
  145. {
  146. UnityEngine.Object.Destroy(transform.GetChild(i).gameObject);
  147. }
  148. transform.DetachChildren();
  149. List<Maid> list = new List<Maid>();
  150. this.callback_maid_list_(list);
  151. this.maid_list_count_ = list.Count;
  152. this.select_list_ = null;
  153. for (int j = 0; j < list.Count; j++)
  154. {
  155. GameObject gameObject = Utility.CreatePrefab(this.MaidPlateParentGrid.gameObject, "CharacterSelect/Prefab/MaidPlateSimple", true);
  156. gameObject.GetComponent<MaidPlate>().SetMaidData(list[j]);
  157. UIWFSelectButton component = UTY.GetChildObject(gameObject, "Button", false).GetComponent<UIWFSelectButton>();
  158. UIWFTabButton component2 = UTY.GetChildObject(gameObject, "Button", false).GetComponent<UIWFTabButton>();
  159. if (type == CharacterSelectManager.Type.Select)
  160. {
  161. UnityEngine.Object.Destroy(component);
  162. component2.enabled = true;
  163. EventDelegate.Add(component2.onSelect, new EventDelegate.Callback(this.OnSelect));
  164. }
  165. else if (type == CharacterSelectManager.Type.Multiple)
  166. {
  167. UnityEngine.Object.Destroy(component2);
  168. component.enabled = true;
  169. EventDelegate.Add(component.onSelect, new EventDelegate.Callback(this.OnSelect));
  170. }
  171. else if (type == CharacterSelectManager.Type.Click)
  172. {
  173. UnityEngine.Object.Destroy(component);
  174. component2.enabled = true;
  175. EventDelegate.Add(component2.onClick, new EventDelegate.Callback(this.OnClick));
  176. }
  177. }
  178. if (type == CharacterSelectManager.Type.Select)
  179. {
  180. UnityEngine.Object.Destroy(this.switch_panel_);
  181. this.switch_panel_ = null;
  182. if (this.tab_panel_ == null)
  183. {
  184. this.tab_panel_ = this.MaidPlateParentGrid.gameObject.AddComponent<UIWFTabPanel>();
  185. }
  186. this.tab_panel_.enabled = true;
  187. this.tab_panel_.UpdateChildren();
  188. }
  189. else if (type == CharacterSelectManager.Type.Multiple)
  190. {
  191. UnityEngine.Object.Destroy(this.tab_panel_);
  192. this.tab_panel_ = null;
  193. if (this.switch_panel_ == null)
  194. {
  195. this.switch_panel_ = this.MaidPlateParentGrid.gameObject.AddComponent<UIWFSwitchPanel>();
  196. }
  197. this.switch_panel_.SetNumberOfSelected(slect_max);
  198. this.switch_panel_.enabled = true;
  199. this.select_list_ = new MaidPlate[slect_max];
  200. this.switch_panel_.UpdateChildren();
  201. }
  202. this.Reposition();
  203. this.scroll_view_.ResetPosition();
  204. if (this.type_ == CharacterSelectManager.Type.Select && this.MaidPlateParentGrid.GetChildList().Count != 0)
  205. {
  206. UIWFTabButton component3 = UTY.GetChildObject(this.MaidPlateParentGrid.GetChild(0).gameObject, "Button", false).GetComponent<UIWFTabButton>();
  207. this.tab_panel_.Select(component3);
  208. }
  209. stopwatch.Stop();
  210. }
  211. public void SetSortType(CharacterSelectManager.SortType type)
  212. {
  213. if (type == CharacterSelectManager.SortType.Normal)
  214. {
  215. UIGrid maidPlateParentGrid = this.MaidPlateParentGrid;
  216. if (CharacterSelectManager.<>f__mg$cache1 == null)
  217. {
  218. CharacterSelectManager.<>f__mg$cache1 = new Comparison<Transform>(CharacterSelectManager.SortMaidStandard);
  219. }
  220. maidPlateParentGrid.onCustomSort = CharacterSelectManager.<>f__mg$cache1;
  221. }
  222. else
  223. {
  224. UIGrid maidPlateParentGrid2 = this.MaidPlateParentGrid;
  225. if (CharacterSelectManager.<>f__mg$cache2 == null)
  226. {
  227. CharacterSelectManager.<>f__mg$cache2 = new Comparison<Transform>(CharacterSelectManager.SortMaidRanking);
  228. }
  229. maidPlateParentGrid2.onCustomSort = CharacterSelectManager.<>f__mg$cache2;
  230. }
  231. this.Reposition();
  232. }
  233. public void SelectMaid(Maid maid)
  234. {
  235. if (this.type_ != CharacterSelectManager.Type.Select || maid == null)
  236. {
  237. return;
  238. }
  239. List<Transform> childList = this.MaidPlateParentGrid.GetChildList();
  240. for (int i = 0; i < childList.Count; i++)
  241. {
  242. if (childList[i].gameObject.GetComponent<MaidPlate>().maid == maid)
  243. {
  244. UIWFTabButton component = UTY.GetChildObject(childList[i].gameObject, "Button", false).GetComponent<UIWFTabButton>();
  245. this.tab_panel_.Select(component);
  246. return;
  247. }
  248. }
  249. }
  250. public void SelectAllMaid()
  251. {
  252. if (this.type_ != CharacterSelectManager.Type.Multiple || this.select_list_ == null || this.select_no_draw_)
  253. {
  254. return;
  255. }
  256. this.thumbnail_load_ = false;
  257. CharacterSelectManager.CallBackOnMultiSelect callBackOnMultiSelect = this.callback_on_multi_select_;
  258. this.callback_on_multi_select_ = null;
  259. this.switch_panel_.SelectAll();
  260. this.callback_on_multi_select_ = callBackOnMultiSelect;
  261. if (this.callback_on_multi_select_ != null)
  262. {
  263. Maid[] array = new Maid[this.select_list_.Length];
  264. for (int i = 0; i < this.select_list_.Length; i++)
  265. {
  266. if (this.select_list_[i] != null)
  267. {
  268. array[i] = this.select_list_[i].maid;
  269. }
  270. }
  271. this.callback_on_multi_select_(array);
  272. }
  273. this.thumbnail_load_ = true;
  274. }
  275. public void SelectAllReleaseMaid()
  276. {
  277. if (this.type_ != CharacterSelectManager.Type.Multiple || this.select_list_ == null || this.select_no_draw_)
  278. {
  279. return;
  280. }
  281. this.thumbnail_load_ = false;
  282. CharacterSelectManager.CallBackOnMultiSelect callBackOnMultiSelect = this.callback_on_multi_select_;
  283. this.callback_on_multi_select_ = null;
  284. this.switch_panel_.SelectAllRelease();
  285. this.callback_on_multi_select_ = callBackOnMultiSelect;
  286. if (this.callback_on_multi_select_ != null)
  287. {
  288. Maid[] array = new Maid[this.select_list_.Length];
  289. for (int i = 0; i < this.select_list_.Length; i++)
  290. {
  291. if (this.select_list_[i] != null)
  292. {
  293. array[i] = this.select_list_[i].maid;
  294. }
  295. }
  296. this.callback_on_multi_select_(array);
  297. }
  298. this.thumbnail_load_ = true;
  299. }
  300. public void UpdateMaidPlate(Maid maid)
  301. {
  302. Transform transform = this.MaidPlateParentGrid.transform;
  303. for (int i = 0; i < transform.childCount; i++)
  304. {
  305. MaidPlate component = transform.GetChild(i).GetComponent<MaidPlate>();
  306. if (component.maid == maid)
  307. {
  308. component.SetMaidData(maid);
  309. return;
  310. }
  311. }
  312. transform = this.NoDrawArea.transform;
  313. for (int j = 0; j < transform.childCount; j++)
  314. {
  315. MaidPlate component2 = transform.GetChild(j).GetComponent<MaidPlate>();
  316. if (component2.maid == maid)
  317. {
  318. component2.SetMaidData(maid);
  319. return;
  320. }
  321. }
  322. }
  323. public void RemoveMaidPlate(Maid maid)
  324. {
  325. List<Transform> childList = this.MaidPlateParentGrid.GetChildList();
  326. MaidPlate maidPlate = null;
  327. MaidPlate maidPlate2 = null;
  328. bool flag = false;
  329. for (int i = 0; i < childList.Count; i++)
  330. {
  331. maidPlate = childList[i].gameObject.GetComponent<MaidPlate>();
  332. if (maidPlate.maid == maid)
  333. {
  334. if (i + 1 < childList.Count)
  335. {
  336. maidPlate2 = childList[i + 1].gameObject.GetComponent<MaidPlate>();
  337. }
  338. flag = true;
  339. break;
  340. }
  341. maidPlate2 = maidPlate;
  342. }
  343. if (!flag)
  344. {
  345. NDebug.Assert("error.", false);
  346. return;
  347. }
  348. if (this.type_ == CharacterSelectManager.Type.Select && maidPlate2 != null && maidPlate2.maid != maid)
  349. {
  350. UIWFTabButton component = UTY.GetChildObject(maidPlate2.gameObject, "Button", false).GetComponent<UIWFTabButton>();
  351. this.tab_panel_.Select(component);
  352. }
  353. this.MoveNoDrawArea(maid);
  354. maidPlate.SetMaidData(null);
  355. this.Reposition();
  356. }
  357. public bool MoveNoDrawArea(Maid maid)
  358. {
  359. MaidPlate maidPlate = null;
  360. Transform transform = this.MaidPlateParentGrid.transform;
  361. for (int i = 0; i < transform.childCount; i++)
  362. {
  363. MaidPlate component = transform.GetChild(i).GetComponent<MaidPlate>();
  364. if (component.maid == maid)
  365. {
  366. maidPlate = component;
  367. break;
  368. }
  369. }
  370. if (maidPlate == null)
  371. {
  372. return false;
  373. }
  374. maidPlate.gameObject.transform.SetParent(this.NoDrawArea.transform, false);
  375. this.Reposition();
  376. return true;
  377. }
  378. public bool MoveGridArea(Maid maid)
  379. {
  380. MaidPlate maidPlate = null;
  381. Transform transform = this.NoDrawArea.transform;
  382. for (int i = 0; i < transform.childCount; i++)
  383. {
  384. MaidPlate component = transform.GetChild(i).GetComponent<MaidPlate>();
  385. if (component.maid == maid)
  386. {
  387. maidPlate = component;
  388. break;
  389. }
  390. }
  391. if (maidPlate == null)
  392. {
  393. return false;
  394. }
  395. maidPlate.gameObject.transform.SetParent(this.MaidPlateParentGrid.transform, false);
  396. this.Reposition();
  397. return true;
  398. }
  399. public void SetRightVisible(bool is_visible)
  400. {
  401. Transform transform = this.MaidPlateParentGrid.transform;
  402. UISprite component = UTY.GetChildObject(base.gameObject, "BG", false).GetComponent<UISprite>();
  403. Transform transform2 = UTY.GetChildObject(base.gameObject, "Scroll Bar", false).transform;
  404. UIWidget component2 = UTY.GetChildObject(base.gameObject, "DragMat", false).GetComponent<UIWidget>();
  405. this.right_visible_ = is_visible;
  406. if (is_visible)
  407. {
  408. for (int i = 0; i < transform.childCount; i++)
  409. {
  410. MaidPlate component3 = transform.GetChild(i).gameObject.GetComponent<MaidPlate>();
  411. component3.SetRightPlateVisible(true);
  412. }
  413. component.transform.localPosition = new Vector3(145f, 0f, 0f);
  414. component.width = 792;
  415. transform2.localPosition = new Vector3(354f, 0f, 0f);
  416. component2.transform.localPosition = new Vector3(140f, 0f, 0f);
  417. component2.width = 784;
  418. component2.ResizeCollider();
  419. }
  420. else
  421. {
  422. for (int j = 0; j < transform.childCount; j++)
  423. {
  424. MaidPlate component4 = transform.GetChild(j).gameObject.GetComponent<MaidPlate>();
  425. component4.SetRightPlateVisible(false);
  426. }
  427. component.transform.localPosition = Vector3.zero;
  428. component.width = 502;
  429. transform2.localPosition = new Vector3(64f, 0f, 0f);
  430. component2.transform.localPosition = new Vector3(-5f, 0f, 0f);
  431. component2.width = 492;
  432. component2.ResizeCollider();
  433. }
  434. }
  435. public void SetCallBackMaidList(CharacterSelectManager.CallBackMaidList callback)
  436. {
  437. this.callback_maid_list_ = callback;
  438. }
  439. public void SetCallBackOnClick(CharacterSelectManager.CallBackOnClick callback)
  440. {
  441. this.callback_on_click_ = callback;
  442. }
  443. public void SetCallBackOnMultiSelect(CharacterSelectManager.CallBackOnMultiSelect callback)
  444. {
  445. this.callback_on_multi_select_ = callback;
  446. }
  447. public void SetCallBackCallBackOnSelect(CharacterSelectManager.CallBackOnSelect callback)
  448. {
  449. this.callback_on_select_ = callback;
  450. }
  451. public void Reposition()
  452. {
  453. this.MaidPlateParentGrid.Reposition();
  454. this.scroll_view_.UpdatePosition();
  455. }
  456. public bool IsRightVisible()
  457. {
  458. return this.right_visible_;
  459. }
  460. public UIScrollView scroll_view
  461. {
  462. get
  463. {
  464. return this.scroll_view_;
  465. }
  466. }
  467. public UIScrollBar scroll_bar
  468. {
  469. get
  470. {
  471. return this.scroll_bar_;
  472. }
  473. }
  474. public BigThumbnail big_thumbnail
  475. {
  476. get
  477. {
  478. return this.big_thumbnail_;
  479. }
  480. }
  481. public int maid_list_count
  482. {
  483. get
  484. {
  485. return this.maid_list_count_;
  486. }
  487. }
  488. private void OnSelect()
  489. {
  490. GameObject gameObject = UIButton.current.transform.parent.gameObject;
  491. MaidPlate component = gameObject.GetComponent<MaidPlate>();
  492. bool selected = UIWFSelectButton.selected;
  493. if (this.type_ == CharacterSelectManager.Type.Select)
  494. {
  495. if (selected && this.callback_on_select_ != null)
  496. {
  497. if (this.big_thumbnail_ != null && this.thumbnail_load_)
  498. {
  499. this.big_thumbnail_.SetMaid(component.maid);
  500. }
  501. this.callback_on_select_(component.maid);
  502. }
  503. }
  504. else if (this.type_ == CharacterSelectManager.Type.Multiple)
  505. {
  506. if (selected)
  507. {
  508. for (int i = 0; i < this.select_list_.Length; i++)
  509. {
  510. if (this.select_list_[i] == null)
  511. {
  512. if (this.big_thumbnail_ != null && this.thumbnail_load_)
  513. {
  514. this.big_thumbnail_.SetMaid(component.maid);
  515. }
  516. this.select_list_[i] = component;
  517. if (this.select_no_draw_)
  518. {
  519. this.select_list_[i].SetSelectNoVisible(i + 1, true);
  520. }
  521. break;
  522. }
  523. }
  524. }
  525. else
  526. {
  527. for (int j = 0; j < this.select_list_.Length; j++)
  528. {
  529. if (this.select_list_[j] == component)
  530. {
  531. if (this.big_thumbnail_ != null && this.thumbnail_load_)
  532. {
  533. this.big_thumbnail_.SetMaid(component.maid);
  534. }
  535. if (this.select_no_draw_)
  536. {
  537. this.select_list_[j].SetSelectNoVisible(j + 1, false);
  538. }
  539. this.select_list_[j] = null;
  540. break;
  541. }
  542. }
  543. }
  544. if (this.callback_on_multi_select_ != null)
  545. {
  546. Maid[] array = new Maid[this.select_list_.Length];
  547. for (int k = 0; k < this.select_list_.Length; k++)
  548. {
  549. if (this.select_list_[k] != null)
  550. {
  551. array[k] = this.select_list_[k].maid;
  552. }
  553. }
  554. this.callback_on_multi_select_(array);
  555. }
  556. }
  557. }
  558. private void OnClick()
  559. {
  560. MaidPlate component = UIButton.current.transform.parent.GetComponent<MaidPlate>();
  561. if (this.callback_on_click_ != null)
  562. {
  563. this.callback_on_click_(component.maid);
  564. }
  565. }
  566. public int select_max
  567. {
  568. get
  569. {
  570. return (this.select_list_ != null) ? this.select_list_.Length : 0;
  571. }
  572. }
  573. public UIGrid MaidPlateParentGrid;
  574. public GameObject NoDrawArea;
  575. private CharacterSelectManager.CallBackMaidList callback_maid_list_;
  576. private CharacterSelectManager.CallBackOnClick callback_on_click_;
  577. private CharacterSelectManager.CallBackOnMultiSelect callback_on_multi_select_;
  578. private CharacterSelectManager.CallBackOnSelect callback_on_select_;
  579. private BigThumbnail big_thumbnail_;
  580. private UIScrollView scroll_view_;
  581. private UIScrollBar scroll_bar_;
  582. private UIWFSwitchPanel switch_panel_;
  583. private UIWFTabPanel tab_panel_;
  584. private CharacterSelectManager.Type type_;
  585. private MaidPlate[] select_list_;
  586. private bool right_visible_;
  587. private bool select_no_draw_;
  588. private int maid_list_count_;
  589. private bool thumbnail_load_;
  590. [CompilerGenerated]
  591. private static CharacterSelectManager.CallBackMaidList <>f__mg$cache0;
  592. [CompilerGenerated]
  593. private static Comparison<Transform> <>f__mg$cache1;
  594. [CompilerGenerated]
  595. private static Comparison<Transform> <>f__mg$cache2;
  596. public enum Type
  597. {
  598. Click,
  599. Select,
  600. Multiple
  601. }
  602. public enum SortType
  603. {
  604. Normal,
  605. Ranking
  606. }
  607. public delegate void CallBackMaidList(List<Maid> draw_list);
  608. public delegate void CallBackOnClick(Maid select_maid);
  609. public delegate void CallBackOnSelect(Maid select_maid);
  610. public delegate void CallBackOnMultiSelect(Maid[] select_maid);
  611. }