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.
24 lines
482 B
24 lines
482 B
10 years ago
|
package mightypork.gamecore.control.events;
|
||
10 years ago
|
|
||
|
|
||
10 years ago
|
import mightypork.util.control.Destroyable;
|
||
|
import mightypork.util.control.eventbus.events.Event;
|
||
|
import mightypork.util.control.eventbus.events.flags.ImmediateEvent;
|
||
10 years ago
|
|
||
|
|
||
10 years ago
|
/**
|
||
|
* Invoke destroy() method of all subscribers. Used to deinit a system.
|
||
|
*
|
||
|
* @author MightyPork
|
||
|
*/
|
||
10 years ago
|
@ImmediateEvent
|
||
10 years ago
|
public class DestroyEvent implements Event<Destroyable> {
|
||
10 years ago
|
|
||
|
@Override
|
||
|
public void handleBy(Destroyable handler)
|
||
|
{
|
||
|
handler.destroy();
|
||
|
}
|
||
|
|
||
|
}
|