修正类型提示
This commit is contained in:
parent
f08becf03a
commit
2c5593c901
22
game/game.js
22
game/game.js
|
@ -31277,29 +31277,11 @@ new Promise(resolve=>{
|
||||||
this.step=0;
|
this.step=0;
|
||||||
this.finished=false;
|
this.finished=false;
|
||||||
/**
|
/**
|
||||||
* @type {GameEvent[]}
|
* @type {(Promise<GameEvent> & GameEvent & GameEventPromise)[]}
|
||||||
*/
|
*/
|
||||||
this.next=[];
|
this.next=[];
|
||||||
// Object.defineProperty(this.next,'remove',{
|
|
||||||
// enumerable:false,
|
|
||||||
// value:function(){
|
|
||||||
// for(const item of arguments){
|
|
||||||
// let pos=-1;
|
|
||||||
// if (typeof item=='number'&&isNaN(item)){
|
|
||||||
// pos=this.findIndex(v=>isNaN(v))
|
|
||||||
// }else if(item instanceof lib.element.GameEventPromise){
|
|
||||||
// pos=this.indexOf(item.toEvent());
|
|
||||||
// }else{
|
|
||||||
// pos=this.indexOf(item);
|
|
||||||
// }
|
|
||||||
// if(pos==-1) continue;
|
|
||||||
// this.splice(pos,1);
|
|
||||||
// }
|
|
||||||
// return this;
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
/**
|
/**
|
||||||
* @type {GameEvent[]}
|
* @type {(Promise<GameEvent> & GameEvent & GameEventPromise)[]}
|
||||||
*/
|
*/
|
||||||
this.after=[];
|
this.after=[];
|
||||||
this.custom={
|
this.custom={
|
||||||
|
|
Loading…
Reference in New Issue