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