We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instead of defining indivual listeners per game component, have a so called EventManager:
EventManager eventManager = context.getEventManager();
It is the possible to implement custom events:
class MyTestEvent implements GameEvent { }
In order to produce:
eventManager.publish(new MyTestEvent());
In order to consume:
eventManager.register(new GameEventListener<MyTestEvent>() { @Override public void onEvent(MyTestEvent event) { // do something with the event } });
The text was updated successfully, but these errors were encountered:
aa8f22f
No branches or pull requests
Instead of defining indivual listeners per game component, have a so called EventManager:
It is the possible to implement custom events:
In order to produce:
In order to consume:
The text was updated successfully, but these errors were encountered: