2017-12-14 18:43:59 +00:00
|
|
|
/*****************************************************************************
|
2019-03-17 08:16:15 +01:00
|
|
|
* Copyright (c) 2014-2019 OpenRCT2 developers
|
2018-06-15 14:07:34 +02:00
|
|
|
*
|
|
|
|
|
* 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.
|
|
|
|
|
*****************************************************************************/
|
2017-12-14 18:43:59 +00:00
|
|
|
|
|
|
|
|
#include "SceneryObject.h"
|
|
|
|
|
|
2018-06-22 23:03:20 +02:00
|
|
|
#include "ObjectJsonHelpers.h"
|
|
|
|
|
|
|
|
|
|
void SceneryObject::SetPrimarySceneryGroup(const std::string& s)
|
2017-12-14 18:43:59 +00:00
|
|
|
{
|
|
|
|
|
if (!s.empty())
|
|
|
|
|
{
|
|
|
|
|
auto sgEntry = ObjectJsonHelpers::ParseObjectEntry(s);
|
|
|
|
|
SetPrimarySceneryGroup(&sgEntry);
|
|
|
|
|
}
|
|
|
|
|
}
|