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