Tileson 1.4.0
A helpful json parser for Tiled maps
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
Object.hpp File Reference
#include "../objects/Vector2.hpp"
#include "../objects/PropertyCollection.hpp"
#include "Text.hpp"
#include "../common/Enums.hpp"
#include <optional>

Go to the source code of this file.

Classes

class  tson::Object
 

Namespaces

namespace  tson
 

Functions

IJsontson::readField (const std::string &fieldName, IJson &main, IJson *templ=nullptr)
 
bool tson::readField (Text &field, const std::string &fieldName, IJson &main, IJson *templ=nullptr)
 
bool tson::readField (std::vector< Vector2i > &field, const std::string &fieldName, IJson &main, IJson *templ=nullptr)
 
template<typename T >
bool tson::readField (T &field, const std::string &fieldName, IJson &main, IJson *templ=nullptr)
 
bool tson::readVector (Vector2i &field, const std::string &fieldNameX, const std::string &fieldNameY, IJson &main, IJson *templ=nullptr)
 
void tson::readProperties (tson::PropertyCollection &properties, IJson &json, tson::Map *map)
 
void tson::readGid (uint32_t &gid, TileFlipFlags &flags, IJson &main, IJson *templ=nullptr)