1
0
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:
Ted John
2016-07-04 00:05:39 +01:00
parent e8635c1307
commit 2f8f10cd11
8 changed files with 456 additions and 129 deletions

View File

@@ -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;