fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user