Editor API
UnigineEditor public API
|
This basic class is used to represent any possible user action. More...
#include <UnigineUndo.h>
Public Member Functions | |
virtual void | apply ()=0 |
Applies the action. More... | |
virtual void | undo ()=0 |
Reverts the action. More... | |
virtual void | redo ()=0 |
Redoes the previously undone action (reverses the undo method). More... | |
virtual bool | validate () |
This method allows action to do some internal cleanup. Return value indicates whether the action is still sane. Whenever it returns false asset system will delete invalid action for good. More... | |
virtual bool | modifiesWorld () const |
Indicates whether the action brings any changes to the scene. Actions like selection, for example, change nothing and shouldn't set world‘s "dirty state". For such actions this method would return 'false’. More... | |
This basic class is used to represent any possible user action.
|
pure virtual |
|
inlinevirtual |
Indicates whether the action brings any changes to the scene. Actions like selection, for example, change nothing and shouldn't set world‘s "dirty state". For such actions this method would return 'false’.
Reimplemented in UnigineEditor::SelectionAction.
|
pure virtual |
Redoes the previously undone action (reverses the undo method).
Implemented in UnigineEditor::EnableNodeAction, UnigineEditor::RenameNodeAction, UnigineEditor::ReparentNodesAction, UnigineEditor::SetNodeTransformAction, UnigineEditor::RemoveNodesAction, UnigineEditor::CreateNodesAction, and UnigineEditor::SelectionAction.
|
pure virtual |
|
inlinevirtual |
This method allows action to do some internal cleanup. Return value indicates whether the action is still sane. Whenever it returns false asset system will delete invalid action for good.
Reimplemented in UnigineEditor::EnableNodeAction, UnigineEditor::RenameNodeAction, UnigineEditor::SetNodeTransformAction, UnigineEditor::RemoveNodesAction, and UnigineEditor::SelectionAction.