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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user