36 lines
540 B
C
36 lines
540 B
C
#ifndef PIXELDEFENSE_COMPONENTS_H
|
|
#define PIXELDEFENSE_COMPONENTS_H
|
|
|
|
#include <breeze.h>
|
|
|
|
#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;
|
|
|
|
|
|
|
|
#endif //PIXELDEFENSE_COMPONENTS_H
|