UNPKG

@civ-clone/core-city-build

Version:

The repo contains the `CityBuild` and associated objects that deal with building items in `City`s.

21 lines (14 loc) 415 B
import DataObject from '@civ-clone/core-data-object/DataObject'; // TODO: `BuildCost` could be something other than `Production` (e.g. `Faith`) but omit that need for now. export class BuildCost extends DataObject { #value: number; constructor(value: number) { super(); this.addKey('value'); this.#value = value; } value(): number { return this.#value; } } export default BuildCost;