fix: fix some type
This commit is contained in:
parent
e0c49f336a
commit
b64daf19cd
30
runtime.d.ts
vendored
30
runtime.d.ts
vendored
@ -338,6 +338,21 @@ type gameStatus = {
|
|||||||
autotileAnimateObjs: []
|
autotileAnimateObjs: []
|
||||||
globalAnimateStatus: number
|
globalAnimateStatus: number
|
||||||
animateObjs: []
|
animateObjs: []
|
||||||
|
|
||||||
|
/** "新版道具栏"插件的状态变量 */
|
||||||
|
thisUIEventInfo: {
|
||||||
|
allItems: string[],
|
||||||
|
maxPage: number,
|
||||||
|
pageItems: string[],
|
||||||
|
maxItem: number,
|
||||||
|
page: number, select: {
|
||||||
|
id?: string,
|
||||||
|
type?: string,
|
||||||
|
action?: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/** "新版道具栏"插件的状态变量 */
|
||||||
|
thisEventClickArea: {}
|
||||||
}
|
}
|
||||||
|
|
||||||
type editor = {
|
type editor = {
|
||||||
@ -349,10 +364,10 @@ type editor = {
|
|||||||
currentFloorData: Object;
|
currentFloorData: Object;
|
||||||
currentFloorId: string;
|
currentFloorId: string;
|
||||||
dom: {
|
dom: {
|
||||||
canvas: string[],
|
canvas: string[]
|
||||||
maps: string[],
|
maps: string[]
|
||||||
[x: string]: CanvasRenderingContext2D | HTMLCanvasElement
|
[x: string]: string[] | CanvasRenderingContext2D | HTMLCanvasElement
|
||||||
};
|
}
|
||||||
fgmap: any[];
|
fgmap: any[];
|
||||||
file: Object;
|
file: Object;
|
||||||
fs: Object;
|
fs: Object;
|
||||||
@ -2975,6 +2990,7 @@ interface icons {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface plugin {
|
interface plugin {
|
||||||
|
|
||||||
/** 打开一个道具商店 */
|
/** 打开一个道具商店 */
|
||||||
openItemShop(itemShopId: string): void
|
openItemShop(itemShopId: string): void
|
||||||
/** 某个全局商店是否被访问过 */
|
/** 某个全局商店是否被访问过 */
|
||||||
@ -2995,7 +3011,7 @@ interface plugin {
|
|||||||
/** 多角色插件,初始化各角色属性 */
|
/** 多角色插件,初始化各角色属性 */
|
||||||
initHeros(): void
|
initHeros(): void
|
||||||
/** 多角色插件,切换到另一角色 */
|
/** 多角色插件,切换到另一角色 */
|
||||||
changeHero(toHeroId: number = 0): void
|
changeHero(toHeroId?: number): void
|
||||||
}
|
}
|
||||||
|
|
||||||
type CoreMixin = {
|
type CoreMixin = {
|
||||||
@ -3029,7 +3045,7 @@ type CoreMixin = {
|
|||||||
enemy48: { [blockName: string]: number };
|
enemy48: { [blockName: string]: number };
|
||||||
enemys: { [blockName: string]: number };
|
enemys: { [blockName: string]: number };
|
||||||
hero: {
|
hero: {
|
||||||
height: number, [dir: string]: {
|
[dir: string]: {
|
||||||
loc: number;
|
loc: number;
|
||||||
stop: number;
|
stop: number;
|
||||||
leftFoot: number;
|
leftFoot: number;
|
||||||
@ -3037,7 +3053,7 @@ type CoreMixin = {
|
|||||||
/** 插件"勇士4帧动画"定义的中间帧动画 */
|
/** 插件"勇士4帧动画"定义的中间帧动画 */
|
||||||
midFoot: number;
|
midFoot: number;
|
||||||
}
|
}
|
||||||
}
|
} & { height: number },
|
||||||
items: { [blockName: string]: number };
|
items: { [blockName: string]: number };
|
||||||
npc48: { [blockName: string]: number };
|
npc48: { [blockName: string]: number };
|
||||||
npcs: { [blockName: string]: number };
|
npcs: { [blockName: string]: number };
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user