MC_survival/data.d.ts

153 lines
2.3 KiB
TypeScript
Raw Normal View History

2025-01-14 12:27:52 +08:00
interface MainData {
/**
* id
*/
readonly floorIds: FloorIds[];
/**
*
*/
readonly floorPartitions: [FloorIds, FloorIds?][];
/**
*
*/
readonly tilesets: string[];
/**
*
*/
readonly animates: AnimationIds[];
/**
* bgm
*/
readonly bgms: BgmIds[];
/**
*
*/
readonly images: ImageIds[];
/**
*
*/
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;
readonly plugin: string[];
}
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;
/**
*
*/
author: string;
}
/**
*
*/
interface DataCore {
/**
* main信息
*/
readonly main: MainData;
/**
*
*/
readonly firstData: FirstData;
/**
*
*/
readonly values: CoreValues;
/**
*
*/
readonly flags: CoreFlags;
}
declare const data: new () => Omit<DataCore, 'main'>;