Open kevinputnam opened 1 week ago
Examples: onClick, onCollision, onInteract, onInit
Need to implement framework in game and game container classes to support callbacks. The test implementation of on_select_button is a complete hack and is not generalizable to other cases.
In addition, this highlights the need for a reusable script object at the game level that is a basically an action container. See Issue #9
The callbacks exposed to the editor will be determined by the parent class.
If game, scene, and thing set the same callback, the priority will be: thing, scene, game.
Allow for multiple callbacks/triggers for adding actions. Rather than "run" method in actions, have multiple Callbacks like "on_collision".