add small scenery object

This commit is contained in:
Ted John committed 2016-07-08 22:58:38 +01:00
1 parent 7e206d1a85
commit daa5a0c506
5 files changed
+156 -1

No files matched your search

+4
View File
@@ -22,6 +22,7 @@
#include "FootpathObject.h"
#include "Object.h"
#include "ObjectFactory.h"
#include "SmallSceneryObject.h"
#include "StexObject.h"
extern "C"
@@ -64,6 +65,9 @@ namespace ObjectFactory
uint8 objectType = entry.flags & 0x0F;
switch (objectType) {
case OBJECT_TYPE_SMALL_SCENERY:
result = new SmallSceneryObject(entry);
break;
case OBJECT_TYPE_PATHS:
result = new FootpathObject(entry);
break;