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