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

Method GetLoadedObject

src/openrct2/object/ObjectManager.h:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 virtual Object* GetLoadedObject(ObjectType objectType, size_t index) = 0;
37 template<typename TClass>
38 TClass* GetLoadedObject(size_t index)
39 {
40 return static_cast<TClass*>(GetLoadedObject(TClass::kObjectType, index));
41 }
42 virtual Object* GetLoadedObject(const ObjectEntryDescriptor& entry) = 0;
43 virtual ObjectEntryIndex GetLoadedObjectEntryIndex(std::string_view identifier) = 0;
44 virtual ObjectEntryIndex GetLoadedObjectEntryIndex(const ObjectEntryDescriptor& descriptor) = 0;

Callers 15

ApplySurfaceFixesFunction · 0.45
SetupInUseSelectionFlagsFunction · 0.45
TrackDesignMirrorSceneryFunction · 0.45
GetObjectMethod · 0.45
loadMethod · 0.45
unloadMethod · 0.45
getObjectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected