File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
Definitions/ObjectModels/Objects/Airport Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ namespace Definitions.ObjectModels.Objects.Airport;
33[ Flags ]
44public enum AirportMovementNodeFlags : uint16_t
55{
6- None = 0 ,
6+ // None = 0,
77 Terminal = 1 << 0 ,
88 TakeoffEnd = 1 << 1 ,
99 Flag2 = 1 << 2 ,
Original file line number Diff line number Diff line change 11using Definitions . ObjectModels . Objects . Cargo ;
2+ using PropertyModels . ComponentModel . DataAnnotations ;
23
34namespace Gui . ViewModels ;
45
@@ -17,6 +18,7 @@ public CargoCategory CargoCategory
1718 set => Model . CargoCategory = value ;
1819 }
1920
21+ [ EnumProhibitValues < CargoObjectFlags > ( CargoObjectFlags . None ) ]
2022 public CargoObjectFlags Flags
2123 {
2224 get => Model . Flags ;
Original file line number Diff line number Diff line change 11using Definitions . ObjectModels . Objects . Track ;
22using Definitions . ObjectModels . Objects . TrackExtra ;
3+ using PropertyModels . ComponentModel . DataAnnotations ;
34
45namespace Gui . ViewModels ;
56
67public class TrackExtraViewModel ( TrackExtraObject model )
78 : LocoObjectViewModel < TrackExtraObject > ( model )
89{
10+ [ EnumProhibitValues < TrackTraitFlags > ( TrackTraitFlags . None ) ]
911 public TrackTraitFlags TrackPieces
1012 {
1113 get => Model . TrackPieces ;
Original file line number Diff line number Diff line change @@ -9,19 +9,19 @@ public class Pos3ViewModel : MiniReactiveObject
99
1010 public coord_t X
1111 {
12- get => Pos . X ;
12+ get => Pos ? . X ?? 0 ;
1313 set => Pos . X = value ;
1414 }
1515
1616 public coord_t Y
1717 {
18- get => Pos . Y ;
18+ get => Pos ? . Y ?? 0 ;
1919 set => Pos . Y = value ;
2020 }
2121
2222 public coord_t Z
2323 {
24- get => Pos . Z ;
24+ get => Pos ? . Z ?? 0 ;
2525 set => Pos . Z = value ;
2626 }
2727}
You can’t perform that action at this time.
0 commit comments