mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 04:19:30 +08:00
修复所有类型错误
This commit is contained in:
parent
5087b06633
commit
cd160cd10d
2
src/types/data.d.ts
vendored
2
src/types/data.d.ts
vendored
@ -7,7 +7,7 @@ interface MainData {
|
|||||||
/**
|
/**
|
||||||
* 分区指定
|
* 分区指定
|
||||||
*/
|
*/
|
||||||
readonly floorPatitions: [FloorIds, FloorIds?][];
|
readonly floorPartitions: [FloorIds, FloorIds?][];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所有的额外素材
|
* 所有的额外素材
|
||||||
|
40
src/types/status.d.ts
vendored
40
src/types/status.d.ts
vendored
@ -596,17 +596,7 @@ interface InitGameStatus {
|
|||||||
/**
|
/**
|
||||||
* 游戏是否结束
|
* 游戏是否结束
|
||||||
*/
|
*/
|
||||||
gameOver: false;
|
gameOver: boolean;
|
||||||
|
|
||||||
/**
|
|
||||||
* 当前勇士状态信息。例如core.status.hero.atk就是当前勇士的攻击力数值
|
|
||||||
*/
|
|
||||||
hero: {};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 当前层的floorId
|
|
||||||
*/
|
|
||||||
floorId: null;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所有楼层的地图信息
|
* 所有楼层的地图信息
|
||||||
@ -615,11 +605,6 @@ interface InitGameStatus {
|
|||||||
[P in FloorIds]: Floor<P>;
|
[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>>;
|
mapBlockObjs: Record<FloorIds, Record<LocString, Block>>;
|
||||||
|
|
||||||
/**
|
|
||||||
* 地图伤害
|
|
||||||
*/
|
|
||||||
checkBlock: {};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 伤害显示信息
|
* 伤害显示信息
|
||||||
*/
|
*/
|
||||||
@ -789,12 +769,24 @@ interface InitGameStatus {
|
|||||||
* 运行时的游戏状态
|
* 运行时的游戏状态
|
||||||
*/
|
*/
|
||||||
interface GameStatus extends InitGameStatus {
|
interface GameStatus extends InitGameStatus {
|
||||||
played: boolean;
|
/**
|
||||||
gameOver: boolean;
|
* 当前层的floorId
|
||||||
|
*/
|
||||||
floorId: FloorIds;
|
floorId: FloorIds;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得当前楼层信息,等价于core.status.maps[core.status.floorId]
|
||||||
|
*/
|
||||||
thisMap: ResolvedFloor;
|
thisMap: ResolvedFloor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 地图伤害
|
||||||
|
*/
|
||||||
checkBlock: Readonly<CheckBlockStatus>;
|
checkBlock: Readonly<CheckBlockStatus>;
|
||||||
lockControl: boolean;
|
|
||||||
|
/**
|
||||||
|
* 当前勇士状态信息。例如core.status.hero.atk就是当前勇士的攻击力数值
|
||||||
|
*/
|
||||||
hero: HeroStatus;
|
hero: HeroStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user