private static bool toSendLog(int type, string str) { if (CommonSetting.isSingleGame) { return(true); } //连着的时候 if (GameC.player.system.isOnline() && SystemControl.isNetOpen() && GameC.server.getSocket().isConnect()) { try { Ctrl.setLogPause(true); SendClientLogRequest.create(type, str).send(false); } catch (Exception e) { } Ctrl.setLogPause(false); return(true); } return(false); }
/// <summary> /// 创建实例 /// </summary> public static SendClientLogRequest create(int type, string content) { SendClientLogRequest re = (SendClientLogRequest)BytesControl.createRequest(dataID); re.type = type; re.content = content; return(re); }