Refactor camera access in Context interface

This commit is contained in:
2021-03-03 14:10:58 +01:00
parent 50bb1d072d
commit 07d546b7d0
2 changed files with 4 additions and 12 deletions

View File

@@ -18,7 +18,6 @@ import com.bartlomiejpluta.base.engine.world.map.model.DefaultGameMap;
import com.bartlomiejpluta.base.engine.world.tileset.manager.TileSetManager;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import org.joml.Vector2f;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -59,13 +58,8 @@ public class RenderableContext implements Context, Updatable, Renderable {
}
@Override
public void setCameraPosition(Vector2f position) {
camera.setPosition(position);
}
@Override
public void setCameraPosition(float x, float y) {
camera.setPosition(x, y);
public Camera getCamera() {
return camera;
}
public void input(Window window) {