1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00
Files
OpenRCT2/src/openrct2/object/PeepNamesObject.h
Aaron van Geffen a053a84486 Move all object units into OpenRCT2 namespace (#24980)
* Move all object units into OpenRCT2 namespace

* Dealing with fallout, part 1

* Dealing with fallout, part 2

* Dealing with fallout, part 3

* Apply clang-format in a few more places

* Remove redundant 'virtual' keyword
2025-08-17 06:46:03 -03:00

37 lines
1.1 KiB
C++

/*****************************************************************************
* Copyright (c) 2014-2025 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#pragma once
#include "../core/IStream.hpp"
#include "Object.h"
#include <string>
#include <vector>
namespace OpenRCT2
{
class PeepNamesObject final : public Object
{
private:
std::vector<std::string> _givenNames;
std::vector<std::string> _surnames;
public:
static constexpr ObjectType kObjectType = ObjectType::peepNames;
void ReadJson(IReadObjectContext* context, json_t& root) override;
void Load() override;
void Unload() override;
std::string GetGivenNameAt(size_t index) const;
std::string GetSurnameAt(size_t index) const;
};
} // namespace OpenRCT2