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/gamecore/core/modules/AppModule.java

52 lines
916 B

package mightypork.gamecore.core.modules;
import mightypork.gamecore.input.InputSystem;
import mightypork.gamecore.resources.audio.SoundSystem;
import mightypork.utils.eventbus.clients.RootBusNode;
/**
* App event bus client, to be used for subsystems, screens and anything that
* needs access to the eventbus and other systems; Attached directly to bus.
*
* @author Ondřej Hruška (MightyPork)
*/
public abstract class AppModule extends RootBusNode implements AppAccess {
private final AppAccess app;
/**
* Create a module
*
* @param app access to app systems
*/
public AppModule(AppAccess app) {
super(app);
this.app = app;
}
@Override
public final SoundSystem getSoundSystem()
{
return app.getSoundSystem();
}
@Override
public final InputSystem getInput()
{
return app.getInput();
}
@Override
public final void shutdown()
{
app.shutdown();
}
}