@@ -8,6 +8,7 @@ namespace OpenLocoTool.Objects
8
8
// it works just the same but has more code.
9
9
[ TypeConverter ( typeof ( ExpandableObjectConverter ) ) ]
10
10
[ LocoStructSize ( 0x2C ) ]
11
+ [ LocoStringCount ( 1 ) ]
11
12
public class BridgeObject : ILocoStruct , ILocoStructVariableData
12
13
{
13
14
public const ObjectType ObjType = ObjectType . Bridge ;
@@ -16,9 +17,9 @@ public class BridgeObject : ILocoStruct, ILocoStructVariableData
16
17
public const int TrackModsLength = 7 ;
17
18
public const int RoadModsLength = 7 ;
18
19
19
- public BridgeObject ( ushort name , byte noRoof , byte [ ] pad_03 , ushort var_06 , byte spanLength , byte pillarSpacing , short maxSpeed , byte maxHeight , byte costIndex , short baseCostFactor , short heightCostFactor , short sellCostFactor , ushort disabledTrackCfg , uint image , byte trackNumCompatible , byte [ ] trackMods , byte roadNumCompatible , byte [ ] roadMods , ushort designedYear )
20
+ public BridgeObject ( /* ushort name, */ byte noRoof , byte [ ] pad_03 , ushort var_06 , byte spanLength , byte pillarSpacing , short maxSpeed , byte maxHeight , byte costIndex , short baseCostFactor , short heightCostFactor , short sellCostFactor , ushort disabledTrackCfg , /* uint image,*/ byte trackNumCompatible , byte [ ] trackMods , byte roadNumCompatible , byte [ ] roadMods , ushort designedYear )
20
21
{
21
- Name = name ;
22
+ // Name = name;
22
23
NoRoof = noRoof ;
23
24
this . pad_03 = pad_03 ;
24
25
this . var_06 = var_06 ;
@@ -31,7 +32,7 @@ public BridgeObject(ushort name, byte noRoof, byte[] pad_03, ushort var_06, byte
31
32
HeightCostFactor = heightCostFactor ;
32
33
SellCostFactor = sellCostFactor ;
33
34
DisabledTrackCfg = disabledTrackCfg ;
34
- Image = image ;
35
+ // Image = image;
35
36
TrackNumCompatible = trackNumCompatible ;
36
37
TrackMods = trackMods ;
37
38
RoadNumCompatible = roadNumCompatible ;
@@ -46,7 +47,7 @@ public ReadOnlySpan<byte> Load(ReadOnlySpan<byte> remainingData)
46
47
return remainingData [ bytesRead ..] ;
47
48
}
48
49
49
- [ LocoStructOffset ( 0x00 ) ] public string_id Name { get ; set ; }
50
+ // [LocoStructOffset(0x00)] public string_id Name { get; set; }
50
51
[ LocoStructOffset ( 0x02 ) ] public uint8_t NoRoof { get ; set ; }
51
52
[ LocoStructOffset ( 0x03 ) , LocoArrayLength ( 0x06 - 0x03 ) ] public uint8_t [ ] pad_03 { get ; set ; }
52
53
[ LocoStructOffset ( 0x06 ) ] public uint16_t var_06 { get ; set ; }
@@ -59,7 +60,7 @@ public ReadOnlySpan<byte> Load(ReadOnlySpan<byte> remainingData)
59
60
[ LocoStructOffset ( 0x10 ) ] public int16_t HeightCostFactor { get ; set ; }
60
61
[ LocoStructOffset ( 0x12 ) ] public int16_t SellCostFactor { get ; set ; }
61
62
[ LocoStructOffset ( 0x14 ) ] public uint16_t DisabledTrackCfg { get ; set ; }
62
- [ LocoStructOffset ( 0x16 ) ] public uint32_t Image { get ; set ; }
63
+ // [LocoStructOffset(0x16)] public uint32_t Image { get; set; }
63
64
[ LocoStructOffset ( 0x1A ) ] public uint8_t TrackNumCompatible { get ; set ; }
64
65
[ LocoStructOffset ( 0x1B ) , LocoArrayLength ( BridgeObject . TrackModsLength ) ] public uint8_t [ ] TrackMods { get ; set ; }
65
66
[ LocoStructOffset ( 0x22 ) ] public uint8_t RoadNumCompatible { get ; set ; }
0 commit comments