Search in sources :

Example 1 with TerasologyEngine

use of org.terasology.engine.TerasologyEngine in project Terasology by MovingBlocks.

the class RegisterSystems method step.

@Override
public boolean step() {
    componentSystemManager = context.get(ComponentSystemManager.class);
    ModuleManager moduleManager = context.get(ModuleManager.class);
    TerasologyEngine terasologyEngine = (TerasologyEngine) context.get(GameEngine.class);
    for (EngineSubsystem subsystem : terasologyEngine.getSubsystems()) {
        subsystem.registerSystems(componentSystemManager);
    }
    componentSystemManager.loadSystems(moduleManager.getEnvironment(), netMode);
    return true;
}
Also used : EngineSubsystem(org.terasology.engine.subsystem.EngineSubsystem) GameEngine(org.terasology.engine.GameEngine) ModuleManager(org.terasology.engine.module.ModuleManager) TerasologyEngine(org.terasology.engine.TerasologyEngine) ComponentSystemManager(org.terasology.engine.ComponentSystemManager)

Aggregations

ComponentSystemManager (org.terasology.engine.ComponentSystemManager)1 GameEngine (org.terasology.engine.GameEngine)1 TerasologyEngine (org.terasology.engine.TerasologyEngine)1 ModuleManager (org.terasology.engine.module.ModuleManager)1 EngineSubsystem (org.terasology.engine.subsystem.EngineSubsystem)1