AnnexGameDev / Annex

A 2D game development framework
MIT License
3 stars 0 forks source link

Scene Events #15

Closed MatthewChrobak closed 1 year ago

MatthewChrobak commented 4 years ago

Scenes should trigger overridable handlers in the current/previous scene. Args should contain the instance of the scene left/being entered.

class Scene
{
    virtual void OnSceneEnter(Args e) {
        // When a scene is entered, not necessarily initialized.
    }

    virtual void OnSceneLeave(Args e) {
        // When a scene is left, not necessarily unloaded
    }
}