common-game
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -18,3 +18,7 @@ import * as PIXI from "@tbminiapp/pixi-miniprogram-engine"; | ||
}, | ||
props: {}, | ||
props: { | ||
gameSource: null, | ||
uniId: null, | ||
onGetGame: Function | ||
}, | ||
didMount() { | ||
@@ -61,3 +65,3 @@ my._pixiCount = (my._pixiCount || 0) + 1; | ||
}, | ||
didUpdate() {}, | ||
didUpdate() { }, | ||
didUnmount() { | ||
@@ -118,3 +122,3 @@ clearTimeout(this.timer1); | ||
gameSource = JSON.parse(gameSource); | ||
} catch (e) {} | ||
} catch (e) { } | ||
try { | ||
@@ -133,3 +137,3 @@ let versionA = (res.version + "").split("."); | ||
} | ||
} catch (e) {} | ||
} catch (e) { } | ||
@@ -155,3 +159,3 @@ return bl; | ||
} | ||
} catch (e) {} | ||
} catch (e) { } | ||
try { | ||
@@ -164,3 +168,3 @@ if (!!this.game.PIXIInstance[funName]) { | ||
} | ||
} catch (e) {} | ||
} catch (e) { } | ||
}, | ||
@@ -190,3 +194,3 @@ //读取节点信息 | ||
gameSource = JSON.parse(gameSource); | ||
} catch (e) {} | ||
} catch (e) { } | ||
this._scale = 750 / this.windowWidth; | ||
@@ -248,3 +252,3 @@ let canvasDom; | ||
options.forceCanvas = !(gameSource.renderType == "webgl"); | ||
} catch (e) {} | ||
} catch (e) { } | ||
options.gameSource = gameSource; | ||
@@ -356,3 +360,3 @@ | ||
{ namespace: this.game, pageOps }, | ||
() => {} | ||
() => { } | ||
); | ||
@@ -359,0 +363,0 @@ }, |
{ | ||
"name": "common-game", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "common-game.js", |
@@ -24,3 +24,11 @@ import * as PIXI from "@tbminiapp/pixi-miniprogram-engine"; | ||
// onAppInit: null, | ||
// onError: null | ||
// onError: null, | ||
id: String, | ||
className: String, | ||
destroyAppOnDidUnmount: String, | ||
onError: Function, | ||
onDidMountGame: Function, | ||
onDidUnmount: Function, | ||
onAppInit: Function, | ||
onClickFun: Function, | ||
}, | ||
@@ -27,0 +35,0 @@ onInit() { |
739191
16164