Skip to content

GameData beta ​

TypeAlias of @v12-engine/engine

ts
export type GameData = Partial<Record<DataKind, Record<string, DataValues>>> & {
    removed?: Partial<Record<DataKind, string[]>>;
    ai?: {
        races?: Record<string, AiProfile>;
    };
    rules?: DataRules;
    defaults?: Record<string, DataSetChoice>;
    tags?: Record<string, DataTag>;
    callings?: Record<string, DataCalling>;
    cellLayers?: Record<string, DataCellLayer>;
};

The values of a game's definitions, by kind and id: what its data.json holds. removed takes definitions of the game's out, by kind (the Data panel's Delete): what still names one is the rules' check's to say (checkRules)