TowerGame/scripts/custom_grid_map.gd

13 lines
264 B
GDScript

@tool
extends GridMap
class_name CustomGridMap
@export var travel_costs: Dictionary[String, float]
func _enter_tree() -> void:
mesh_library.changed.connect(update_dicts)
func update_dicts() -> void:
var keys: Array[String] = []
mesh_library.get_item_list()