mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 19:43:06 +01:00
Introduce PeepNamesObjects for 'real' names of peeps (#22758)
* Add initial PeepNamesObject implementation * Add peep names object to default objects * Append peep names object to object list for older saves * Deduplicate AppendRequiredObjects functions * Remove built-in 'real name' tables * Increment park version; introduce kPeepNamesObjectsVersion * Update objects dependency to v1.4.8
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include "ObjectLimits.h"
|
||||
#include "ObjectList.h"
|
||||
#include "PathAdditionObject.h"
|
||||
#include "PeepNamesObject.h"
|
||||
#include "RideObject.h"
|
||||
#include "SceneryGroupObject.h"
|
||||
#include "SmallSceneryObject.h"
|
||||
@@ -384,6 +385,9 @@ namespace OpenRCT2::ObjectFactory
|
||||
case ObjectType::Audio:
|
||||
result = std::make_unique<AudioObject>();
|
||||
break;
|
||||
case ObjectType::PeepNames:
|
||||
result = std::make_unique<PeepNamesObject>();
|
||||
break;
|
||||
default:
|
||||
throw std::runtime_error("Invalid object type");
|
||||
}
|
||||
@@ -424,6 +428,8 @@ namespace OpenRCT2::ObjectFactory
|
||||
return ObjectType::FootpathRailings;
|
||||
if (s == "audio")
|
||||
return ObjectType::Audio;
|
||||
if (s == "peep_names")
|
||||
return ObjectType::PeepNames;
|
||||
return ObjectType::None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user