修复所有类型错误

This commit is contained in:
unanmed 2023-02-20 15:43:32 +08:00
parent 5087b06633
commit cd160cd10d
2 changed files with 17 additions and 25 deletions

2
src/types/data.d.ts vendored
View File

@ -7,7 +7,7 @@ interface MainData {
/**
* 分区指定
*/
readonly floorPatitions: [FloorIds, FloorIds?][];
readonly floorPartitions: [FloorIds, FloorIds?][];
/**
* 所有的额外素材

40
src/types/status.d.ts vendored
View File

@ -596,17 +596,7 @@ interface InitGameStatus {
/**
* 游戏是否结束
*/
gameOver: false;
/**
* 当前勇士状态信息。例如core.status.hero.atk就是当前勇士的攻击力数值
*/
hero: {};
/**
* 当前层的floorId
*/
floorId: null;
gameOver: boolean;
/**
* 所有楼层的地图信息
@ -615,11 +605,6 @@ interface InitGameStatus {
[P in FloorIds]: Floor<P>;
};
/**
* 获得当前楼层信息,等价于core.status.maps[core.status.floorId]
*/
thisMap: null;
/**
* 背景图块
*/
@ -635,11 +620,6 @@ interface InitGameStatus {
*/
mapBlockObjs: Record<FloorIds, Record<LocString, Block>>;
/**
* 地图伤害
*/
checkBlock: {};
/**
* 伤害显示信息
*/
@ -789,12 +769,24 @@ interface InitGameStatus {
* 运行时的游戏状态
*/
interface GameStatus extends InitGameStatus {
played: boolean;
gameOver: boolean;
/**
* 当前层的floorId
*/
floorId: FloorIds;
/**
* 获得当前楼层信息,等价于core.status.maps[core.status.floorId]
*/
thisMap: ResolvedFloor;
/**
* 地图伤害
*/
checkBlock: Readonly<CheckBlockStatus>;
lockControl: boolean;
/**
* 当前勇士状态信息。例如core.status.hero.atk就是当前勇士的攻击力数值
*/
hero: HeroStatus;
}