mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 19:43:06 +01:00
Use music objects instead of IDs
This commit is contained in:
@@ -91,6 +91,26 @@ public:
|
||||
return loadedObject;
|
||||
}
|
||||
|
||||
ObjectEntryIndex GetLoadedObjectEntryIndex(std::string_view identifier) override
|
||||
{
|
||||
const auto* obj = GetLoadedObject(ObjectEntryDescriptor(identifier));
|
||||
if (obj != nullptr)
|
||||
{
|
||||
return GetLoadedObjectEntryIndex(obj);
|
||||
}
|
||||
return OBJECT_ENTRY_INDEX_NULL;
|
||||
}
|
||||
|
||||
ObjectEntryIndex GetLoadedObjectEntryIndex(const ObjectEntryDescriptor& descriptor) override
|
||||
{
|
||||
auto obj = GetLoadedObject(descriptor);
|
||||
if (obj != nullptr)
|
||||
{
|
||||
return GetLoadedObjectEntryIndex(obj);
|
||||
}
|
||||
return OBJECT_ENTRY_INDEX_NULL;
|
||||
}
|
||||
|
||||
ObjectEntryIndex GetLoadedObjectEntryIndex(const Object* object) override
|
||||
{
|
||||
ObjectEntryIndex result = OBJECT_ENTRY_INDEX_NULL;
|
||||
|
||||
Reference in New Issue
Block a user