tmxlite 1.0.0
lightweight parse for Tiled maps
|
Parser for Tiled object types export format. Link to the specification: https://doc.mapeditor.org/fr/latest/manual/custom-properties/#predefining-properties. More...
#include <ObjectTypes.hpp>
Classes | |
struct | Type |
Types that stores all predefined properties for all objects of this type. To take less spaces, they are not exported by default into maps. More... | |
Public Member Functions | |
bool | load (const std::string &) |
Attempts to parse the object types at the given location. | |
bool | loadFromString (const std::string &data, const std::string &workingDir) |
Loads an object types from a document stored in a string. | |
const std::vector< Type > & | getTypes () const |
Returns all predefined types and their default values. | |
Parser for Tiled object types export format. Link to the specification: https://doc.mapeditor.org/fr/latest/manual/custom-properties/#predefining-properties.
bool tmx::ObjectTypes::load | ( | const std::string & | ) |
Attempts to parse the object types at the given location.
std::string | Path to object types file to try to parse |
bool tmx::ObjectTypes::loadFromString | ( | const std::string & | data, |
const std::string & | workingDir ) |
Loads an object types from a document stored in a string.
data | A std::string containing the object types to load |
workingDir | A std::string containing the working directory in which to find files. |