SetEntityTimedValuesCommand.h header
#include <ew/core/SetEntityTimedValuesCommand.h>
Namespace ew::core
SetEntityTimedValuesCommand class
class ew::core::SetEntityTimedValuesCommand
Command that replaces an entity's state-over-time – the timed changes to its field values across the story timeline (see TimedFieldValue) – as produced by the entity's state-timeline editor by pushing the new list. Undo restores the previous list and redo re-applies the new one.
Members
ew::core::SetEntityTimedValuesCommand::SetEntityTimedValuesCommand(Entity &entity, std::vector< TimedFieldValue > timedValues)
Creates a command that sets entity's timed values to timedValues when applied.
ew::core::SetEntityTimedValuesCommand::~SetEntityTimedValuesCommand() override
Destroys the command.
void ew::core::SetEntityTimedValuesCommand::apply() override
Records the entity's current timed values and applies the new list.
void ew::core::SetEntityTimedValuesCommand::undo() override
Restores the previous timed values.
QString ew::core::SetEntityTimedValuesCommand::description() const override
Returns a short description for the undo/redo UI.