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

Method ToString

src/openrct2/object/Object.cpp:89–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 }
88
89 std::string ObjectEntryDescriptor::ToString() const
90 {
91 if (Generation == ObjectGeneration::DAT)
92 {
93 char buffer[32];
94 std::snprintf(&buffer[0], 9, "%08X", Entry.flags);
95 buffer[8] = '|';
96 std::memcpy(&buffer[9], Entry.name, 8);
97 buffer[17] = '|';
98 std::snprintf(&buffer[18], 9, "%8X", Entry.checksum);
99 return std::string(buffer);
100 }
101 else
102 {
103 return std::string(GetName());
104 }
105 }
106
107 static uint32_t ParseHex(std::string_view x)
108 {

Callers 8

CheckStateMethod · 0.45
HandleSimulateFunction · 0.45
CheckSRANDMethod · 0.45
ServerSendTickMethod · 0.45
identifier_getMethod · 0.45
identifier_getMethod · 0.45
sceneryGroups_getMethod · 0.45
items_getMethod · 0.45

Calls 1

GetNameFunction · 0.50

Tested by

no test coverage detected