| 17 | namespace OpenRCT2 |
| 18 | { |
| 19 | void FootpathRailingsObject::Load() |
| 20 | { |
| 21 | GetStringTable().Sort(); |
| 22 | NameStringId = LanguageAllocateObjectString(GetName()); |
| 23 | |
| 24 | auto numImages = GetImageTable().GetCount(); |
| 25 | if (numImages != 0) |
| 26 | { |
| 27 | PreviewImageId = LoadImages(); |
| 28 | BridgeImageId = PreviewImageId + 37; |
| 29 | RailingsImageId = PreviewImageId + 1; |
| 30 | } |
| 31 | |
| 32 | _descriptor.name = NameStringId; |
| 33 | _descriptor.bridgeImage = BridgeImageId; |
| 34 | _descriptor.previewImage = PreviewImageId; |
| 35 | _descriptor.flags = Flags; |
| 36 | _descriptor.scrollingMode = ScrollingMode; |
| 37 | _descriptor.supportType = SupportType; |
| 38 | _descriptor.supportColour = Colour; |
| 39 | _descriptor.railingsImage = RailingsImageId; |
| 40 | } |
| 41 | |
| 42 | void FootpathRailingsObject::Unload() |
| 43 | { |
nothing calls this directly
no test coverage detected