Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public final class Bootstrap {
- /**
- * The engine of the game.
- */
- private final Engine mEngine = DefaultEngine.newEngine("Argentum Online v1.000.120", Platform.SERVER);
- /**
- * Constructor.
- */
- public Bootstrap() {
- mEngine.initialise(this::onEvent, this::onEvent);
- }
- /**
- * Handle {@link EngineStartedEvent}.
- */
- private void onEvent(EngineStartedEvent event) {
- System.out.println("EngineStartedEvent");
- }
- /**
- * Handle {@link EngineStoppedEvent}.
- */
- private void onEvent(EngineStoppedEvent event) {
- System.out.println("EngineStoppedEvent");
- }
- /**
- * Main entry of the application.
- */
- public static void main(String[] argv) {
- new Bootstrap();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement