Proper build UI

This commit is contained in:
2024-01-23 16:54:39 +01:00
parent f3acb1a0a3
commit b6e54a7fcb
9 changed files with 110 additions and 30 deletions

View File

@@ -7,11 +7,16 @@
#include "components.h"
#include "game_tileset.h"
#include "game_state.h"
typedef struct Game Game;
bool canPlaceBuilding(Game *game, BuildingType type, i32 tileX, i32 tileY);
ecs_entity_t placeBuilding(Game *game, BuildingType type, i32 posX, i32 posY, Owner owner);
void getBuildingCost(BuildingType type, i32 cost[RES_COUNT]);
bool canAffordBuilding(BuildingType type, PlayerResources res);
Vector2 getPositionNearBuilding(ecs_entity_t building, Vector2 fromPos);
#endif //PIXELDEFENSE_BUILDINGS_H