civ7-modding-tools
Version:
Mod generation tool for Civilization 7.
20 lines (15 loc) • 559 B
text/typescript
import { TObjectValues } from "../types";
import { ADVISORY, YIELD } from "../constants";
import { BaseNode } from "./BaseNode";
export type TUnitAdvisoryNode = Pick<UnitAdvisoryNode,
"unitType" |
"advisoryClassType"
>;
export class UnitAdvisoryNode extends BaseNode<TUnitAdvisoryNode> {
unitType: string | null = 'UNIT_TYPE';
advisoryClassType: TObjectValues<typeof ADVISORY> | null = ADVISORY.CLASS_FOOD;
constructor(payload: Partial<TUnitAdvisoryNode> = {}) {
super();
this.fill(payload);
}
}