civ7-modding-tools
Version:
Mod generation tool for Civilization 7.
22 lines (17 loc) • 670 B
text/typescript
import { TObjectValues } from "../types";
import { RESOURCE } from "../constants"
import { BaseNode } from "./BaseNode";
export type TConstructibleValidResourceNode = Pick<ConstructibleValidResourceNode,
"constructibleType" |
"rate" |
"resourceType"
>;
export class ConstructibleValidResourceNode extends BaseNode<TConstructibleValidResourceNode> {
constructibleType: string | null = 'BUILDING_';
resourceType: TObjectValues<typeof RESOURCE> | null = RESOURCE.GOLD;
rate: number | null = null;
constructor(payload: Partial<TConstructibleValidResourceNode> = {}) {
super();
this.fill(payload);
}
}