Proper build UI
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user