add 3d position cache

This commit is contained in:
2025-04-28 17:52:29 +02:00
parent 5f70daea91
commit 0c6ab1df4b
5 changed files with 90 additions and 54 deletions

View File

@@ -42,9 +42,9 @@ public class Window {
public final Signal1<Coordinate> OnCellEnter = new Signal1<>();
public final Signal1<Coordinate> OnCellExit = new Signal1<>();
public Window(Renderer renderer, World world) {
public Window(Renderer renderer, World world, Camera camera) {
this.renderer = new Renderer();
this.cam = world.getCamera();
this.cam = camera;
this.tasks = new ConcurrentLinkedDeque<>();
this.world = world;
this.regularTasks = new ArrayList<>();