@@ -46,7 +46,7 @@ public record BuildingObject(
46
46
[ property: LocoStructOffset ( 0xA4 ) , LocoStructVariableLoad , LocoArrayLength ( 2 ) ] List < uint8_t > var_A4 , // Some type of Cargo
47
47
[ property: LocoStructOffset ( 0xAA ) ] int16_t DemolishRatingReduction ,
48
48
[ property: LocoStructOffset ( 0xAC ) ] uint8_t var_AC ,
49
- [ property: LocoStructOffset ( 0xAD ) ] uint8_t NumAnimationSequences
49
+ [ property: LocoStructOffset ( 0xAD ) ] uint8_t NumAnimatedElevators
50
50
//[property: LocoStructOffset(0xAE), LocoStructVariableLoad, LocoArrayLength(4)] uint8_t[][] var_AE // 0xAE ->0xB2->0xB6->0xBA->0xBE (4 byte pointers)
51
51
) : ILocoStruct , ILocoStructVariableData
52
52
{
@@ -57,7 +57,7 @@ public record BuildingObject(
57
57
public List < S5Header > ProducedCargo { get ; set ; } = [ ] ;
58
58
public List < S5Header > RequiredCargo { get ; set ; } = [ ] ;
59
59
60
- public List < uint8_t [ ] > AnimationSequences { get ; set ; } = [ ] ;
60
+ public List < uint8_t [ ] > ElevatorAnimationHeights { get ; set ; } = [ ] ;
61
61
62
62
// known issues:
63
63
// HOSPITL1.dat - loads without error but graphics are bugged
@@ -101,13 +101,13 @@ public ReadOnlySpan<byte> Load(ReadOnlySpan<byte> remainingData)
101
101
remainingData = remainingData [ ( S5Header . StructLength * MaxRequiredCargoType ) ..] ;
102
102
103
103
// animation sequences
104
- AnimationSequences . Clear ( ) ;
105
- for ( var i = 0 ; i < NumAnimationSequences ; ++ i )
104
+ ElevatorAnimationHeights . Clear ( ) ;
105
+ for ( var i = 0 ; i < NumAnimatedElevators ; ++ i )
106
106
{
107
107
var size = BitConverter . ToUInt16 ( remainingData [ ..2 ] ) ;
108
108
remainingData = remainingData [ 2 ..] ;
109
109
110
- AnimationSequences . Add ( remainingData [ ..size ] . ToArray ( ) ) ;
110
+ ElevatorAnimationHeights . Add ( remainingData [ ..size ] . ToArray ( ) ) ;
111
111
remainingData = remainingData [ size ..] ;
112
112
}
113
113
@@ -150,7 +150,7 @@ public ReadOnlySpan<byte> Save()
150
150
ms . Write ( obj . Write ( ) ) ;
151
151
}
152
152
153
- foreach ( var unk in AnimationSequences )
153
+ foreach ( var unk in ElevatorAnimationHeights )
154
154
{
155
155
ms . Write ( BitConverter . GetBytes ( ( uint16_t ) unk . Length ) ) ;
156
156
foreach ( var x in unk )
0 commit comments