P23-03: 生活の観察

This commit is contained in:
Agent Control Runner
2026-10-15 10:32:29 +09:00
parent 0b7727a66c
commit 21b5d3a31a
36 changed files with 4133 additions and 66 deletions
+6
View File
@@ -169,6 +169,12 @@ func draw_rectangles(report: Dictionary, view: WorldPreview) -> Dictionary:
for index: int in range(report.get(&"badges", []).size()):
var badge: Dictionary = report[&"badges"][index]
rows.append(badge_rectangle("goods" if badge[&"kind"] == &"supply" else "business", str(index), badge[&"at"], badge[&"text"]))
for entry: Dictionary in report.get(&"traffic", []):
var traffic: Dictionary = entry[&"traffic"]
if traffic[&"current_density"] > 0 or traffic[&"temporary_block"]:
var cell: Vector3i = entry[&"cell"]
rows.append({"category": "traffic", "id": str(cell.x) + "," + str(cell.y) + "," + str(cell.z),
"rect": entry[&"rect"], "style_source": "scenes/main/world_preview.gd"})
var transform := view.get_global_transform_with_canvas()
for row: Dictionary in rows:
row["viewport_rect"] = transform * (row["rect"] as Rect2)