Added correct passage drawing

This commit is contained in:
2025-12-09 00:50:30 +03:00
parent 0d36b74fcd
commit 250a36bab3
7 changed files with 140 additions and 45 deletions
+12 -2
View File
@@ -2,7 +2,10 @@ class_name PassageData
extends Resource
enum PassageAngle {
signal activity_changed(is_active: bool)
enum PassageType {
Minus45Grad,
Minus26Grad,
ZeroGrad,
@@ -17,4 +20,11 @@ enum PassageAngle {
@export var seed_value : int = 0
@export var angle : PassageAngle = PassageAngle.ZeroGrad
@export var type : PassageType = PassageType.ZeroGrad
var is_active: bool = true:
set(value):
if is_active == value: return
is_active = value
activity_changed.emit(is_active)
+10
View File
@@ -2,6 +2,9 @@ class_name SectorData
extends Resource
signal activity_changed(is_active: bool)
enum SectorType {
EmptySector,
ShopSector,
@@ -18,3 +21,10 @@ enum SectorType {
@export var seed_value : int = 0
@export var type : SectorType = SectorType.EmptySector
var is_active: bool = true:
set(value):
if is_active == value: return
is_active = value
activity_changed.emit(is_active)