import { TObjectValues } from "../types"; import { YIELD } from "../constants"; import { BaseNode } from "./BaseNode"; export type TUnitCostNode = Pick; export class UnitCostNode extends BaseNode { unitType: string | null = 'UNIT_TYPE'; yieldType: TObjectValues | null = YIELD.PRODUCTION; cost: number | null = 1; constructor(payload: Partial = {}) { super(); this.fill(payload); } }