SetBranchSceneEntryPointsCommand.h header

#include <ew/core/SetBranchSceneEntryPointsCommand.h>

Namespace ew::core

SetBranchSceneEntryPointsCommand class

class ew::core::SetBranchSceneEntryPointsCommand

Command that replaces the nodes another scene's Jump may enter this one at. Undo restores the previous declarations and redo re-applies the new ones.

Separate from SetBranchSceneCommand, which carries the graph. Declaring a way in is not a graph edit – no node or link changes – and having to restate the whole graph to make one would put a scene's structure at risk every time an author opened a door.

Members

ew::core::branching::SetBranchSceneEntryPointsCommand::SetBranchSceneEntryPointsCommand(BranchScene &scene, std::vector< ew::core::foundation::BranchNodeId > ids)

Creates a command that sets scene's entry points to ids when applied.

ew::core::branching::SetBranchSceneEntryPointsCommand::~SetBranchSceneEntryPointsCommand() override

Destroys the command.

void ew::core::branching::SetBranchSceneEntryPointsCommand::apply() override

Records the scene's current entry points and applies the new ones.

void ew::core::branching::SetBranchSceneEntryPointsCommand::undo() override

Restores the previous entry points.

QString ew::core::branching::SetBranchSceneEntryPointsCommand::description() const override

Returns a short description for the undo/redo UI.

ew::core::foundation::OperationSubject ew::core::branching::SetBranchSceneEntryPointsCommand::subject() const override

Returns the subject this command changes. See Command::subject().