ScheduleYotogi.cs 938 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Schedule
  4. {
  5. public class ScheduleYotogi : ScheduleBase
  6. {
  7. public ScheduleYotogi(ScheduleType workType, Slot slot, int workId) : base(workType, slot, workId)
  8. {
  9. this.condInfo_ = new List<string>();
  10. List<string> condInfo = ScheduleCSVData.AllData[base.id].condInfo;
  11. for (int i = 0; i < condInfo.Count; i++)
  12. {
  13. this.condInfo_.Add(ScheduleAPI.InfoReplace(workId, condInfo[i]));
  14. }
  15. this.visible = ScheduleAPI.VisibleNightWork(base.id, slot.maid, true);
  16. this.enabled = ScheduleAPI.EnableNightWork(base.id, slot.maid, true, false);
  17. if (this.legacyDisable)
  18. {
  19. this.visible = false;
  20. }
  21. }
  22. public string info
  23. {
  24. get
  25. {
  26. return ScheduleCSVData.AllData[base.id].information;
  27. }
  28. }
  29. public List<string> condInfo
  30. {
  31. get
  32. {
  33. return this.condInfo_;
  34. }
  35. }
  36. public bool visible = true;
  37. public List<string> condInfo_;
  38. }
  39. }