civ7-modding-tools
Version:
Mod generation tool for Civilization 7.
24 lines (19 loc) • 677 B
text/typescript
import { TObjectValues } from "../types";
import { TERRAIN } from "../constants";
import { BaseNode } from "./BaseNode";
export type TStartBiasTerrainNode = Pick<StartBiasTerrainNode,
"civilizationType" |
"leaderType" |
"terrainType" |
"score"
>;
export class StartBiasTerrainNode extends BaseNode<TStartBiasTerrainNode> {
civilizationType: string | null = null;
leaderType: `LEADER_${string}` | null = null;
terrainType: TObjectValues<typeof TERRAIN> | null = TERRAIN.FLAT;
score: number | null = 5;
constructor(payload: Partial<TStartBiasTerrainNode> = {}) {
super();
this.fill(payload);
}
}