Search in sources :

Example 1 with LocalPlayerSystem

use of org.terasology.logic.players.LocalPlayerSystem in project Terasology by MovingBlocks.

the class RegisterInputSystem method step.

@Override
public boolean step() {
    ComponentSystemManager componentSystemManager = context.get(ComponentSystemManager.class);
    LocalPlayerSystem localPlayerSystem = new LocalPlayerSystem();
    componentSystemManager.register(localPlayerSystem, "engine:localPlayerSystem");
    context.put(LocalPlayerSystem.class, localPlayerSystem);
    CameraTargetSystem cameraTargetSystem = new CameraTargetSystem();
    context.put(CameraTargetSystem.class, cameraTargetSystem);
    componentSystemManager.register(cameraTargetSystem, "engine:CameraTargetSystem");
    InputSystem inputSystem = context.get(InputSystem.class);
    componentSystemManager.register(inputSystem, "engine:InputSystem");
    return true;
}
Also used : LocalPlayerSystem(org.terasology.logic.players.LocalPlayerSystem) InputSystem(org.terasology.input.InputSystem) ComponentSystemManager(org.terasology.engine.ComponentSystemManager) CameraTargetSystem(org.terasology.input.cameraTarget.CameraTargetSystem)

Aggregations

ComponentSystemManager (org.terasology.engine.ComponentSystemManager)1 InputSystem (org.terasology.input.InputSystem)1 CameraTargetSystem (org.terasology.input.cameraTarget.CameraTargetSystem)1 LocalPlayerSystem (org.terasology.logic.players.LocalPlayerSystem)1