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
542 B
29 lines
542 B
package mightypork.gamecore.core;
|
|
|
|
|
|
import mightypork.gamecore.eventbus.BusEvent;
|
|
import mightypork.gamecore.eventbus.event_flags.SingleReceiverEvent;
|
|
|
|
|
|
/**
|
|
* Shutdown request. Shutdown needs to execute on GL thread for display to
|
|
* deinit properly.
|
|
*
|
|
* @author MightyPork
|
|
*/
|
|
@SingleReceiverEvent
|
|
public class ShudownRequest extends BusEvent<MainLoop> {
|
|
|
|
@Override
|
|
public void handleBy(final MainLoop handler)
|
|
{
|
|
handler.queueTask(new Runnable() {
|
|
|
|
@Override
|
|
public void run()
|
|
{
|
|
handler.shutdown();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|