civ7-modding-tools
Version:
Mod generation tool for Civilization 7.
21 lines (17 loc) • 608 B
text/typescript
import { BaseNode } from "./BaseNode";
import { TObjectValues } from "../types";
import { YIELD } from "../constants";
export type TConstructibleMaintenanceNode = Pick<ConstructibleMaintenanceNode,
"constructibleType" |
"yieldType" |
"amount"
>;
export class ConstructibleMaintenanceNode extends BaseNode<TConstructibleMaintenanceNode> {
constructibleType = 'BUILDING_';
yieldType: TObjectValues<typeof YIELD> = YIELD.GOLD;
amount = 1;
constructor(payload: Partial<TConstructibleMaintenanceNode> = {}) {
super();
this.fill(payload);
}
}