mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-22 23:17:26 -04:00
16 lines
234 B
GDScript
16 lines
234 B
GDScript
extends ConfigBase
|
|
#class_name DataSaver
|
|
|
|
var path: String = "user://resources/data_saver.cfg"
|
|
|
|
|
|
func _init() -> void:
|
|
super._init(path)
|
|
|
|
|
|
func save_data() -> void:
|
|
config.save(config_path)
|
|
|
|
|
|
func _exit_tree() -> void:
|
|
save_data()
|