UNPKG

the-world-engine

Version:

three.js based, unity like game engine for browser

41 lines (37 loc) 752 B
export class YieldInstruction {} export class WaitForEndOfFrame extends YieldInstruction { static _instance=new WaitForEndOfFrame; static get instance() { return WaitForEndOfFrame._instance; } } export class WaitForSeconds extends YieldInstruction { Yt; constructor(t) { super(); this.Yt = t; } get seconds() { return this.Yt; } } export class WaitUntil extends YieldInstruction { Et; constructor(t) { super(); this.Et = t; } get predicate() { return this.Et; } } export class WaitWhile extends YieldInstruction { Et; constructor(t) { super(); this.Et = t; } get predicate() { return this.Et; } }