This commit is contained in:
2014-08-13 14:22:56 +04:00
parent a3cc8fc937
commit 9c31c87936

View File

@@ -13,8 +13,6 @@ import haxework.gui.Root;
import haxework.gui.GuiBuilder;
import haxe.Json;
import openfl.Assets;
import ru.m.armageddon.core.connect.flash.FlashConnection;
import ru.m.armageddon.core.connect.js.JsConnection;
import ru.m.armageddon.core.connect.IConnection;
import haxework.log.TraceLogger;
@@ -40,11 +38,11 @@ class Client implements IConnectionHandler {
Provider.setFactory(GameData, GameData);
Provider.set(IFrameSwitcher, switcher);
//#if flash
//Provider.set(IConnection, new FlashConnection("localhost", 5001, this));
//#elseif html5
Provider.set(IConnection, new JsConnection("localhost", 5001, this));
//#end
#if flash
Provider.set(IConnection, new ru.m.armageddon.core.connect.flash.FlashConnection("localhost", 5001, this));
#elseif html5
Provider.set(IConnection, new ru.m.armageddon.core.connect.js.JsConnection("localhost", 5001, this));
#end
switcher.change(AuthFrame.ID);