A bit of refactor to put apply in Animation where it belongs.

This commit is contained in:
Zed A. Shaw 2025-11-01 11:13:12 -04:00
parent 102c8c36d5
commit d60e1af6df
10 changed files with 32 additions and 31 deletions

View file

@ -11,7 +11,6 @@ namespace animation {
std::unordered_map<std::string, components::Animation> animations;
};
bool apply(components::Animation& anim, sf::Sprite& target, sf::Vector2f pos);
void rotate(sf::Sprite& target, float degrees);
void center(sf::Sprite& target, sf::Vector2f pos);