Change Storage to tag (since we have global storage)

This commit is contained in:
2023-12-29 14:59:40 +01:00
parent 681080f3ed
commit 5190c86316
4 changed files with 12 additions and 22 deletions

View File

@@ -91,7 +91,7 @@ bool initBuildingsLayer(BzTileMap *map, BzTileLayer *layer) {
// ecs_set(ECS, e, Storage, {});
//}
if (buildingTile == BUILDING_KEEP) {
ecs_set(ECS, e, Storage, {.capacity[RES_WOOD] = 1000});
ecs_add_id(ECS, e, Storage);
}
//bzTileMapUpdateCollider(&GAME.map, x, y);