List<ShapeData> shapes = sh.getShapes();
for (ShapeData sd : Collections.unmodifiableCollection(shapes)){
ShapeMapObject smo = new ShapeMapObject(new DrawSettings()); // TODO: Attach draw settings to GENEREAL (DrawTool)
for(int i=0;i<sd.x.length;i++){
WorldPos vertex = new WorldPos(sd.x[i], sd.y[i]);
smo.addVertex(vertex);
smo.setShapeId(sd.name);
}
refEditor.addMapObject(smo);
}
}