Undo now takes into account list position, and started work on bookmark undo

This commit is contained in:
Yousef Khadadeh 2026-01-02 21:06:13 +03:00
parent 92115957b2
commit 0e22c8ac3e
7 changed files with 64 additions and 16 deletions

View file

@ -9,7 +9,7 @@ class WorldUndoManager;
class WorldUndoAction {
public:
virtual const char* get_name() const = 0;
virtual std::string get_name() const = 0;
virtual bool undo(WorldUndoManager& undoMan) = 0;
virtual bool redo(WorldUndoManager& undoMan) = 0;
virtual void scale_up(const WorldScalar& scaleAmount);
@ -35,7 +35,7 @@ class WorldUndoManager {
UndoObjectID get_undoid_from_netid(const NetworkingObjects::NetObjID& netObjID);
void register_new_netid_to_existing_undoid(UndoObjectID existingUndoID, const NetworkingObjects::NetObjID& netObjID);
std::optional<NetworkingObjects::NetObjID> get_netid_from_undoid(UndoObjectID undoID);
std::vector<const char*> get_front_undo_queue_names(unsigned count);
std::vector<std::string> get_front_undo_queue_names(unsigned count);
World& world;
private: