Request: add event game:on_world_changed()
Add an event function "game:on_world_changed()".
This function could be useful if someday we use custom crystals (whose boolean local variables are stored somewhere and depend only on the current world). Custom entities as crystals would be better than built-in crystals since they allow (non-builtin) custom weapons to hit them, and to make them we could use the requested function.
Note that this function can be defined using the event game:on_map_changed() and some variable to store the name of the previous world. But it will be convenient to have it separated from the other event since on_map_changed may be overriden, which would prevent the event on_world_changed from being called, which is too bad.
There may be other uses for the function, but the most important one might be to keep control of the local variables (which are not savegame variables) that depend on the world, with a cleaner code.
Since this issue is not prioritary, it can be postponed for future versions of Solarus (v1.6 or a later one). If you think this function is not important enough, then just close the issue.