///
export declare type Roster = {
gameSystemName: string;
name: string;
costs: Cost[];
costLimits: Cost[];
forces: Force[];
};
export declare type BSRoster = {
$: {
gameSystemName: string;
name: string;
};
costs: [{
cost: BSCost[];
}];
costLimits: [{
costLimit: BSCost[];
}];
forces: [{
force: BSForce[];
}];
};
export declare type Cost = {
value: number;
name: CostType;
};
export declare type BSCost = {
$: {
value: string;
name: BSCostType;
};
};
export declare enum CostType {
PL = "PL",
PTS = "pts",
CP = "CP"
}
export declare enum BSCostType {
PL = " PL",
PTS = "pts",
CP = "CP"
}
export declare type Force = {
name: string;
catalogueName: string;
publications: string[];
categories: Category[];
forces: Force[];
selections: Selection[];
rules: Rule[];
};
export declare type BSForce = {
$: {
name: string;
catalogueName: string;
};
publications: Array<{
publication: Array<{
$: {
name: string;
};
}>;
} | string>;
categories: Array<{
category: BSCategory[];
} | string>;
selections: Array<{
selection: BSSelection[];
} | string>;
forces: Array<{
force: BSForce[];
} | string>;
rules: Array<{
rule: BSRule[];
} | string>;
};
export declare type Category = {
primary: boolean;
name: string;
};
export declare type BSCategory = {
$: {
primary: string;
name: string;
};
};
export declare type Selection = {
number: number;
type: 'upgrade' | 'unit' | 'model';
customName?: string;
customNotes?: string;
name: string;
costs: Cost[];
categories: Category[];
selections: Selection[];
rules: Rule[];
profiles: Profile[];
};
export declare type BSSelection = {
$: {
number: string;
type: 'upgrade' | 'unit' | 'model';
customName?: string;
customNotes?: string;
name: string;
};
costs: Array<{
cost: BSCost[];
} | string>;
categories: Array<{
category: BSCategory[];
} | string>;
selections: Array<{
selection: BSSelection[];
} | string>;
rules: Array<{
rule: BSRule[];
} | string>;
profiles: Array<{
profile: BSProfile[];
} | string>;
};
export declare type Rule = {
name: string;
description: string;
};
export declare type BSRule = {
$: {
name: string;
};
description: string[];
};
export interface Profile {
typeName: T;
name: string;
}
export declare enum TypeName {
ABILITY = "Ability",
UNIT = "Unit",
WEAPON = "Weapon",
WOUND_TRACK = "Wound Track",
TRANSPORT = "Transport",
PSYCHIC_POWER = "Psychic Power",
PSYKER = "Psyker",
EXPLOSION = "Explosion",
UNKNOWN = "Unknown"
}
export interface AbilityProfile extends Profile {
description: string;
}
export interface UnitProfile extends Profile {
movement: string;
weaponSkill: string;
ballisticSkill: string;
strength: string;
toughness: string;
wounds: string;
attacks: string;
leadership: string;
save: string;
}
export interface WeaponProfile extends Profile {
range: string;
type: string;
strength: string;
armourPenetration: string;
damage: string;
abilities: string;
}
export interface WoundTrackProfile extends Profile {
remainingWounds: string;
[key: string]: string;
}
export interface TransportProfile extends Profile {
capacity: string;
}
export interface PsychicPowerProfile extends Profile {
warpCharge: string;
range: string;
details: string;
}
export interface PsykerProfile extends Profile {
cast: string;
deny: string;
powersKnown: string;
other?: string;
}
export interface ExplosionProfile extends Profile {
diceRoll: string;
distance: string;
mortalWounds: string;
}
export interface UnknownProfile extends Profile {
unexpectedTypeName: string;
[key: string]: string;
}
export interface BSProfile {
$: {
typeName: BSTypeName;
name: string;
};
characteristics: Array<{
characteristic: T[];
} | string>;
}
export declare enum BSTypeName {
WEAPON = "Weapon",
UNIT = "Unit",
ABILITIES = "Abilities",
WOUND_TRACK = "Wound Track",
TRANSPORT = "Transport",
PSYCHIC_POWER = "Psychic Power",
PSYKER = "Psyker",
EXPLOSION = "Explosion"
}
export interface BSCharacteristic {
$: {
name: string;
};
_?: string;
}
export interface BSWeaponCharacteristic extends BSCharacteristic {
$: {
name: 'Range' | 'Type' | 'S' | 'AP' | 'D' | 'Abilities';
};
}
export interface BSUnitCharacteristic extends BSCharacteristic {
$: {
name: 'M' | 'WS' | 'BS' | 'S' | 'T' | 'W' | 'A' | 'Ld' | 'Save';
};
}
export interface BSAbilitiesCharacteristic extends BSCharacteristic {
$: {
name: 'Description';
};
}
export interface BSWoundTrackCharacteristic extends BSCharacteristic {
$: {
name: 'Remaining W' | 'Characteristic 1' | 'Characteristic 2' | 'Characteristic 3' | 'Characteristic 4' | 'Characteristic 5' | 'Characteristic 6' | 'Characteristic 7' | 'Characteristic 8' | 'Characteristic 9';
};
}
export interface BSTransportCharacteristic extends BSCharacteristic {
$: {
name: 'Capacity';
};
}
export interface BSPsychicPowerCharacteristic extends BSCharacteristic {
$: {
name: 'Warp Charge' | 'Range' | 'Details';
};
}
export interface BSPsykerCharacteristic extends BSCharacteristic {
$: {
name: 'Cast' | 'Deny' | 'Powers Known' | 'Other';
};
}
export interface BSExplosionCharacteristic extends BSCharacteristic {
$: {
name: 'Dice roll' | 'Distance' | 'Mortal wounds';
};
}
export declare type CalculatedCosts = {
[CostType.PTS]: number;
[CostType.PL]: number;
[CostType.CP]: number;
};
export declare type LoaderInput = string | Buffer | unknown;