aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Transform.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-11 21:04:30 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-11 21:04:30 +0100
commit359ad8db97305856f4cfdade1cd1dada78a7a635 (patch)
treea6d5dce34c2aa5406744c414baccf6a2450dd8a5 /src/crepe/api/Transform.h
parent313da47b72aafa0b40ac2cd2b586d525ed17fbd4 (diff)
more replay system WIP
Diffstat (limited to 'src/crepe/api/Transform.h')
-rw-r--r--src/crepe/api/Transform.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/crepe/api/Transform.h b/src/crepe/api/Transform.h
index 7ee6d65..bbd23e0 100644
--- a/src/crepe/api/Transform.h
+++ b/src/crepe/api/Transform.h
@@ -35,6 +35,13 @@ protected:
virtual int get_instances_max() const { return 1; }
//! ComponentManager instantiates all components
friend class ComponentManager;
+
+protected:
+ virtual std::unique_ptr<Component> save() const;
+ Transform(const Transform &) = default;
+ virtual void restore(const Component & snapshot);
+ virtual Transform & operator=(const Transform &) = default;
+
};
} // namespace crepe