civ7-modding-tools
Version:
Mod generation tool for Civilization 7.
20 lines (15 loc) • 464 B
text/typescript
import { TObjectValues } from "../types";
import { KIND } from "../constants";
import { BaseNode } from "./BaseNode";
export type TTypeNode = Pick<TypeNode,
"type" |
"kind"
>;
export class TypeNode extends BaseNode<TTypeNode> {
type: string | null = 'TYPE';
kind: TObjectValues<typeof KIND> | null = KIND.CONSTRUCTIBLE;
constructor(payload: Partial<TTypeNode> = {}) {
super();
this.fill(payload);
}
}