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:
Aaron van Geffen authored and GitHub committed 2024-09-29 15:05:55 +02:00
1 parent 0f58efe198
commit 931f0705ce
31 files changed
+148 -1097

No files matched your search

+6
View File
@@ -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;
}