public void connect_logic(string client_uuid, string logic_uuid) { logicproxy _logicproxy = _logicmanager.get_logic(logic_uuid); if (_logicproxy != null) { _clientmanager.reg_client_logic(client_uuid, _logicproxy); _logicproxy.client_connect(client_uuid); } }
public void connect_server(string uuid, long tick) { logicproxy _logicproxy = _logicmanager.get_logic(); if (!_clientmanager.has_client(uuid)) { System.Console.WriteLine("client " + uuid + " connected"); _clientmanager.reg_client(uuid, juggle.Imodule.current_ch, _timerservice.Tick, tick); _logicproxy.client_connect(uuid); } }
public void ack_client_connect_server(string uuid, string result) { clientproxy _clientproxy = _clientmanager.get_clientproxy(uuid); if (_clientproxy != null) { if (result != "svr_is_busy") { _clientmanager.reg_client_logic(uuid, _logicmanager.get_logic(juggle.Imodule.current_ch)); _clientproxy.ack_connect_server(result); } else { logicproxy _logicproxy = _logicmanager.get_logic(); _logicproxy.client_connect(uuid); } } }