civ7-modding-tools
Version:
Mod generation tool for Civilization 7.
23 lines (19 loc) • 549 B
text/typescript
import { BaseNode } from "./BaseNode";
export type TUnitStatNode = Pick<UnitStatNode,
"unitType" |
"bombard" |
"combat" |
"range" |
"rangedCombat"
>;
export class UnitStatNode extends BaseNode<TUnitStatNode> {
unitType: string | null = 'UNIT_TYPE';
bombard: number | null = null;
combat: number | null = null;
range: number | null = null;
rangedCombat: number | null = null;
constructor(payload: Partial<TUnitStatNode> = {}) {
super();
this.fill(payload);
}
}