I need to get the parameter "Texture". For example:
const std::vector<tmx::MapLayer>& layers = ml.GetLayers();
for (const auto& l : layers)
{
if (l.name == "Din")
{
for (const auto& o : l.objects)
{
if(o.GetName() == "Block") //
{
std::string tex = o.GetNameTexture(); Get parameter "Texture"
dimen = tmx::BodyCreator::Add(o, world, false , b2BodyType::b2_dynamicBody);
Block.Create(dimen);
Blocks.push_back(Block);
}
}
}
}
In the variable "tex" should be "Block.png"