SetEntityTemplatesCommand.h header
#include <ew/core/SetEntityTemplatesCommand.h>
Namespace ew::core
SetEntityTemplatesCommand class
class ew::core::SetEntityTemplatesCommand
Command that replaces the project's list of entity templates (used to add, edit, or remove one by pushing the new list). Undo restores the previous list.
Members
ew::core::SetEntityTemplatesCommand::SetEntityTemplatesCommand(Project &project, std::vector< EntityTemplate > templates)
Creates a command that sets the entity templates to templates when applied.
ew::core::SetEntityTemplatesCommand::~SetEntityTemplatesCommand() override
Defaulted.
void ew::core::SetEntityTemplatesCommand::apply() override
Records the current entity templates and applies the new list.
void ew::core::SetEntityTemplatesCommand::undo() override
Restores the previous entity templates.
QString ew::core::SetEntityTemplatesCommand::description() const override
Returns a short description for the undo/redo UI.