1
0
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:
Aaron van Geffen
2025-02-01 16:52:39 +01:00
parent 16222331a9
commit 5dda84c891
14 changed files with 88 additions and 11 deletions

View File

@@ -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;
}