@@ -25,12 +25,14 @@ public class BuildingViewModel : ReactiveObject, IObjectViewModel<ILocoStruct>
25
25
[ Reactive , Category ( "Cost" ) ] public uint16_t SellCostFactor { get ; set ; }
26
26
[ Reactive , Category ( "Production" ) , Length ( 0 , BuildingObject . MaxProducedCargoType ) ] public BindingList < S5Header > ProducedCargo { get ; set ; }
27
27
[ Reactive , Category ( "Production" ) , Length ( 0 , BuildingObject . MaxProducedCargoType ) ] public BindingList < S5Header > RequiredCargo { get ; set ; }
28
+ [ Reactive , Category ( "Production" ) , Length ( 1 , BuildingObject . MaxProducedQuantity ) ] public BindingList < uint8_t > ProducedQuantity { get ; set ; }
28
29
[ Reactive , Category ( "Building" ) , Length ( 1 , BuildingObject . BuildingVariationCount ) ] public BindingList < BindingList < uint8_t > > BuildingVariations { get ; set ; } // NumBuildingVariations
29
30
[ Reactive , Category ( "Building" ) , Length ( 1 , BuildingObject . BuildingHeightCount ) ] public BindingList < uint8_t > BuildingHeights { get ; set ; } // NumBuildingParts
30
31
[ Reactive , Category ( "Building" ) , Length ( 1 , BuildingObject . BuildingAnimationCount ) ] public BindingList < BuildingPartAnimation > BuildingAnimations { get ; set ; } // NumBuildingParts
31
32
32
33
// note: these height sequences are massive. BLDCTY28 has 2 sequences, 512 in length and 1024 in length. Avalonia PropertyGrid takes 30+ seconds to render this. todo: don't use property grid in future
33
- [ Reactive , Category ( "Building" ) , Length ( 1 , BuildingObject . MaxElevatorHeightSequences ) , Browsable ( false ) ] public BindingList < BindingList < uint8_t > > ElevatorHeightSequences { get ; set ; } // NumElevatorSequences
34
+ //[Reactive, Category("Building"), Length(1, BuildingObject.MaxElevatorHeightSequences), Browsable(false)] public BindingList<BindingList<uint8_t>> ElevatorHeightSequences { get; set; } // NumElevatorSequences
35
+
34
36
[ Reactive , Category ( "<unknown>" ) , Length ( 2 , 2 ) ] public BindingList < uint8_t > var_A6 { get ; set ; }
35
37
[ Reactive , Category ( "<unknown>" ) , Length ( 2 , 2 ) ] public BindingList < uint8_t > var_A8 { get ; set ; }
36
38
[ Reactive , Category ( "<unknown>" ) ] public uint8_t var_AC { get ; set ; }
@@ -50,6 +52,7 @@ public BuildingViewModel(BuildingObject bo)
50
52
SellCostFactor = bo . SellCostFactor ;
51
53
ProducedCargo = new ( bo . ProducedCargo ) ;
52
54
RequiredCargo = new ( bo . RequiredCargo ) ;
55
+ ProducedQuantity = new ( bo . ProducedQuantity ) ;
53
56
BuildingHeights = new ( bo . BuildingHeights ) ;
54
57
BuildingAnimations = new ( bo . BuildingAnimations ) ;
55
58
BuildingVariations = new ( bo . BuildingVariations . Select ( x => new BindingList < uint8_t > ( x ) ) . ToBindingList ( ) ) ;
0 commit comments