hexonaut / haxe-phaser

Haxe externs for Phaser.
MIT License
51 stars 9 forks source link

Import missing in Group class #45

Closed mathieuanthoine closed 9 years ago

hexonaut commented 9 years ago

Where is the error that this missing import is causing?

mathieuanthoine commented 9 years ago

the constructor need to know the package of DisplayObject:

@:native("Phaser.Group") extern class Group extends phaser.pixi.display.DisplayObjectContainer { function new (game:phaser.core.Game, ?parent:DisplayObject=null, ....

I have added an import for that but maybe you prefer add the package directly in the constructor definition:

function new (game:phaser.core.Game, ?parent:phaser.pixi.display.DisplayObject=null, ....

hexonaut commented 9 years ago

Yeah could you make that change? I'd like to keep things consistent. There are no imports in any of the classes.