Add blank lines to end of files

This commit is contained in:
Oliver Booth 2022-11-29 19:15:44 +00:00
parent 17fa114a98
commit c432437da7
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
61 changed files with 82 additions and 82 deletions

View File

@ -1,4 +1,4 @@
using System.Globalization;
using System.Globalization;
using System.Numerics;
using System.Text;
@ -150,4 +150,4 @@ public readonly struct Cell : IEquatable<Cell>, IFormattable
builder.Append('>');
return builder.ToString();
}
}
}

View File

@ -1,4 +1,4 @@
using System.Drawing;
using System.Drawing;
using VpSharp.Internal;
namespace VpSharp;
@ -160,4 +160,4 @@ public readonly struct ColorF : IEquatable<ColorF>
{
return HashCode.Combine(A, R, G, B);
}
}
}

View File

@ -8,4 +8,4 @@ public enum ColorSpace
Linear,
// ReSharper disable once InconsistentNaming
sRGB
}
}

View File

@ -9,9 +9,9 @@ public enum DisconnectReason
/// Indicates that connection to the server was lost unexpectedly.
/// </summary>
ConnectionLost,
/// <summary>
/// Indicates that disconnection was requested and graceful.
/// </summary>
Disconnected
}
}

View File

@ -37,4 +37,4 @@ public sealed class AvatarClickedEventArgs : EventArgs
/// </summary>
/// <value>The click point.</value>
public Vector3d ClickPoint { get; }
}
}

View File

@ -21,4 +21,4 @@ public sealed class AvatarJoinedEventArgs : EventArgs
/// </summary>
/// <value>The newly-joined avatar.</value>
public VirtualParadiseAvatar Avatar { get; }
}
}

View File

@ -21,4 +21,4 @@ public sealed class AvatarLeftEventArgs : EventArgs
/// </summary>
/// <value>The newly-departed avatar.</value>
public VirtualParadiseAvatar Avatar { get; }
}
}

View File

@ -27,14 +27,14 @@ public sealed class AvatarMovedEventArgs : EventArgs
public VirtualParadiseAvatar Avatar { get; }
/// <summary>
/// Gets the avatar's location after the change.
/// Gets the avatar's location after the change.
/// </summary>
/// <value>The avatar's new location.</value>
public Location LocationAfter { get; }
/// <summary>
/// Gets the avatar's location before the change.
/// Gets the avatar's location before the change.
/// </summary>
/// <value>The avatar's old location.</value>
public Location? LocationBefore { get; }
}
}

View File

@ -27,14 +27,14 @@ public sealed class AvatarTypeChangedEventArgs : EventArgs
public VirtualParadiseAvatar Avatar { get; }
/// <summary>
/// Gets the avatar's type after the change.
/// Gets the avatar's type after the change.
/// </summary>
/// <value>The avatar's new type.</value>
public int TypeAfter { get; }
/// <summary>
/// Gets the avatar's type before the change.
/// Gets the avatar's type before the change.
/// </summary>
/// <value>The avatar's old type.</value>
public int? TypeBefore { get; }
}
}

View File

@ -20,4 +20,4 @@ public sealed class DisconnectedEventArgs : EventArgs
/// </summary>
/// <value>The reason for the disconnect.</value>
public DisconnectReason Reason { get; }
}
}

View File

@ -19,4 +19,4 @@ public sealed class InviteRequestReceivedEventArgs : EventArgs
/// </summary>
/// <value>The invite request.</value>
public InviteRequest InviteRequest { get; }
}
}

View File

@ -19,4 +19,4 @@ public sealed class JoinRequestReceivedEventArgs : EventArgs
/// </summary>
/// <value>The join request.</value>
public JoinRequest JoinRequest { get; }
}
}

View File

@ -21,4 +21,4 @@ public sealed class MessageReceivedEventArgs : EventArgs
/// </summary>
/// <value>The message.</value>
public VirtualParadiseMessage Message { get; }
}
}

View File

@ -37,4 +37,4 @@ public sealed class ObjectBumpEventArgs : EventArgs
/// </summary>
/// <value>The bump phase.</value>
public BumpPhase Phase { get; }
}
}

View File

@ -44,4 +44,4 @@ public sealed class ObjectChangedEventArgs : EventArgs
/// previously have the object cached.
/// </value>
public VirtualParadiseObject ObjectBefore { get; }
}
}

View File

@ -40,4 +40,4 @@ public sealed class ObjectClickedEventArgs : EventArgs
/// </summary>
/// <value>The clicked object.</value>
public VirtualParadiseObject Object { get; }
}
}

View File

@ -29,4 +29,4 @@ public sealed class ObjectCreatedEventArgs : EventArgs
/// </summary>
/// <value>The object which was created.</value>
public VirtualParadiseObject Object { get; }
}
}

View File

@ -46,4 +46,4 @@ public sealed class ObjectDeletedEventArgs : EventArgs
/// </remarks>
/// <seealso cref="Object" />
public int ObjectId { get; }
}
}

View File

@ -29,4 +29,4 @@ public sealed class TeleportedEventArgs : EventArgs
/// </summary>
/// <value>The target location of the teleport.</value>
public Location Location { get; }
}
}

View File

@ -37,4 +37,4 @@ public sealed class UriReceivedEventArgs : EventArgs
/// </summary>
/// <value>The received URI.</value>
public Uri Uri { get; }
}
}

View File

@ -22,4 +22,4 @@ public sealed class VersionMismatchException : Exception
: base(message, innerException)
{
}
}
}

View File

@ -31,4 +31,4 @@ internal static class ColorExtensions
(r, g, b) = color;
a = color.A;
}
}
}

View File

@ -1,4 +1,4 @@
using System.Numerics;
using System.Numerics;
using System.Text;
using Cysharp.Text;
@ -246,4 +246,4 @@ internal static class SpanExtensions
return new Vector4(x, y, z, w);
}
}
}

View File

@ -33,4 +33,4 @@ public static class VectorExtensions
z = vector.Z;
w = vector.W;
}
}
}

View File

@ -11,4 +11,4 @@ public enum FogMode
Exponential = Exp,
Exp2,
Exponential2 = Exp2
}
}

View File

@ -240,4 +240,4 @@ internal static class Native
[DllImport(VpSdkLibrary, CallingConvention = CallingConvention.Cdecl)]
public static extern int vp_net_notify(nint vpConnection, int type, int status);
}
}

View File

@ -40,4 +40,4 @@ internal enum FloatAttribute
InviteZ,
InviteYaw,
InvitePitch
}
}

View File

@ -46,4 +46,4 @@ internal enum IntegerAttribute
InviteId,
InviteUserId,
WorldSize
}
}

View File

@ -25,4 +25,4 @@ internal enum StringAttribute
ApplicationVersion,
AvatarApplicationName,
AvatarApplicationVersion
}
}

View File

@ -3,4 +3,4 @@
namespace VpSharp.Internal;
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate void NativeCallbackHandler(nint sender, [MarshalAs(UnmanagedType.I4)] ReasonCode reason, int reference);
internal delegate void NativeCallbackHandler(nint sender, [MarshalAs(UnmanagedType.I4)] ReasonCode reason, int reference);

View File

@ -27,4 +27,4 @@ internal enum NativeEvent
TerrainNodeChanged,
Join,
Invite
}
}

View File

@ -3,4 +3,4 @@
namespace VpSharp.Internal;
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate void NativeEventHandler(nint sender);
internal delegate void NativeEventHandler(nint sender);

View File

@ -3,4 +3,4 @@
namespace VpSharp.Internal;
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate nint SocketCreateFunction(nint connection, nint context);
internal delegate nint SocketCreateFunction(nint connection, nint context);

View File

@ -3,4 +3,4 @@
namespace VpSharp.Internal;
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate void SocketDestroyFunction(nint socket);
internal delegate void SocketDestroyFunction(nint socket);

View File

@ -3,4 +3,4 @@
namespace VpSharp.Internal;
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate int SocketReceiveFunction(nint socket, nint data, uint length);
internal delegate int SocketReceiveFunction(nint socket, nint data, uint length);

View File

@ -3,4 +3,4 @@
namespace VpSharp.Internal;
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate int SocketSendFunction(nint socket, nint data, uint length);
internal delegate int SocketSendFunction(nint socket, nint data, uint length);

View File

@ -3,4 +3,4 @@
namespace VpSharp.Internal;
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate int SocketTimeoutFunction(nint socket, int seconds);
internal delegate int SocketTimeoutFunction(nint socket, int seconds);

View File

@ -3,4 +3,4 @@
namespace VpSharp.Internal;
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate int SocketWaitFunction(nint context, int duration);
internal delegate int SocketWaitFunction(nint context, int duration);

View File

@ -1,4 +1,4 @@
using System.Runtime.InteropServices;
using System.Runtime.InteropServices;
using System.Text;
namespace VpSharp.Internal;
@ -39,4 +39,4 @@ internal sealed class Utf8StringToNative : ICustomMarshaler
{
throw new NotImplementedException();
}
}
}

View File

@ -27,4 +27,4 @@ internal sealed class HexToColorConverter : ValueConverter<Color>
{
writer.Write($"{value.R:X2}{value.G:X2}{value.B:X2}");
}
}
}

View File

@ -24,4 +24,4 @@ internal sealed class IntToBoolConverter : ValueConverter<bool>
{
writer.Write(value ? 1 : 0);
}
}
}

View File

@ -15,4 +15,4 @@ internal sealed class IntToEnumConverter<T> : ValueConverter<T>
{
writer.Write(Convert.ToInt32(value));
}
}
}

View File

@ -24,4 +24,4 @@ internal sealed class MillisecondToTimeSpanConverter : ValueConverter<TimeSpan>
{
writer.Write(value.TotalMilliseconds);
}
}
}

View File

@ -1,4 +1,4 @@
using System.Reflection;
using System.Reflection;
using VpSharp.Internal.Attributes;
namespace VpSharp.Internal.ValueConverters;
@ -27,4 +27,4 @@ internal sealed class StringToEnumConverter<T> : ValueConverter<T>
{
writer.Write(value.ToString().ToLowerInvariant());
}
}
}

View File

@ -17,4 +17,4 @@ internal sealed class UriConverter : ValueConverter<Uri>
writer.Write(value.ToString());
}
}
}
}

View File

@ -1,4 +1,4 @@
namespace VpSharp.Internal.ValueConverters;
namespace VpSharp.Internal.ValueConverters;
[Obsolete]
internal abstract class ValueConverter
@ -28,4 +28,4 @@ internal abstract class ValueConverter<T> : ValueConverter
public abstract void Deserialize(TextReader reader, out T result);
public abstract void Serialize(TextWriter writer, T value);
}
}

View File

@ -1,4 +1,4 @@
using System.Numerics;
using System.Numerics;
using Cysharp.Text;
using VpSharp.Extensions;
@ -37,4 +37,4 @@ internal sealed class Vector2Converter : ValueConverter<Vector2>
{
writer.Write($"{value.X} {value.Y}");
}
}
}

View File

@ -1,4 +1,4 @@
using System.Numerics;
using System.Numerics;
using Cysharp.Text;
using VpSharp.Extensions;
@ -37,4 +37,4 @@ internal sealed class Vector3Converter : ValueConverter<Vector3>
{
writer.Write($"{value.X} {value.Y} {value.Z}");
}
}
}

View File

@ -1,4 +1,4 @@
using Cysharp.Text;
using Cysharp.Text;
using VpSharp.Extensions;
namespace VpSharp.Internal.ValueConverters;
@ -37,4 +37,4 @@ internal sealed class Vector3ToColorConverter : ValueConverter<ColorF>
{
writer.Write($"{value.R} {value.G} {value.B} {value.A}");
}
}
}

View File

@ -1,4 +1,4 @@
using Cysharp.Text;
using Cysharp.Text;
using VpSharp.Extensions;
namespace VpSharp.Internal.ValueConverters;
@ -36,4 +36,4 @@ internal sealed class Vector3dConverter : ValueConverter<Vector3d>
{
writer.Write($"{value.X} {value.Y} {value.Z}");
}
}
}

View File

@ -1,4 +1,4 @@
using Cysharp.Text;
using Cysharp.Text;
using VpSharp.Extensions;
namespace VpSharp.Internal.ValueConverters;
@ -37,4 +37,4 @@ internal sealed class Vector4ToColorConverter : ValueConverter<ColorF>
{
writer.Write($"{value.R} {value.G} {value.B} {value.A}");
}
}
}

View File

@ -1,4 +1,4 @@
using System.Numerics;
using System.Numerics;
using Cysharp.Text;
using VpSharp.Extensions;
@ -42,4 +42,4 @@ internal sealed class Vector4ToVector3Converter : ValueConverter<Vector3>
writer.Write(value.Z);
writer.Flush();
}
}
}

View File

@ -1,4 +1,4 @@
using Cysharp.Text;
using Cysharp.Text;
using VpSharp.Extensions;
namespace VpSharp.Internal.ValueConverters;
@ -47,4 +47,4 @@ internal sealed class VectorToNthComponentConverter : ValueConverter<float>
{
writer.Write(value);
}
}
}

View File

@ -1,4 +1,4 @@
using System.ComponentModel;
using System.ComponentModel;
using System.Reflection;
using VpSharp.Internal.Attributes;
@ -156,4 +156,4 @@ internal static class WorldSettingsConverter
return settings;
}
}
}

View File

@ -1,4 +1,4 @@
using VpSharp.Entities;
using VpSharp.Entities;
using VpSharp.Internal;
namespace VpSharp;
@ -110,4 +110,4 @@ public sealed class InviteRequest : IEquatable<InviteRequest>
public static bool operator ==(InviteRequest left, InviteRequest right) => Equals(left, right);
public static bool operator !=(InviteRequest left, InviteRequest right) => !Equals(left, right);
}
}

View File

@ -19,4 +19,4 @@ public enum InviteResponse
/// The invite request timed out.
/// </summary>
TimeOut
}
}

View File

@ -19,4 +19,4 @@ public enum JoinResponse
/// The join request timed out.
/// </summary>
TimeOut
}
}

View File

@ -27,4 +27,4 @@ public readonly struct JoinResult
{
return result.Response == JoinResponse.Accepted;
}
}
}

View File

@ -5,4 +5,4 @@ internal enum NetworkReturnCode
Success = 0,
ConnectionError = -1,
WouldBlock = -2
}
}

View File

@ -11,4 +11,4 @@ internal enum ProxyType
/// Connection uses socks 4A.
/// </summary>
ProxySocks4A
}
}

View File

@ -1,4 +1,4 @@
using System.Drawing;
using System.Drawing;
using System.Numerics;
using VpSharp.Internal;
using VpSharp.Internal.Attributes;
@ -401,4 +401,4 @@ public sealed class WorldSettingsBuilder
}
}
}
}
}