1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

add ride object loading

This commit is contained in:
Ted John
2016-06-25 22:07:01 +01:00
parent daa5a0c506
commit 2c02412f98
5 changed files with 418 additions and 0 deletions

View File

@@ -22,6 +22,7 @@
#include "FootpathObject.h"
#include "Object.h"
#include "ObjectFactory.h"
#include "RideObject.h"
#include "SmallSceneryObject.h"
#include "StexObject.h"
@@ -65,6 +66,9 @@ namespace ObjectFactory
uint8 objectType = entry.flags & 0x0F;
switch (objectType) {
case OBJECT_TYPE_RIDE:
result = new RideObject(entry);
break;
case OBJECT_TYPE_SMALL_SCENERY:
result = new SmallSceneryObject(entry);
break;