MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / Load

Method Load

src/openrct2/object/FootpathRailingsObject.cpp:19–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace 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 {

Callers

nothing calls this directly

Calls 4

GetNameFunction · 0.50
SortMethod · 0.45
GetCountMethod · 0.45

Tested by

no test coverage detected