package mightypork.rogue.screens; import mightypork.util.control.eventbus.events.Event; /** * @author MightyPork */ public class CrossfadeRequest implements Event { private final String screen; /** * @param screen screen key to show. Null = exit the app. */ public CrossfadeRequest(String screen) { super(); this.screen = screen; } public interface Listener { void goToScreen(String screen); } @Override public void handleBy(Listener handler) { handler.goToScreen(screen); } }