This commit is contained in:
Luca 2025-03-15 10:23:36 +01:00
parent 1cb4b96daa
commit 4cb3d4a56d
15 changed files with 291 additions and 16 deletions

19
scenes/tile.gd Normal file
View file

@ -0,0 +1,19 @@
@tool
extends Node3D
@export_range(0, 100) var cover_value: int = 50
enum CoverDirection {X, NEG_X, Z, NEG_Z}
@export var cover_direction: CoverDirection
@onready var current_mesh: MeshInstance3D = MeshInstance3D.new()
@export var mesh: Mesh:
get:
return mesh
set(value):
if current_mesh == null:
self.remove_child(current_mesh)
mesh = value
current_mesh.mesh = mesh
if current_mesh == null:
self.add_child(current_mesh)