40 lines
765 B
C
40 lines
765 B
C
#ifndef PIXELDEFENSE_GAME_STATE_H
|
|
#define PIXELDEFENSE_GAME_STATE_H
|
|
|
|
#include <breeze.h>
|
|
#include <flecs.h>
|
|
|
|
#include "entity_map.h"
|
|
|
|
typedef struct Game {
|
|
Camera2D camera;
|
|
BzTileset terrainTileset;
|
|
BzTileset buildingsTileset;
|
|
BzTileset entitiesTileset;
|
|
BzTileMap map;
|
|
EntityMap entityMap;
|
|
f32 frameDuration;
|
|
Vector2 targetPos;
|
|
ecs_entity_t entity;
|
|
struct {
|
|
int building;
|
|
Vector2 mouseDown;
|
|
f32 mouseDownElapsed;
|
|
} input;
|
|
struct {
|
|
i64 wood;
|
|
i64 iron;
|
|
i64 food;
|
|
i64 gold;
|
|
i64 pop;
|
|
} resources;
|
|
struct {
|
|
BzObjectPool *pathData;
|
|
} pools;
|
|
f32 elapsed;
|
|
} Game;
|
|
|
|
extern ECS_COMPONENT_DECLARE(Game);
|
|
|
|
#endif //PIXELDEFENSE_GAME_STATE_H
|