civ7-modding-tools
Version:
Mod generation tool for Civilization 7.
21 lines (17 loc) • 489 B
text/typescript
import { BaseNode } from "./BaseNode";
export type TTraitNode = Pick<TraitNode,
"traitType" |
"name" |
"description" |
"internalOnly"
>;
export class TraitNode extends BaseNode<TTraitNode> {
traitType: string | null = 'TRAIT_';
name: string | null = null;
description: string | null = null;
internalOnly: boolean | null = null;
constructor(payload: Partial<TTraitNode> = {}) {
super();
this.fill(payload);
}
}