summaryrefslogtreecommitdiffstats
path: root/HexMap.gd
diff options
context:
space:
mode:
Diffstat (limited to 'HexMap.gd')
-rw-r--r--HexMap.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/HexMap.gd b/HexMap.gd
index 7520972..2fb8a15 100644
--- a/HexMap.gd
+++ b/HexMap.gd
@@ -28,7 +28,8 @@ var adjacents : Array
var search_count : int
var stack : Array
-func configure(cols : int, rows : int, side : float, v0 : Vector2, vertical : bool) -> void:
+func _init(cols : int, rows : int, side : float, v0 : Vector2, vertical : bool, fct : FuncRef) -> void:
+ tile_factory_fct = fct
v = vertical
s = side
w = s * 1.73205