Commit 8927f1fd authored by 任建锋's avatar 任建锋

--

parent ef6bacb4
This diff is collapsed.
...@@ -14,17 +14,15 @@ ...@@ -14,17 +14,15 @@
} }
//# sourceMappingURL=props.js.map //# sourceMappingURL=props.js.map
function getTexture(uuid) {
return engine.Texture.from(getAssetByUUID(uuid).uuid);
}
function getTextureByName(name) { function getTextureByName(name) {
return getTexture(getAssetByName(name).uuid); return engine.Texture.from(getAssetByName(name).uuid);
} }
function createSvga(name, anchorName) { function createSvga(name, anchorName) {
var inst = new svga.Svga(); var inst = new svga.Svga();
inst.source = 'asset://' + getAssetByName(name).uuid; inst.source = 'asset://' + getAssetByName(name).uuid;
return inst; return inst;
} }
//# sourceMappingURL=utils.js.map
var Goods = (function (_super) { var Goods = (function (_super) {
tslib.__extends(Goods, _super); tslib.__extends(Goods, _super);
...@@ -351,6 +349,7 @@ ...@@ -351,6 +349,7 @@
}; };
return GameView; return GameView;
}(engine.Container)); }(engine.Container));
//# sourceMappingURL=GameView.js.map
var GameWrapper = (function (_super) { var GameWrapper = (function (_super) {
tslib.__extends(GameWrapper, _super); tslib.__extends(GameWrapper, _super);
......
This diff is collapsed.
...@@ -7,7 +7,7 @@ export function getTexture(uuid) { ...@@ -7,7 +7,7 @@ export function getTexture(uuid) {
} }
export function getTextureByName(name) { export function getTextureByName(name) {
return getTexture(getAssetByName(name).uuid); return engine.Texture.from(getAssetByName(name).uuid);
} }
export function playSound(name) { export function playSound(name) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment