#ifndef PIXELDEFENSE_COMPONENTS_H #define PIXELDEFENSE_COMPONENTS_H #include #include "utils/building_types.h" typedef struct TilePosition { BzTile x; BzTile y; } TilePosition; typedef struct TileSize { BzTile sizeX; BzTile sizeY; } TileSize; typedef struct Owner { BuildingType playerID; } Owner; typedef Vector2 Position, Size; typedef f32 Rotation; typedef f32 Health; typedef struct TextureRegion { Texture2D texture; Rectangle rec; } TextureRegion; typedef enum AnimationType { ANIMATION_IDLE, ANIMATION_WALK, } AnimationType; typedef struct Animation { TextureRegion firstFrame; AnimationType currAnimation; i32 currFrame; i32 frameCount; f32 frameDuration; f32 elapsed; } Animation; #endif //PIXELDEFENSE_COMPONENTS_H