blob: 84cfc54b4076ee6f7896fef80e8849933749557b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef components_h
#define components_h
#include "animation.h"
#include "asset.h"
#include "rect.h"
typedef struct {
int x, y;
} CPosition;
typedef struct {
Asset_ID id;
Rectangle rect;
} CSprite;
typedef struct {
Animation_ID id;
int frame;
int timer;
} CAnimated;
typedef enum {
ctype_sprite = 1 << 0,
ctype_position = 1 << 1,
ctype_animated = 1 << 2
} CType;
#endif
|