Saves Delete action command. More...
#include <EditorCommands.hpp>
Public Member Functions | |
| DeleteCommand (vex::Engine &engine, std::vector< vex::GameObject * > rootsToDelete) | |
| Serialized object data for deletion. | |
| void | Execute () override |
| Executes the delete command. | |
| void | Undo () override |
| Undos the delete command with saved/serialized data. | |
Private Member Functions | |
| void | GatherHierarchy (vex::GameObject *obj, std::vector< vex::GameObject * > &outList) |
| Gather scene hierarhy for later rebuild. | |
Private Attributes | |
| vex::Engine & | m_engine |
| std::string | m_sceneName |
| std::vector< SerializedObject > | m_serializedData |
| std::vector< vex::Entity > | m_runtimeIDs |
Saves Delete action command.
Definition at line 79 of file EditorCommands.hpp.
|
inline |
Serialized object data for deletion.
Definition at line 107 of file EditorCommands.hpp.
|
inlineoverridevirtual |
Executes the delete command.
Implements vex::ICommand.
Definition at line 145 of file EditorCommands.hpp.
|
inlineprivate |
Gather scene hierarhy for later rebuild.
Definition at line 88 of file EditorCommands.hpp.
|
inlineoverridevirtual |
Undos the delete command with saved/serialized data.
Implements vex::ICommand.
Definition at line 169 of file EditorCommands.hpp.
|
private |
Definition at line 80 of file EditorCommands.hpp.
|
private |
Definition at line 85 of file EditorCommands.hpp.
|
private |
Definition at line 81 of file EditorCommands.hpp.
|
private |
Definition at line 83 of file EditorCommands.hpp.