mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 23:04:36 +01:00
Remove hardcoded terrain style constants from RCT1 and MapGen
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "../localisation/StringIds.h"
|
||||
#include "../world/Scenery.h"
|
||||
#include "ObjectLimits.h"
|
||||
#include "ObjectRepository.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
@@ -301,6 +302,20 @@ std::unique_ptr<IStream> ObjectAsset::GetStream() const
|
||||
return {};
|
||||
}
|
||||
|
||||
ObjectEntryDescriptor::ObjectEntryDescriptor(const ObjectRepositoryItem& ori)
|
||||
{
|
||||
if (ori.Identifier != "")
|
||||
{
|
||||
Generation = ObjectGeneration::JSON;
|
||||
Identifier = std::string(ori.Identifier);
|
||||
}
|
||||
else
|
||||
{
|
||||
Generation = ObjectGeneration::DAT;
|
||||
Entry = ori.ObjectEntry;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __WARN_SUGGEST_FINAL_METHODS__
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user