This commit is contained in:
2026-05-16 11:51:19 +02:00
commit 80c1b6a4e4
229 changed files with 5191 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
class_name ActionMoveCamera
extends ClickAction
@export var target_node: NodePath
func execute(clickable: Node, hit_position: Vector3) -> void:
var target_location = clickable.get_node(target_node) as Node3D
if target_location:
ClickManager.request_camera_move(target_location.global_transform)

View File

@@ -0,0 +1 @@
uid://bxo70v3k38pf

View File

@@ -0,0 +1,9 @@
class_name ActionPickup
extends ClickAction
@export var item_id: String = ""
@export var destroy_path: NodePath
func execute(clickable: Node, hit_position: Vector3) -> void:
clickable.get_node(destroy_path).queue_free()
print("Picked up: " + item_id)

View File

@@ -0,0 +1 @@
uid://vim075gwnpvv

View File

@@ -0,0 +1,5 @@
class_name QuitAction
extends ClickAction
func execute(clickable: Node, hit_position: Vector3) -> void:
clickable.get_tree().quit()

View File

@@ -0,0 +1 @@
uid://de2v1ku4lbmbk

View File

@@ -0,0 +1,6 @@
class_name ClickAction
extends Resource
# Override this in subclasses
func execute(clickable: Node, hit_position: Vector3) -> void:
pass

View File

@@ -0,0 +1 @@
uid://csxn4d2cgn4vv