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.
37 lines
648 B
37 lines
648 B
package mightypork.gamecore.control.bus.clients;
|
|
|
|
|
|
import mightypork.gamecore.control.bus.BusAccess;
|
|
import mightypork.gamecore.control.interf.Destroyable;
|
|
|
|
|
|
/**
|
|
* Bus node that should be directly attached to the bus.
|
|
*
|
|
* @author MightyPork
|
|
*/
|
|
public abstract class RootBusNode extends BusNode implements Destroyable {
|
|
|
|
public RootBusNode(BusAccess busAccess) {
|
|
super(busAccess);
|
|
|
|
getEventBus().subscribe(this);
|
|
}
|
|
|
|
|
|
@Override
|
|
public final void destroy()
|
|
{
|
|
deinit();
|
|
|
|
getEventBus().unsubscribe(this);
|
|
}
|
|
|
|
|
|
/**
|
|
* Deinitialize the subsystem<br>
|
|
* (called during destruction)
|
|
*/
|
|
protected abstract void deinit();
|
|
|
|
}
|
|
|