UNPKG

@skullandbonestools/snbdata

Version:

Inofficial data package for the Skull and Bones game by Ubisoft.

39 lines 2.3 kB
import cosmeticsData from '../../data/cosmetics.json'; import { Effect, PlayerAppearanceType, PlayerOutfitType, ShipType } from '../types/CosmeticProperties'; import { Rarity } from '../types/Rarity'; import { Contract } from './contracts'; import { Event } from './events'; import { Material } from './materials'; import { Season } from './seasons'; import { Set } from './sets'; import { WorldEvent } from './worldEvents'; export declare class Cosmetic { readonly id: string; readonly type: ShipType | PlayerOutfitType | PlayerAppearanceType; readonly dateAdded: Date; readonly lastUpdated: Date; readonly rarity?: Rarity | undefined; readonly tier?: number | undefined; readonly set?: Set | undefined; readonly obtainable?: (string | string[] | Array<string | string[]>) | undefined; readonly effect?: (Effect | Effect[]) | undefined; readonly season?: Season | undefined; readonly contract?: Contract | undefined; basic?: Cosmetic | undefined; upgrades?: Cosmetic[] | undefined; readonly required?: Map<Material, number> | undefined; readonly requiredRank?: string | undefined; readonly bounty?: string | undefined; readonly event?: Event | undefined; readonly worldEvent?: (WorldEvent | WorldEvent[]) | undefined; constructor(id: string, type: ShipType | PlayerOutfitType | PlayerAppearanceType, dateAdded: Date, lastUpdated: Date, rarity?: Rarity | undefined, tier?: number | undefined, set?: Set | undefined, obtainable?: (string | string[] | Array<string | string[]>) | undefined, effect?: (Effect | Effect[]) | undefined, season?: Season | undefined, contract?: Contract | undefined, basic?: Cosmetic | undefined, upgrades?: Cosmetic[] | undefined, required?: Map<Material, number> | undefined, requiredRank?: string | undefined, bounty?: string | undefined, event?: Event | undefined, worldEvent?: (WorldEvent | WorldEvent[]) | undefined); static fromRawData(rawData: any): Cosmetic; static updateCosmeticWithUpgrades(key: string, rawData: any, cosmetics: Record<string, Cosmetic>): void; static loadCosmetics(): Record<string, Cosmetic>; } type Cosmetics = { [K in keyof typeof cosmeticsData]: Cosmetic; }; export declare const Cosmetics: Cosmetics; export {}; //# sourceMappingURL=cosmetics.d.ts.map