Search in sources :

Example 1 with CameraTargetSystem

use of org.terasology.engine.input.cameraTarget.CameraTargetSystem in project Terasology by MovingBlocks.

the class InputSystemTests method setUpTargetSystem.

private void setUpTargetSystem(Context context) {
    CameraTargetSystem targetSystem = mock(CameraTargetSystem.class);
    context.put(CameraTargetSystem.class, targetSystem);
}
Also used : CameraTargetSystem(org.terasology.engine.input.cameraTarget.CameraTargetSystem)

Example 2 with CameraTargetSystem

use of org.terasology.engine.input.cameraTarget.CameraTargetSystem 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.engine.logic.players.LocalPlayerSystem) InputSystem(org.terasology.engine.input.InputSystem) ComponentSystemManager(org.terasology.engine.core.ComponentSystemManager) CameraTargetSystem(org.terasology.engine.input.cameraTarget.CameraTargetSystem)

Aggregations

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