public bool StartClient(string address) { type |= GameMgrType.CLIENT; c = new Client(address); ClientHandler.current = c; if ((type & GameMgrType.SERVER) != 0) { c.Both = true; } c.SetHandler(ClientHandler._handlers); if (c.Connect()) { c.SendPacket(PacketBuilder.BuildConnectPacket(c.Both ? 4 : 0, 0)); return(true); } else { return(false); } }