extends "res://addons/gdhexgrid/HexCell.gd" class_name GameTile enum TileType { Sand, Grass, DeepGrass, Rock, Water } var type = TileType.Sand func _init(coords=null): # HexCells can be created with coordinates if coords: self.cube_coords = obj_to_coords(coords) # Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body. func fromHexCell (hex_cell: HexCell): cube_coords = hex_cell.cube_coords offset_coords = hex_cell.offset_coords axial_coords = hex_cell.axial_coords