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

Method SetObject

src/openrct2/object/ObjectList.cpp:161–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159 }
160
161 void ObjectList::SetObject(ObjectEntryIndex index, const ObjectEntryDescriptor& entry)
162 {
163 auto& subList = GetList(entry.GetType());
164 if (subList.size() <= index)
165 {
166 subList.resize(static_cast<size_t>(index) + 1);
167 }
168 subList[index] = entry;
169 }
170
171 void ObjectList::SetObject(ObjectType type, ObjectEntryIndex index, std::string_view identifier)
172 {

Callers 4

RCT12AddDefaultMusicFunction · 0.80
ReadWriteObjectsChunkMethod · 0.80
GetRequiredObjectsMethod · 0.80
GetLoadedObjectsMethod · 0.80

Calls 3

GetTypeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected