MusicTimer/addons/kanban_tasks/data/kanban_resource.gd
2024-03-22 17:11:54 +01:00

31 lines
560 B
GDScript

@tool
extends RefCounted
## Base class for kanban tasks data structures.
## Emitted when the resource changed. The properties are updated before emitting.
signal changed()
var __emit_changed := true
func _init() -> void:
pass
## Serializes the object as json.
func to_json() -> Dictionary:
push_error("Method to_json not implemented.")
return {}
## Deserializes the object from json.
func from_json(json: Dictionary) -> void:
push_error("Method from_json not implemented.")
func __notify_changed() -> void:
if __emit_changed:
changed.emit()