Add animations back

This commit is contained in:
2023-12-16 17:52:56 +01:00
parent 77ddaa157b
commit 4047843b55
5 changed files with 28 additions and 32 deletions

View File

@@ -101,23 +101,19 @@ extern ECS_COMPONENT_DECLARE(TextureRegion);
* Animation components
*********************************************************/
/*
typedef struct Animation {
EntityType entityType;
AnimationType animType;
AnimType animType;
AnimationFrame frame;
AnimationSequence sequence;
BzTileset *tileset;
BzTileset *tileset;
i32 curFrame;
f32 frameDuration;
f32 elapsed;
} Animation;
extern ECS_COMPONENT_DECLARE(Animation);
extern ECS_COMPONENT_DECLARE(AnimationType);
*/
typedef struct EntityArms {
ecs_entity_t left;
ecs_entity_t right;