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);
}
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;
}
Aggregations