feat: hit on primitives

This commit is contained in:
IliaDenisov
2026-03-07 19:28:22 +02:00
parent e4b956232f
commit c076347d70
21 changed files with 1167 additions and 165 deletions
+1 -3
View File
@@ -2,8 +2,6 @@ package world
import (
"errors"
"github.com/google/uuid"
)
var (
@@ -59,7 +57,7 @@ func (w *World) collectCandidatesForTile(r Rect) []MapItem {
rowStart := w.worldToCellY(r.minY)
rowEnd := w.worldToCellY(r.maxY - 1)
seen := make(map[uuid.UUID]struct{})
seen := make(map[PrimitiveID]struct{})
result := make([]MapItem, 0)
for row := rowStart; row <= rowEnd; row++ {