Take this code:
function createGUIHud():Void { this.screen.gameHud = new NormalGameHud(10, 0, this.screen.getTextureAtlas()); this.screen.gameHud.x = FlxG.width - (this.screen.gameHud.width + GameSize.getPositionByPlatform(10)); this.screen.gameHud.y = GameSize.getPositionByPlatform(10); }
Does 'textureAtlas' get passed by reference or copied?
http://api.haxeflixel.com/flixel/util/loaders/SparrowData.html
I know that PHP passes objects by reference, and things like arrays are copied unless otherwise specified (with the & prefix). Does the same apply to Haxe?
Thanks.
SMKS source share