mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 13:33:02 +01:00
improve object loading efficiency
This commit is contained in:
@@ -35,6 +35,7 @@ extern "C"
|
||||
|
||||
typedef struct ObjectRepositoryItem
|
||||
{
|
||||
size_t Id;
|
||||
rct_object_entry ObjectEntry;
|
||||
utf8 * Path;
|
||||
utf8 * Name;
|
||||
@@ -67,6 +68,9 @@ interface IObjectRepository
|
||||
virtual const ObjectRepositoryItem * FindObject(const rct_object_entry * objectEntry) const abstract;
|
||||
|
||||
virtual Object * LoadObject(const ObjectRepositoryItem * ori) abstract;
|
||||
virtual void RegisterLoadedObject(const ObjectRepositoryItem * ori, Object * object) abstract;
|
||||
virtual void UnregisterLoadedObject(const ObjectRepositoryItem * ori, Object * object) abstract;
|
||||
|
||||
virtual void AddObject(const rct_object_entry * objectEntry,
|
||||
const void * data,
|
||||
size_t dataSize) abstract;
|
||||
|
||||
Reference in New Issue
Block a user