BasicSection.cs 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. //
  2. // Copyright 2020 Electronic Arts Inc.
  3. //
  4. // The Command & Conquer Map Editor and corresponding source code is free
  5. // software: you can redistribute it and/or modify it under the terms of
  6. // the GNU General Public License as published by the Free Software Foundation,
  7. // either version 3 of the License, or (at your option) any later version.
  8. // The Command & Conquer Map Editor and corresponding source code is distributed
  9. // in the hope that it will be useful, but with permitted additional restrictions
  10. // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT
  11. // distributed with this program. You should have received a copy of the
  12. // GNU General Public License along with permitted additional restrictions
  13. // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
  14. using MobiusEditor.Model;
  15. using System.ComponentModel;
  16. namespace MobiusEditor.RedAlert
  17. {
  18. public class BasicSection : Model.BasicSection
  19. {
  20. private string win2;
  21. [DefaultValue("x")]
  22. public string Win2 { get => win2; set => SetField(ref win2, value); }
  23. private string win3;
  24. [DefaultValue("x")]
  25. public string Win3 { get => win3; set => SetField(ref win3, value); }
  26. private string win4;
  27. [DefaultValue("x")]
  28. public string Win4 { get => win4; set => SetField(ref win4, value); }
  29. private bool toCarryOver;
  30. [TypeConverter(typeof(BooleanTypeConverter))]
  31. [DefaultValue(false)]
  32. public bool ToCarryOver { get => toCarryOver; set => SetField(ref toCarryOver, value); }
  33. private bool toInherit;
  34. [TypeConverter(typeof(BooleanTypeConverter))]
  35. [DefaultValue(false)]
  36. public bool ToInherit { get => toInherit; set => SetField(ref toInherit, value); }
  37. private bool timerInherit;
  38. [TypeConverter(typeof(BooleanTypeConverter))]
  39. [DefaultValue(false)]
  40. public bool TimerInherit { get => timerInherit; set => SetField(ref timerInherit, value); }
  41. private bool endOfGame;
  42. [TypeConverter(typeof(BooleanTypeConverter))]
  43. [DefaultValue(false)]
  44. public bool EndOfGame { get => endOfGame; set => SetField(ref endOfGame, value); }
  45. private bool civEvac;
  46. [TypeConverter(typeof(BooleanTypeConverter))]
  47. [DefaultValue(false)]
  48. public bool CivEvac { get => civEvac; set => SetField(ref civEvac, value); }
  49. private bool noSpyPlane;
  50. [TypeConverter(typeof(BooleanTypeConverter))]
  51. [DefaultValue(false)]
  52. public bool NoSpyPlane { get => noSpyPlane; set => SetField(ref noSpyPlane, value); }
  53. private bool skipScore;
  54. [TypeConverter(typeof(BooleanTypeConverter))]
  55. [DefaultValue(false)]
  56. public bool SkipScore { get => skipScore; set => SetField(ref skipScore, value); }
  57. private bool oneTimeOnly;
  58. [TypeConverter(typeof(BooleanTypeConverter))]
  59. [DefaultValue(false)]
  60. public bool OneTimeOnly { get => oneTimeOnly; set => SetField(ref oneTimeOnly, value); }
  61. private bool skipMapSelect;
  62. [TypeConverter(typeof(BooleanTypeConverter))]
  63. [DefaultValue(false)]
  64. public bool SkipMapSelect { get => skipMapSelect; set => SetField(ref skipMapSelect, value); }
  65. private bool truckCrate;
  66. [TypeConverter(typeof(BooleanTypeConverter))]
  67. [DefaultValue(false)]
  68. public bool TruckCrate { get => truckCrate; set => SetField(ref truckCrate, value); }
  69. private bool fillSilos;
  70. [TypeConverter(typeof(BooleanTypeConverter))]
  71. [DefaultValue(false)]
  72. public bool FillSilos { get => fillSilos; set => SetField(ref fillSilos, value); }
  73. }
  74. }