1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Implement object manager for plugins

This commit is contained in:
Ted John
2023-04-29 17:39:35 +01:00
parent 9a20c47f86
commit 069a2b3192
10 changed files with 392 additions and 69 deletions

View File

@@ -175,6 +175,12 @@ public:
return RepositoryItemToObject(ori);
}
Object* LoadObject(const ObjectEntryDescriptor& descriptor, ObjectEntryIndex slot) override
{
const ObjectRepositoryItem* ori = _objectRepository.FindObject(descriptor);
return RepositoryItemToObject(ori, slot);
}
void LoadObjects(const ObjectList& objectList) override
{
// Find all the required objects