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