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