Added .idea to gitignore, first pass at adding intregrated pathfindiing support using redblobgames.com tutorials as reference

This commit is contained in:
2026-09-28 09:35:16 -05:00
parent 685c94bd1b
commit 70d270688f
7 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
module CyberarmEngine
module Pathfinding
class Graph
Location = Data.define(:x, :y, :z, :cost)
def initialize(edges: {})
@edges = edges
end
def neighbors(location)
@edges[location]
end
end
end
end