Properly set building owner + apply building pop capacity

This commit is contained in:
2024-01-23 18:39:53 +01:00
parent 547a1ca583
commit 2d11bb4675
14 changed files with 195 additions and 105 deletions

View File

@@ -12,7 +12,7 @@
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);
ecs_entity_t placeBuilding(Game *game, BuildingType type, i32 posX, i32 posY, Player player);
void getBuildingCost(BuildingType type, i32 cost[RES_COUNT]);
bool canAffordBuilding(BuildingType type, PlayerResources res);