Tileson 1.4.0
A helpful json parser for Tiled maps
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tson::TiledClass Class Reference

#include <TiledClass.hpp>

Public Member Functions

 TiledClass ()=default
 
 TiledClass (IJson &json, tson::Project *project=nullptr)
 
uint32_t getId () const
 
const std::string & getName () const
 
const std::string & getType () const
 
PropertyCollectiongetMembers ()
 
void update (IJson &json)
 
void update (PropertyCollection &properties)
 
template<typename T >
get (const std::string &name)
 
tson::PropertygetMember (const std::string &name)
 

Constructor & Destructor Documentation

◆ TiledClass() [1/2]

tson::TiledClass::TiledClass ( )
inlineexplicitdefault

◆ TiledClass() [2/2]

tson::TiledClass::TiledClass ( IJson json,
tson::Project project = nullptr 
)
inlineexplicit

Member Function Documentation

◆ get()

template<typename T >
T tson::TiledClass::get ( const std::string &  name)
inline

◆ getId()

uint32_t tson::TiledClass::getId ( ) const
inline

◆ getMember()

tson::Property * tson::TiledClass::getMember ( const std::string &  name)
inline

◆ getMembers()

PropertyCollection & tson::TiledClass::getMembers ( )
inline

◆ getName()

const std::string & tson::TiledClass::getName ( ) const
inline

◆ getType()

const std::string & tson::TiledClass::getType ( ) const
inline

◆ update() [1/2]

void tson::TiledClass::update ( IJson json)
inline

Takes a json object from a particular map top update values if they differ from the original values of the class

Parameters
json

◆ update() [2/2]

void tson::TiledClass::update ( PropertyCollection properties)
inline

The documentation for this class was generated from the following file: