This class contains a map of properties. More...
#include <TmxPropertySet.h>
Public Member Functions | |
| void | Parse (const tinyxml2::XMLNode *propertiesNode) |
| Parse a node containing all the property nodes. | |
| int | GetIntProperty (const std::string &name, int defaultValue=0) const |
| Get a int property. | |
| float | GetFloatProperty (const std::string &name, float defaultValue=0.0f) const |
| Get a float property. | |
| std::string | GetStringProperty (const std::string &name, std::string defaultValue="") const |
| Get a string property. | |
| bool | GetBoolProperty (const std::string &name, bool defaultValue=false) const |
| Get a bool property. | |
| Tmx::Color | GetColorProperty (const std::string &name, Tmx::Color defaultValue=Tmx::Color()) const |
| Get a color property. | |
| int | GetSize () const |
| Returns the amount of properties. | |
| bool | HasProperty (const std::string &name) const |
| Checks if a property exists in the set. | |
|
const std::unordered_map < std::string, Property > & | GetPropertyMap () const |
| Returns the unordered map of properties. | |
| std::map< std::string, std::string > | GetList () const |
| Returns the STL map of the properties. More... | |
| bool | Empty () const |
| Returns whether there are no properties. | |
This class contains a map of properties.
| std::map< std::string, std::string > Tmx::PropertySet::GetList | ( | ) | const |
Returns the STL map of the properties.
Deprecated, please use GetPropertyMap() instead.
1.8.6