feat(sites): playable bounds rule with typed status

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
OlivierandClaude Haiku 4.5 committed 2026-10-06 19:55:19 +02:00
1 parent 506f6dd0c8
commit 084b663d63
4 files changed
+112

No files matched your search

@@ -0,0 +1,22 @@
class_name PlayableBoundsStatus
extends RefCounted
enum State {
INSIDE,
NEAR_EDGE,
OUTSIDE,
}
var state: State
var distance_to_edge_m: float
var return_direction: Vector3
func _init(p_state: State, p_distance_to_edge_m: float, p_return_direction: Vector3) -> void:
state = p_state
distance_to_edge_m = p_distance_to_edge_m
return_direction = p_return_direction
func requires_warning() -> bool:
return state != State.INSIDE