@skullandbonestools/snbdata
Version:
Inofficial data package for the Skull and Bones game by Ubisoft.
19 lines • 768 B
TypeScript
import worldEventsData from '../../data/worldEvents.json';
import { WorldEventType } from '../types/WorldEventProperties';
import { Event } from './events';
import { Faction } from './factions';
export declare class WorldEvent {
readonly id: string;
readonly type: WorldEventType;
readonly faction?: Faction | undefined;
readonly event?: Event | undefined;
constructor(id: string, type: WorldEventType, faction?: Faction | undefined, event?: Event | undefined);
static fromRawData(rawData: any): WorldEvent;
static loadWorldEvents(): Record<string, WorldEvent>;
}
type WorldEvents = {
[K in keyof typeof worldEventsData]: WorldEvent;
};
export declare const WorldEvents: WorldEvents;
export {};
//# sourceMappingURL=worldEvents.d.ts.map