TMXObjectGroup represents the TMX object group.
More...
Inherits Ref.
|
|
unsigned int | _ID |
| | object id, ScriptSupport need public _ID
|
| |
|
int | _luaID |
| | Lua reference id.
|
| |
|
void * | _scriptObject |
| | scriptObject, support for swift
|
| |
|
bool | _rooted |
| | When true, it means that the object was already rooted.
|
| |
TMXObjectGroup represents the TMX object group.
- Since
- v0.99.0
◆ getGroupName()
| const std::string& getGroupName |
( |
| ) |
const |
|
inline |
Get the group name.
- Returns
- The group name.
◆ setGroupName()
| void setGroupName |
( |
const std::string & |
groupName | ) |
|
|
inline |
Set the group name.
- Parameters
-
| groupName | A string,it is used to set the group name. |
◆ getProperty()
| Value getProperty |
( |
const std::string & |
propertyName | ) |
const |
Return the value for the specific property name.
- Parameters
-
| propertyName | The specific property name. |
- Returns
- Return the value for the specific property name. @js NA
◆ getObject()
| ValueMap getObject |
( |
const std::string & |
objectName | ) |
const |
Return the dictionary for the specific object name.
It will return the 1st object found on the array for the given name.
- Returns
- Return the dictionary for the specific object name.
◆ getPositionOffset()
| const Vec2& getPositionOffset |
( |
| ) |
const |
|
inline |
Gets the offset position of child objects.
- Returns
- The offset position of child objects.
◆ setPositionOffset()
| void setPositionOffset |
( |
const Vec2 & |
offset | ) |
|
|
inline |
Sets the offset position of child objects.
- Parameters
-
| offset | The offset position of child objects. |
◆ getProperties()
| const ValueMap& getProperties |
( |
| ) |
const |
|
inline |
Gets the list of properties stored in a dictionary.
- Returns
- The list of properties stored in a dictionary.
◆ setProperties()
| void setProperties |
( |
const ValueMap & |
properties | ) |
|
|
inline |
Sets the list of properties.
- Parameters
-
| properties | The list of properties. |
◆ getObjects()
| const ValueVector& getObjects |
( |
| ) |
const |
|
inline |
Gets the array of the objects.
- Returns
- The array of the objects.
◆ setObjects()
| void setObjects |
( |
const ValueVector & |
objects | ) |
|
|
inline |
Sets the array of the objects.
- Parameters
-
| objects | The array of the objects. |
The documentation for this class was generated from the following file: