use of org.terasology.engine.subsystem.headless.HeadlessGraphics in project Terasology by MovingBlocks.
the class Terasology method populateSubsystems.
private static void populateSubsystems(TerasologyEngineBuilder builder) {
if (isHeadless) {
builder.add(new HeadlessGraphics()).add(new HeadlessTimer()).add(new HeadlessAudio()).add(new HeadlessInput());
} else {
EngineSubsystem audio = soundEnabled ? new LwjglAudio() : new HeadlessAudio();
builder.add(audio).add(new LwjglGraphics()).add(new LwjglTimer()).add(new LwjglInput()).add(new BindsSubsystem()).add(new OpenVRInput());
}
builder.add(new HibernationSubsystem());
}
Also used :
LwjglAudio(org.terasology.engine.subsystem.lwjgl.LwjglAudio)
HeadlessTimer(org.terasology.engine.subsystem.headless.HeadlessTimer)
BindsSubsystem(org.terasology.engine.subsystem.config.BindsSubsystem)
HeadlessGraphics(org.terasology.engine.subsystem.headless.HeadlessGraphics)
EngineSubsystem(org.terasology.engine.subsystem.EngineSubsystem)
OpenVRInput(org.terasology.engine.subsystem.openvr.OpenVRInput)
LwjglTimer(org.terasology.engine.subsystem.lwjgl.LwjglTimer)
LwjglInput(org.terasology.engine.subsystem.lwjgl.LwjglInput)
LwjglGraphics(org.terasology.engine.subsystem.lwjgl.LwjglGraphics)
HeadlessInput(org.terasology.engine.subsystem.headless.HeadlessInput)
HeadlessAudio(org.terasology.engine.subsystem.headless.HeadlessAudio)
HibernationSubsystem(org.terasology.engine.subsystem.common.hibernation.HibernationSubsystem)