#include <MCoreCommandManager.h>
Public Member Functions | |
CommandHistoryEntry (CommandGroup *group, Command *command, const CommandLine ¶meters, size_t historyItemNr) | |
AZStd::string | ToString () const |
Static Public Member Functions | |
static AZStd::string | ToString (CommandGroup *group, Command *command, size_t historyItemNr) |
Public Attributes | |
CommandGroup * | m_commandGroup |
Command * | m_executedCommand |
CommandLine | m_parameters |
size_t | m_historyItemNr |
The command history entry stores all information which is relevant for a called command. This information is needed for the undo/redo usage.
MCore::CommandManager::CommandHistoryEntry::CommandHistoryEntry | ( | CommandGroup * | group, |
Command * | command, | ||
const CommandLine & | parameters, | ||
size_t | historyItemNr | ||
) |
Extended Constructor.
group | The command group pointer. When set to nullptr it will use the single command object instead of the group. |
command | The command instance that has been created at execution time. When set to nullptr it will assume it is a group, and it will use the group you specified. |
parameters | The command arguments. |
CommandGroup* MCore::CommandManager::CommandHistoryEntry::m_commandGroup |
A pointer to the command group, or nullptr when no group is used (in that case it uses a single command).
Command* MCore::CommandManager::CommandHistoryEntry::m_executedCommand |
A pointer to the command object, or nullptr when no command is used (in that case it uses a group).
size_t MCore::CommandManager::CommandHistoryEntry::m_historyItemNr |
The global history item number. This number will neither change depending on the size of the history queue nor with undo/redo.
CommandLine MCore::CommandManager::CommandHistoryEntry::m_parameters |
The used command arguments, unused in case no command is used (in that case it uses a group).