1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

start getting object loading working

This commit is contained in:
Ted John
2016-06-25 16:34:35 +01:00
parent e93b2141a1
commit 78e15b1d56
17 changed files with 277 additions and 32 deletions

View File

@@ -20,6 +20,7 @@
#include "EntranceObject.h"
#include "Object.h"
#include "ObjectFactory.h"
#include "StexObject.h"
extern "C"
{
@@ -29,7 +30,7 @@ extern "C"
namespace ObjectFactory
{
Object * CreateObjectFromLegacyFile(utf8 * path)
Object * CreateObjectFromLegacyFile(const utf8 * path)
{
Object * result = nullptr;
@@ -64,6 +65,9 @@ namespace ObjectFactory
case OBJECT_TYPE_PARK_ENTRANCE:
result = new EntranceObject(entry);
break;
case OBJECT_TYPE_SCENARIO_TEXT:
result = new StexObject(entry);
break;
}
return result;