Rogue: Savage Rats, a retro-themed dungeon crawler
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.
 
 
rogue-savage-rats/src/mightypork/utils/control/bus/events/DestroyEvent.java

21 lines
395 B

package mightypork.utils.control.bus.events;
import mightypork.utils.control.bus.Event;
import mightypork.utils.control.interf.Destroyable;
/**
* Invoke destroy() method of all subscribers. Used to deinit a system.
*
* @author MightyPork
*/
public class DestroyEvent implements Event<Destroyable> {
@Override
public void handleBy(Destroyable handler)
{
handler.destroy();
}
}