mirror of
https://github.com/Relintai/GraphicsEditor.git
synced 2024-11-12 08:15:17 +01:00
29 lines
377 B
GDScript
29 lines
377 B
GDScript
extends Node
|
|
class_name GEAction
|
|
|
|
|
|
var action_data = {}
|
|
|
|
|
|
func _init():
|
|
action_data["do"] = {}
|
|
action_data["undo"] = {}
|
|
|
|
|
|
func do_action(canvas, data: Array):
|
|
print("NO IMPL do_action")
|
|
|
|
|
|
func commit_action(canvas):
|
|
print("NO IMPL commit_action ")
|
|
|
|
|
|
func undo_action(canvas):
|
|
print("NO IMPL undo_action ")
|
|
|
|
|
|
func can_commit() -> bool:
|
|
return not action_data.do.empty()
|
|
|
|
|