This commit is contained in:
Andriy Yednarovych
2026-02-22 19:26:26 +01:00
parent fd1ff19c4c
commit e877c5f058
211 changed files with 9385 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
class_name PersistentDataHandler extends Node
signal data_loaded
var value := false
func _ready() -> void:
get_value()
func set_value() -> void:
SaveManager.add_persistent_value(get_data_name())
func get_value() -> void:
value = SaveManager.check_persistent_value(get_data_name())
data_loaded.emit()
func get_data_name() -> String:
return "%s/%s/%s" % [get_tree().current_scene.scene_file_path, get_parent().name, name]

View File

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

View File

@@ -0,0 +1,6 @@
[gd_scene format=3 uid="uid://dqwuowiyehr7d"]
[ext_resource type="Script" uid="uid://bej7822ail7o" path="res://general/persistent_data/persistent_data_handler.gd" id="1_72b1k"]
[node name="PersistentDataHandler" type="Node" unique_id=843808896]
script = ExtResource("1_72b1k")