SetBranchSceneInstantCommand.h header
#include <ew/core/branching/SetBranchSceneInstantCommand.h>
Namespace ew::core::branching
SetBranchSceneInstantCommand class
class ew::core::branching::SetBranchSceneInstantCommand
Command that says when a conversation happens in story time. Undo restores the previous answer.
Its own command rather than a field of SetBranchSceneCommand: that one replaces the nodes and links, and placing a scene on the timeline changes neither. An author who moved a scene by a week and then pressed Undo must get the week back, not their last edit to the graph.
Members
ew::core::branching::SetBranchSceneInstantCommand::SetBranchSceneInstantCommand(BranchScene &scene, std::optional< qint64 > instant)
Creates a command that sets scene's instant to instant when applied.
ew::core::branching::SetBranchSceneInstantCommand::~SetBranchSceneInstantCommand() override
Destroys the command.
void ew::core::branching::SetBranchSceneInstantCommand::apply() override
Records the current instant and applies the new one.
void ew::core::branching::SetBranchSceneInstantCommand::undo() override
Restores the previous instant.
QString ew::core::branching::SetBranchSceneInstantCommand::description() const override
Returns a short description for the undo/redo UI.
ew::core::foundation::OperationSubject ew::core::branching::SetBranchSceneInstantCommand::subject() const override
Returns the subject this command changes. See Command::subject().