aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Animator.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 13:07:31 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 13:07:31 +0100
commit1ef80ecfdc1a70a6ebdd43fed82d0f9d305d63dc (patch)
tree9f8618cfcff7556c7e3903f9208d8349d1f7fa44 /src/crepe/api/Animator.h
parentc9c9702edc58ff8f40b13dc6b86b216421f79e9b (diff)
implement animator replay
Diffstat (limited to 'src/crepe/api/Animator.h')
-rw-r--r--src/crepe/api/Animator.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crepe/api/Animator.h b/src/crepe/api/Animator.h
index 95539d3..d1f49c4 100644
--- a/src/crepe/api/Animator.h
+++ b/src/crepe/api/Animator.h
@@ -108,6 +108,12 @@ private:
//! Uses the spritesheet
friend AnimatorSystem;
+
+protected:
+ virtual std::unique_ptr<Component> save() const;
+ Animator(const Animator &) = default;
+ virtual void restore(const Component & snapshot);
+ virtual Animator & operator=(const Animator &);
};
} // namespace crepe