1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Implement footpath JSON reading

This commit is contained in:
Ted John
2017-12-08 18:27:30 +00:00
committed by Gymnasiast
parent 27a055653c
commit d27a90f068
5 changed files with 52 additions and 2 deletions

View File

@@ -28,6 +28,13 @@ using namespace OpenRCT2;
namespace ObjectJsonHelpers
{
std::string GetString(const json_t * value)
{
return json_is_string(value) ?
std::string(json_string_value(value)) :
std::string();
}
std::vector<std::string> GetJsonStringArray(const json_t * arr)
{
std::vector<std::string> result;