forked from rosebudai/OpenRCT2-Web
Implement footpath JSON reading
This commit is contained in:
1 parent
27a055653c
commit
d27a90f068
5 files changed
+52
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user