mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 01:04:50 +01:00
Implement scaffolding for climate objects
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "../rct12/SawyerChunkReader.h"
|
||||
#include "AudioObject.h"
|
||||
#include "BannerObject.h"
|
||||
#include "ClimateObject.h"
|
||||
#include "EntranceObject.h"
|
||||
#include "FootpathObject.h"
|
||||
#include "FootpathRailingsObject.h"
|
||||
@@ -394,6 +395,9 @@ namespace OpenRCT2::ObjectFactory
|
||||
case ObjectType::peepAnimations:
|
||||
result = std::make_unique<PeepAnimationsObject>();
|
||||
break;
|
||||
case ObjectType::climate:
|
||||
result = std::make_unique<ClimateObject>();
|
||||
break;
|
||||
default:
|
||||
throw std::runtime_error("Invalid object type");
|
||||
}
|
||||
@@ -440,6 +444,8 @@ namespace OpenRCT2::ObjectFactory
|
||||
return ObjectType::peepNames;
|
||||
if (s == "peep_animations")
|
||||
return ObjectType::peepAnimations;
|
||||
if (s == "climate")
|
||||
return ObjectType::climate;
|
||||
return ObjectType::none;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user