You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
511 B
29 lines
511 B
package mightypork.rogue.bus.events;
|
|
|
|
|
|
import mightypork.utils.control.bus.Event;
|
|
import mightypork.utils.control.bus.SingularEvent;
|
|
|
|
|
|
public class ScreenRequestEvent implements Event<ScreenRequestEvent.Listener>, SingularEvent {
|
|
|
|
private final String scrName;
|
|
|
|
|
|
public ScreenRequestEvent(String screenKey) {
|
|
scrName = screenKey;
|
|
}
|
|
|
|
|
|
@Override
|
|
public void handleBy(Listener handler)
|
|
{
|
|
handler.showScreen(scrName);
|
|
}
|
|
|
|
public interface Listener {
|
|
|
|
public void showScreen(String key);
|
|
}
|
|
|
|
}
|
|
|