Now the Animation system is no more. Next is cleaning up the quick hacks I needed to finally get rid of it, like animate2::has.
This commit is contained in:
parent
b504afef2a
commit
89ca204f3d
15 changed files with 356 additions and 423 deletions
11
animate2.hpp
11
animate2.hpp
|
|
@ -12,6 +12,7 @@
|
|||
#include <fmt/core.h>
|
||||
#include "json_mods.hpp"
|
||||
#include <source_location>
|
||||
#include "dinkyecs.hpp"
|
||||
|
||||
namespace animate2 {
|
||||
|
||||
|
|
@ -132,6 +133,16 @@ namespace animate2 {
|
|||
|
||||
Animate2 load(const std::string &file, const std::string &anim_name);
|
||||
|
||||
// BUG: brought over from animation to finish the refactor, but these may not be needed or maybe they go in system.cpp?
|
||||
bool has(const std::string& name);
|
||||
|
||||
void configure(DinkyECS::World& world, DinkyECS::Entity entity);
|
||||
|
||||
void step_animation(DinkyECS::World& world, DinkyECS::Entity entity, sf::Sprite& sprite);
|
||||
|
||||
void animate_entity(DinkyECS::World &world, DinkyECS::Entity entity);
|
||||
|
||||
|
||||
ENROLL_COMPONENT(Sheet, frames, frame_width, frame_height);
|
||||
ENROLL_COMPONENT(Sequence, frames, durations);
|
||||
ENROLL_COMPONENT(Transform, min_x, min_y, max_x, max_y,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue