//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- public static void SendAuthByTokenRequest(string _token, RequestParseCallback requestParseCallback) { sendPacketBuffer.Reset((int)HeaderOffsets.SecondEnd); sendPacketBuffer.Add((byte)ClientPacketTypes.Request); sendPacketBuffer.Add((byte)RequestTypes.AuthByToken); sendPacketBuffer.Add((ushort)Settings.clientVersion); sendPacketBuffer.AddShortString(_token); SendRequestToServer(requestParseCallback, null); WaitForPacket(ClientPacketTypes.RequestAnswer, waitPacketTimeout); Update(); }