//Отправляет сообщение в лог на сервер--------------------------------------------------------------------------------------------------------------------------------------------------------- public static void Log(string text, LogTypes logType = LogTypes.None, LogParts logPart = LogParts.UserApp) { Console.WriteLine(text); if (connectState != ConnectStates.AuthPassed) return; sendPacketBuffer.Reset((int)HeaderOffsets.SecondEnd); sendPacketBuffer.Add((byte)ClientPacketTypes.Log); sendPacketBuffer.Add((byte)logPart); sendPacketBuffer.Add((byte)logType); sendPacketBuffer.AddLongString(text); SendBufferToServer(); }