载入中...
搜索中...
未找到
EditorHistory.cpp
浏览该文件的文档.
64 return eve::editing::failed<std::string>(editing::Status::NotFound, editing::RuleId("editor.history.nothing-to-undo"),
77 return eve::editing::failed<std::string>(editing::Status::NotFound, editing::RuleId("editor.history.nothing-to-redo"),
94 return eve::editing::failed<void>(editing::Status::NotFound, editing::RuleId("editor.history.no-last-action"),
97 return eve::editing::failed<void>(editing::Status::Unsupported, editing::RuleId("editor.history.action-not-tiles"),
110std::string EditorHistory::getLastActionName() const { return hasLast_ ? lastApplied_.name : ""; }
111std::string EditorHistory::getLastActionKind() const { return hasLast_ ? lastApplied_.kind : ""; }
112std::string EditorHistory::getLastPayload() const { return hasLast_ ? lastApplied_.payload : ""; }
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:314
editing::Result< void > applyLastToBufferChecked(TileBuffer &buffer)
Apply last undone/redone tile group to buffer (no-op for opaque actions).
Definition EditorHistory.cpp:92
void push(const std::string &name, const std::string &payload)
Pushes .
Definition EditorHistory.cpp:19
editing::Result< std::string > undoAction()
Move the latest action to redo history and return its stable name.
Definition EditorHistory.cpp:62
bool applyLastToBuffer(TileBuffer *buffer)
Compatibility-only nullable pointer projection of applyLastToBufferChecked().
Definition EditorHistory.cpp:106
int getLastTileNewGid(int index) const
Returns the last tile new gid.
Definition EditorHistory.cpp:134
int getLastTileOldGid(int index) const
Returns the last tile old gid.
Definition EditorHistory.cpp:130
editing::Result< std::string > redoAction()
Move the latest redo action back to undo history and return its stable name.
Definition EditorHistory.cpp:75
Independent GID grid for map brushes (no hard dependency on map.TileLayer).
Definition TileBuffer.h:11
Definition Brush.cpp:10