WIP: update to include sectors!
[browser-rts.git] / src / render / land-development.ts
index 0f584427112e1dcafdf6581546461e1a5590fa7c..935ff74dbdd74868b9dedda76480e209e9467f68 100644 (file)
@@ -1,5 +1,5 @@
 import { BuildQueue } from "../repository/build-queue";
-import { City } from "../repository/city";
+import { CityWithLocation } from "../repository/city";
 import { Building } from '../repository/buildings';
 import _ from "lodash";
 
@@ -13,7 +13,7 @@ function progressBar(current, max): string {
     `;
 }
 
-export function renderLandDevelopment(city: City, buildings: Building[], buildQueues: BuildQueue[]): string {
+export function renderLandDevelopment(city: CityWithLocation, buildings: Building[], buildQueues: BuildQueue[]): string {
     const freeSpace = city.totalSpace - city.usedSpace;
     let html = `
     <div hx-trigger="reload-construction-queue, every 600s" hx-get="/poll/construction">