Open Mikhael-Danilov opened 6 years ago
Definitely something to keep in mind when making Tiled scriptable (#949). I think you'd basically want to have some kind of validation script that runs on certain events (maybe saving, maybe periodically, or based on specific change events) and then there should be a way to log warnings or errors such that they show up somewhere, like having an icon in the status bar and more details in a log window.
Yes, embedded scripting will solve my issue. It also will be nice if validation script will be allowed to block or auto-undo changes ( while displaying error message to user).
It will be nice to have a way to enforce custom rules while editing maps.
For example limit tilesets to be used by each specific layer, check map passability and so on. And be able to customize such constrains without touching main code base.
Currently I enforce such rules in export plugin, but it is too late sometimes ( because a lot of work already done on top of rule violation step )