diff options
| author | Juan Linietsky | 2015-06-22 23:42:13 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-06-22 23:42:13 -0300 |
| commit | 29e644c20ad9eb19b702e839d19be4359086159f (patch) | |
| tree | c0d27213a9ac4a1bd19f1e95a81949ffed1215c0 /core/undo_redo.h | |
| parent | d5550e9b7c8b8deaaf86081bbecd6db95db1a64c (diff) | |
| parent | fafcc52d1cdf13a57fad613944109169b3be5594 (diff) | |
| download | godot-29e644c20ad9eb19b702e839d19be4359086159f.tar.gz godot-29e644c20ad9eb19b702e839d19be4359086159f.tar.zst godot-29e644c20ad9eb19b702e839d19be4359086159f.zip | |
Diffstat (limited to 'core/undo_redo.h')
| -rw-r--r-- | core/undo_redo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/undo_redo.h b/core/undo_redo.h index d1b2d3de9..a9187534c 100644 --- a/core/undo_redo.h +++ b/core/undo_redo.h @@ -38,9 +38,12 @@ class UndoRedo : public Object { OBJ_TYPE(UndoRedo,Object); + OBJ_SAVE_TYPE( UndoRedo ); public: typedef void (*CommitNotifyCallback)(void *p_ud,const String& p_name); + Variant _add_do_method(const Variant** p_args, int p_argcount, Variant::CallError& r_error); + Variant _add_undo_method(const Variant** p_args, int p_argcount, Variant::CallError& r_error); private: struct Operation { @@ -81,6 +84,10 @@ private: CommitNotifyCallback callback; void* callback_ud; + +protected: + static void _bind_methods(); + public: void create_action(const String& p_name="",bool p_mergeable=false); |
