Class SnapshotManager

Nested Relationships

Nested Types

Class Documentation

class SnapshotManager

Public Functions

explicit SnapshotManager(ResourceRegistry &registry)
void set_scene_id(const StringId &new_scene_id)
void prepare_snapshot(const StringId &title)
void commit_snapshot()
void revert_snapshot(size_t snapshot_index)
void undo()
void redo()
bool can_undo() const
bool can_redo() const
inline size_t get_current_snapshot_index() const
inline std::vector<SnapshotView> list_snapshots() const
struct SnapshotData

Public Members

std::chrono::system_clock::time_point timestamp
StringId title
Buffer data
struct SnapshotView

Public Members

size_t index
StringId title
std::chrono::system_clock::time_point timestamp