Eustia/project/types/data.d.ts

141 lines
2.0 KiB
TypeScript
Raw Normal View History

interface MainData {
/**
* id
*/
readonly floorIds: FloorIds[];
/**
*
*/
readonly floorPatitions: [FloorIds, FloorIds?][];
/**
*
*/
readonly tilesets: string[];
/**
*
*/
readonly animates: AnimationIds[];
/**
* bgm
*/
readonly bgms: BgmIds[];
/**
*
*/
readonly sounds: SoundIds[];
/**
*
*/
readonly fonts: FontIds[];
/**
*
*/
readonly nameMap: NameMap;
/**
*
*/
readonly levelChoose: LevelChooseEvent[];
/**
*
*/
readonly equipName: string[];
/**
* bgm
*/
readonly startBgm: BgmIds;
/**
*
*/
readonly styles: MainStyle;
/**
*
*/
readonly splitImages: SplitImageData;
}
interface FirstData {
/**
*
*/
title: string;
/**
* mota.config.ts中的一致
*/
name: string;
/**
*
*/
version: string;
/**
*
*/
floorId: FloorIds;
/**
*
*/
hero: HeroStatus;
/**
*
*/
startCanvas: MotaEvent;
/**
*
*/
startText: MotaEvent;
/**
*
*/
shops: ShopEventOf<keyof ShopEventMap>[];
/**
*
*/
levelUp: LevelUpEvent;
}
/**
*
*/
interface DataCore {
/**
* main信息
*/
readonly main: MainData;
/**
*
*/
readonly firstData: FirstData;
/**
*
*/
readonly values: CoreValues;
/**
*
*/
readonly flags: CoreFlags;
}
declare const data: new () => Omit<DataCore, 'main'>;