When you use:
BonfireWidget( map: WorldMapByTiled('maps/map_1_export.json', objectsBuilder: { 'wall': (properties) => Wall(position: properties.position, size: properties.size) }), ), )
The WorldMapByTiled - objectsBuilder search only in Tiled's Map,json Objects (layers[ ].objects)
When you defined the object in Tiled's Tilset.json the Object you cant use WorldMapByTiled - objectsBuilder
Like that: (tiltset.json)
{ "columns":2, "image":"map_atlas.png", "imageheight":32, "imagewidth":64, "margin":0, "name":"map_atlas", "spacing":0, "tilecount":2, "tiledversion":"1.9.2", "tileheight":32, "tiles":[ { "id":0, "objectgroup": { "draworder":"index", "id":2, "objects":[ { "class":"wallclass", "height":32, "id":2, "name":"wall", "rotation":0, "visible":true, "width":32, "x":0, "y":0 }], "opacity":1, "type":"objectgroup", "visible":true, "x":0, "y":0 } }], "tilewidth":32, "type":"tileset", "version":"1.9" }
(The Tilset's objects automatic added to the game, but you cant use the objectsBuilder and make your own class.)
Thank You, Happy new year!