BaseMaidPhotoWindow.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using System;
  2. using System.Collections.Generic;
  3. public abstract class BaseMaidPhotoWindow : PhotoWindow, InterfaceMaidPhotoWindow
  4. {
  5. public override void SetWindowManager(BasePhotoWindowManager mgr)
  6. {
  7. NDebug.Assert(mgr as PhotoWindowManager != null, "windowマネージャーはPhotoWindowManager限定です");
  8. base.SetWindowManager(mgr);
  9. }
  10. public virtual void OnMaidChangeEvent(Maid maid)
  11. {
  12. }
  13. public virtual void OnMaidAddEvent(Maid maid, bool is_deserialize_load)
  14. {
  15. }
  16. public virtual void OnFinishMaidDeserializeLoad()
  17. {
  18. }
  19. public virtual void OnMaidRemoveEvent(Maid maid)
  20. {
  21. }
  22. public virtual void OnMaidRemoveEventPrev(Maid maid)
  23. {
  24. }
  25. public virtual void OnReset()
  26. {
  27. }
  28. public virtual void OnSerializeEvent()
  29. {
  30. }
  31. public abstract void OnDeserializeEvent();
  32. public Dictionary<string, string> GetMaidStoreData(Maid maid)
  33. {
  34. return this.mgr.GetMaidStoreData(maid, this);
  35. }
  36. public Dictionary<string, string> GetMaidStoreData(string maid_guid)
  37. {
  38. return this.mgr.GetMaidStoreData(maid_guid, this);
  39. }
  40. public PhotoWindowManager.WindowType window_type
  41. {
  42. get
  43. {
  44. return this.Type;
  45. }
  46. }
  47. public new PhotoWindowManager mgr
  48. {
  49. get
  50. {
  51. return base.mgr as PhotoWindowManager;
  52. }
  53. }
  54. }