mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
Updated TS parser
This commit is contained in:
parent
edb0a8bfc2
commit
fa890651f4
7 changed files with 14 additions and 37 deletions
|
@ -69,10 +69,9 @@ class Parser {
|
|||
case 'Phaser.GameObjects.Components.GetBounds':
|
||||
case 'Phaser.GameObjects.Components.Mask':
|
||||
case 'Phaser.GameObjects.Components.Origin':
|
||||
case 'Phaser.GameObjects.Components.PathFollower':
|
||||
case 'Phaser.GameObjects.Components.Pipeline':
|
||||
case 'Phaser.GameObjects.Components.ScaleMode':
|
||||
case 'Phaser.GameObjects.Components.ScrollFactor':
|
||||
case 'Phaser.GameObjects.Components.ScaleFactor':
|
||||
case 'Phaser.GameObjects.Components.Size':
|
||||
case 'Phaser.GameObjects.Components.Texture':
|
||||
case 'Phaser.GameObjects.Components.TextureCrop':
|
||||
|
@ -80,11 +79,10 @@ class Parser {
|
|||
case 'Phaser.GameObjects.Components.ToJSON':
|
||||
case 'Phaser.GameObjects.Components.Transform':
|
||||
case 'Phaser.GameObjects.Components.Visible':
|
||||
case 'Phaser.Renderer.WebGL.Pipelines.ModelViewProjection':
|
||||
doclet.kind = 'mixin';
|
||||
break;
|
||||
}
|
||||
if (doclet.longname == 'ModelViewProjection')
|
||||
doclet.kind = 'mixin';
|
||||
if ((doclet.longname.indexOf('Phaser.Physics.Arcade.Components.') == 0
|
||||
|| doclet.longname.indexOf('Phaser.Physics.Impact.Components.') == 0
|
||||
|| doclet.longname.indexOf('Phaser.Physics.Matter.Components.') == 0)
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5,7 +5,7 @@
|
|||
"source": {
|
||||
"include": [
|
||||
"../../src/",
|
||||
"../../plugins/fbinstant"
|
||||
"../../plugins/fbinstant/src"
|
||||
],
|
||||
"exclude": [
|
||||
"../../src/phaser-arcade-physics.js",
|
||||
|
|
|
@ -100,10 +100,11 @@ export class Parser {
|
|||
case 'Phaser.GameObjects.Components.ToJSON':
|
||||
case 'Phaser.GameObjects.Components.Transform':
|
||||
case 'Phaser.GameObjects.Components.Visible':
|
||||
case 'Phaser.Renderer.WebGL.Pipelines.ModelViewProjection':
|
||||
doclet.kind = 'mixin';
|
||||
break;
|
||||
}
|
||||
if (doclet.longname == 'ModelViewProjection') doclet.kind = 'mixin';
|
||||
|
||||
if ((doclet.longname.indexOf('Phaser.Physics.Arcade.Components.') == 0
|
||||
|| doclet.longname.indexOf('Phaser.Physics.Impact.Components.') == 0
|
||||
|| doclet.longname.indexOf('Phaser.Physics.Matter.Components.') == 0)
|
||||
|
|
|
@ -36,31 +36,4 @@ var config = {
|
|||
scene: MyScene
|
||||
};
|
||||
var game = new Phaser.Game(config);
|
||||
var scene = new Phaser.Scene("");
|
||||
var blitter = new Phaser.GameObjects.Blitter(scene, 10, 10);
|
||||
var conf = {
|
||||
type: Phaser.AUTO,
|
||||
width: 100,
|
||||
height: 100,
|
||||
zoom: 1,
|
||||
resolution: 1
|
||||
};
|
||||
var tex = null;
|
||||
tex.source[0].setFilter(Phaser.Textures.FilterMode.LINEAR);
|
||||
tex.setFilter(Phaser.Textures.FilterMode.LINEAR);
|
||||
tex.setFilter(Phaser.Textures.NEAREST);
|
||||
var sprite = new Phaser.GameObjects.Sprite(scene, 0, 0, "test");
|
||||
var MyVec = /** @class */ (function (_super) {
|
||||
__extends(MyVec, _super);
|
||||
function MyVec() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
MyVec.prototype.extra = function () {
|
||||
};
|
||||
return MyVec;
|
||||
}(Phaser.Geom.Rectangle));
|
||||
var p = new MyVec();
|
||||
sprite.getBounds(p).extra();
|
||||
var container = scene.add.container(0, 0);
|
||||
container.getWorldTransformMatrix();
|
||||
//# sourceMappingURL=game.js.map
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"game.js","sourceRoot":"","sources":["../src/game.ts","../src/game2.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAsB,2BAAY;IAAlC;;IAoBA,CAAC;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P,CAAC;IAEL,cAAC;AAAD,CAAC,AApBD,CAAsB,MAAM,CAAC,KAAK,GAoBjC;AAED,IAAI,MAAM,GAAG;IACT,IAAI,EAAE,MAAM,CAAC,IAAI;IACjB,MAAM,EAAE,gBAAgB;IACxB,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,OAAO;CACjB,CAAC;AAEF,IAAI,IAAI,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC"}
|
|
@ -7,10 +7,15 @@
|
|||
"noImplicitReturns": true,
|
||||
"preserveConstEnums": true,
|
||||
"outFile": "./bin/game.js",
|
||||
"sourceMap": true
|
||||
"sourceMap": true,
|
||||
"lib": [
|
||||
"dom",
|
||||
"scripthost",
|
||||
"es5"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src/*",
|
||||
"src/game.ts",
|
||||
"../../../types/phaser.d.ts"
|
||||
],
|
||||
"exclude": [
|
||||
|
|
Loading…
Reference in a new issue