diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-08 15:18:16 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-08 15:18:16 +0100 |
commit | 17b381e96b5a015dd4612d09ca000fb61d46bce7 (patch) | |
tree | 1b336a21280dda04bad2c24c238394acad0c2804 /src/crepe/api/Sprite.h | |
parent | 05ce2c58165dc1566c32c6a661d70bad51e3fe15 (diff) | |
parent | 0b9574bdd6c5968c07bcf165d66032b75649b5da (diff) |
Merge remote-tracking branch 'origin/master' into max/game2
Diffstat (limited to 'src/crepe/api/Sprite.h')
-rw-r--r-- | src/crepe/api/Sprite.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/crepe/api/Sprite.h b/src/crepe/api/Sprite.h index a3fc319..3565bed 100644 --- a/src/crepe/api/Sprite.h +++ b/src/crepe/api/Sprite.h @@ -42,10 +42,10 @@ public: FlipSettings flip; //! Layer sorting level of the sprite - const int sorting_in_layer = 0; + int sorting_in_layer = 0; //! Order within the sorting layer - const int order_in_layer = 0; + int order_in_layer = 0; /** * \brief width and height of the sprite in game units @@ -119,6 +119,12 @@ private: //! Render area of the sprite this will also be adjusted by the AnimatorSystem if an Animator // object is present in GameObject. this is in sprite pixels Rect mask; + +protected: + virtual std::unique_ptr<Component> save() const; + Sprite(const Sprite &) = default; + virtual void restore(const Component & snapshot); + virtual Sprite & operator=(const Sprite &); }; } // namespace crepe |