When constructing a TMXTiledMap
instance with Cocos2D-X, how can one access an object custom properties ?
I can see that TMXObjectGroup provides a getObject
method
ValueMap getObject (const std::string &objectName) const
but how do I access unnamed objects within a loop ? There is a getObjects()
method which returns a vector of Value
but what are the values in that case?