| 21 | namespace OpenRCT2 |
| 22 | { |
| 23 | void TerrainSurfaceObject::Load() |
| 24 | { |
| 25 | GetStringTable().Sort(); |
| 26 | NameStringId = LanguageAllocateObjectString(GetName()); |
| 27 | IconImageId = LoadImages(); |
| 28 | if (Flags.hasAny(TerrainSurfaceFlag::smoothWithSelf, TerrainSurfaceFlag::smoothWithOther)) |
| 29 | { |
| 30 | PatternBaseImageId = IconImageId + 1; |
| 31 | EntryBaseImageId = PatternBaseImageId + 6; |
| 32 | } |
| 33 | else |
| 34 | { |
| 35 | EntryBaseImageId = IconImageId + 1; |
| 36 | } |
| 37 | NumEntries = (GetImageTable().GetCount() - EntryBaseImageId) / kNumImagesInEntry; |
| 38 | } |
| 39 | |
| 40 | void TerrainSurfaceObject::Unload() |
| 41 | { |
nothing calls this directly
no test coverage detected