MaidManagement.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. using System;
  2. using System.Collections.Generic;
  3. public class MaidManagement : WfScreenManager
  4. {
  5. public static bool compatibilityMode
  6. {
  7. get
  8. {
  9. return DailyMgr.IsLegacy;
  10. }
  11. }
  12. public void Awake()
  13. {
  14. this.adv_kag_ = GameMain.Instance.ScriptMgr.adv_kag;
  15. }
  16. public override void Start()
  17. {
  18. base.Start();
  19. this.move_screen_ = base.children_dic["Move"].GetComponent<WfScreenMoveChildren>();
  20. string edit_label = string.Empty;
  21. string new_edit_label = string.Empty;
  22. string transfer_label = string.Empty;
  23. if (this.adv_kag_.tag_backup != null && 0 < this.adv_kag_.tag_backup.Count && this.adv_kag_.tag_backup["name"] == "SceneMaidManagement")
  24. {
  25. NDebug.Assert(this.adv_kag_.tag_backup.ContainsKey("label"), "SceneCallにlabelの設定がされていませんでした");
  26. if (this.adv_kag_.tag_backup.ContainsKey("type") && this.adv_kag_.tag_backup["type"] == "class_change")
  27. {
  28. NDebug.Assert("メイド管理の品評会モードは廃止になりました", false);
  29. }
  30. else
  31. {
  32. NDebug.Assert(this.adv_kag_.tag_backup.ContainsKey("edit_label"), "SceneCallにedit_labelの設定がされていませんでした");
  33. edit_label = this.adv_kag_.tag_backup["edit_label"];
  34. if (GameMain.Instance.CharacterMgr.status.isDaytime)
  35. {
  36. NDebug.Assert(this.adv_kag_.tag_backup.ContainsKey("new_edit_label"), "SceneCallにnew_edit_labelの設定がされていませんでした");
  37. new_edit_label = this.adv_kag_.tag_backup["new_edit_label"];
  38. NDebug.Assert(this.adv_kag_.tag_backup.ContainsKey("transfer_label"), "SceneCallにtransfer_labelの設定がされていませんでした");
  39. transfer_label = this.adv_kag_.tag_backup["transfer_label"];
  40. }
  41. }
  42. this.move_screen_.SetNextLabel(this.adv_kag_.tag_backup["label"]);
  43. if (!this.adv_kag_.tag_backup.ContainsKey("loop"))
  44. {
  45. MaidManagementMain.BackUpSelectMaidGUID = string.Empty;
  46. }
  47. }
  48. MaidManagementMain component = base.children_dic["Main"].GetComponent<MaidManagementMain>();
  49. component.SetMaidManagement(this, edit_label, new_edit_label, transfer_label);
  50. this.CallScreen("Main");
  51. }
  52. protected override void SettingChildrenList(Dictionary<string, WfScreenChildren> children_dic)
  53. {
  54. string[] array = new string[]
  55. {
  56. "Main",
  57. "Move"
  58. };
  59. for (int i = 0; i < array.Length; i++)
  60. {
  61. children_dic.Add(array[i], UTY.GetChildObject(base.gameObject, array[i], false).GetComponent<WfScreenChildren>());
  62. }
  63. }
  64. public WfScreenMoveChildren move_screen
  65. {
  66. get
  67. {
  68. return this.move_screen_;
  69. }
  70. }
  71. private WfScreenMoveChildren move_screen_;
  72. private ADVKagManager adv_kag_;
  73. }