I’m curious how folks use AppStates… so I made a poll:
- I use one of the AppState base classes like I’m supposed to.
- I’m a rebel and just implement the AppState interface directly.
- What’s an AppState?
Reasoning: I would like to add a getId():String method to the AppState interface and then default implementations to the base classes. This would “harm” only those who implement AppState directly.
Adding the method is WAY easier and cleaner than having an interim IdentifiableAppState interface or somesuch.
The idea here is to be able to lookup AppStates by ID instead of just class. Useful when you have something like a ViewPortState and want to get the “rootNode” viewport versus the “guiNode” viewport, for example.