mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-10 02:55:41 +00:00
Add blank lines to end of files
This commit is contained in:
parent
17fa114a98
commit
c432437da7
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,4 +8,4 @@ public enum ColorSpace
|
||||
Linear,
|
||||
// ReSharper disable once InconsistentNaming
|
||||
sRGB
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -37,4 +37,4 @@ public sealed class AvatarClickedEventArgs : EventArgs
|
||||
/// </summary>
|
||||
/// <value>The click point.</value>
|
||||
public Vector3d ClickPoint { get; }
|
||||
}
|
||||
}
|
||||
|
@ -21,4 +21,4 @@ public sealed class AvatarJoinedEventArgs : EventArgs
|
||||
/// </summary>
|
||||
/// <value>The newly-joined avatar.</value>
|
||||
public VirtualParadiseAvatar Avatar { get; }
|
||||
}
|
||||
}
|
||||
|
@ -21,4 +21,4 @@ public sealed class AvatarLeftEventArgs : EventArgs
|
||||
/// </summary>
|
||||
/// <value>The newly-departed avatar.</value>
|
||||
public VirtualParadiseAvatar Avatar { get; }
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -20,4 +20,4 @@ public sealed class DisconnectedEventArgs : EventArgs
|
||||
/// </summary>
|
||||
/// <value>The reason for the disconnect.</value>
|
||||
public DisconnectReason Reason { get; }
|
||||
}
|
||||
}
|
||||
|
@ -19,4 +19,4 @@ public sealed class InviteRequestReceivedEventArgs : EventArgs
|
||||
/// </summary>
|
||||
/// <value>The invite request.</value>
|
||||
public InviteRequest InviteRequest { get; }
|
||||
}
|
||||
}
|
||||
|
@ -19,4 +19,4 @@ public sealed class JoinRequestReceivedEventArgs : EventArgs
|
||||
/// </summary>
|
||||
/// <value>The join request.</value>
|
||||
public JoinRequest JoinRequest { get; }
|
||||
}
|
||||
}
|
||||
|
@ -21,4 +21,4 @@ public sealed class MessageReceivedEventArgs : EventArgs
|
||||
/// </summary>
|
||||
/// <value>The message.</value>
|
||||
public VirtualParadiseMessage Message { get; }
|
||||
}
|
||||
}
|
||||
|
@ -37,4 +37,4 @@ public sealed class ObjectBumpEventArgs : EventArgs
|
||||
/// </summary>
|
||||
/// <value>The bump phase.</value>
|
||||
public BumpPhase Phase { get; }
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ public sealed class ObjectChangedEventArgs : EventArgs
|
||||
/// previously have the object cached.
|
||||
/// </value>
|
||||
public VirtualParadiseObject ObjectBefore { get; }
|
||||
}
|
||||
}
|
||||
|
@ -40,4 +40,4 @@ public sealed class ObjectClickedEventArgs : EventArgs
|
||||
/// </summary>
|
||||
/// <value>The clicked object.</value>
|
||||
public VirtualParadiseObject Object { get; }
|
||||
}
|
||||
}
|
||||
|
@ -29,4 +29,4 @@ public sealed class ObjectCreatedEventArgs : EventArgs
|
||||
/// </summary>
|
||||
/// <value>The object which was created.</value>
|
||||
public VirtualParadiseObject Object { get; }
|
||||
}
|
||||
}
|
||||
|
@ -46,4 +46,4 @@ public sealed class ObjectDeletedEventArgs : EventArgs
|
||||
/// </remarks>
|
||||
/// <seealso cref="Object" />
|
||||
public int ObjectId { get; }
|
||||
}
|
||||
}
|
||||
|
@ -29,4 +29,4 @@ public sealed class TeleportedEventArgs : EventArgs
|
||||
/// </summary>
|
||||
/// <value>The target location of the teleport.</value>
|
||||
public Location Location { get; }
|
||||
}
|
||||
}
|
||||
|
@ -37,4 +37,4 @@ public sealed class UriReceivedEventArgs : EventArgs
|
||||
/// </summary>
|
||||
/// <value>The received URI.</value>
|
||||
public Uri Uri { get; }
|
||||
}
|
||||
}
|
||||
|
@ -22,4 +22,4 @@ public sealed class VersionMismatchException : Exception
|
||||
: base(message, innerException)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,4 +31,4 @@ internal static class ColorExtensions
|
||||
(r, g, b) = color;
|
||||
a = color.A;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -33,4 +33,4 @@ public static class VectorExtensions
|
||||
z = vector.Z;
|
||||
w = vector.W;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -11,4 +11,4 @@ public enum FogMode
|
||||
Exponential = Exp,
|
||||
Exp2,
|
||||
Exponential2 = Exp2
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -40,4 +40,4 @@ internal enum FloatAttribute
|
||||
InviteZ,
|
||||
InviteYaw,
|
||||
InvitePitch
|
||||
}
|
||||
}
|
||||
|
@ -46,4 +46,4 @@ internal enum IntegerAttribute
|
||||
InviteId,
|
||||
InviteUserId,
|
||||
WorldSize
|
||||
}
|
||||
}
|
||||
|
@ -25,4 +25,4 @@ internal enum StringAttribute
|
||||
ApplicationVersion,
|
||||
AvatarApplicationName,
|
||||
AvatarApplicationVersion
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -27,4 +27,4 @@ internal enum NativeEvent
|
||||
TerrainNodeChanged,
|
||||
Join,
|
||||
Invite
|
||||
}
|
||||
}
|
||||
|
@ -3,4 +3,4 @@
|
||||
namespace VpSharp.Internal;
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
internal delegate void NativeEventHandler(nint sender);
|
||||
internal delegate void NativeEventHandler(nint sender);
|
||||
|
@ -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);
|
||||
|
@ -3,4 +3,4 @@
|
||||
namespace VpSharp.Internal;
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
internal delegate void SocketDestroyFunction(nint socket);
|
||||
internal delegate void SocketDestroyFunction(nint socket);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,4 +27,4 @@ internal sealed class HexToColorConverter : ValueConverter<Color>
|
||||
{
|
||||
writer.Write($"{value.R:X2}{value.G:X2}{value.B:X2}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -24,4 +24,4 @@ internal sealed class IntToBoolConverter : ValueConverter<bool>
|
||||
{
|
||||
writer.Write(value ? 1 : 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -15,4 +15,4 @@ internal sealed class IntToEnumConverter<T> : ValueConverter<T>
|
||||
{
|
||||
writer.Write(Convert.ToInt32(value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -24,4 +24,4 @@ internal sealed class MillisecondToTimeSpanConverter : ValueConverter<TimeSpan>
|
||||
{
|
||||
writer.Write(value.TotalMilliseconds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -17,4 +17,4 @@ internal sealed class UriConverter : ValueConverter<Uri>
|
||||
writer.Write(value.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -19,4 +19,4 @@ public enum InviteResponse
|
||||
/// The invite request timed out.
|
||||
/// </summary>
|
||||
TimeOut
|
||||
}
|
||||
}
|
||||
|
@ -19,4 +19,4 @@ public enum JoinResponse
|
||||
/// The join request timed out.
|
||||
/// </summary>
|
||||
TimeOut
|
||||
}
|
||||
}
|
||||
|
@ -27,4 +27,4 @@ public readonly struct JoinResult
|
||||
{
|
||||
return result.Response == JoinResponse.Accepted;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,4 +5,4 @@ internal enum NetworkReturnCode
|
||||
Success = 0,
|
||||
ConnectionError = -1,
|
||||
WouldBlock = -2
|
||||
}
|
||||
}
|
||||
|
@ -11,4 +11,4 @@ internal enum ProxyType
|
||||
/// Connection uses socks 4A.
|
||||
/// </summary>
|
||||
ProxySocks4A
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user