From c66e429df1e1fbf46734dd095e46f637db8befbf Mon Sep 17 00:00:00 2001 From: NX Date: Sun, 24 Feb 2019 12:10:14 +0500 Subject: [PATCH] Add NuGet support --- ENet-CSharp.nuspec | 33 +++++++++++++++++++++++++++++++++ Source/Managed/ENet.cs | 4 ++-- Source/Native/enet.h | 6 +++--- 3 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 ENet-CSharp.nuspec diff --git a/ENet-CSharp.nuspec b/ENet-CSharp.nuspec new file mode 100644 index 0000000..3732c49 --- /dev/null +++ b/ENet-CSharp.nuspec @@ -0,0 +1,33 @@ + + + + ENet-CSharp + 2.2.0 + ENet-CSharp + Stanislav Denisov + nxrighthere + false + license\license.txt + https://github.com/nxrighthere/ENet-CSharp + Reliable UDP networking library extended for the .NET environment + + + (c) 2019 Stanislav Denisov + networking udp protocol ipv4 ipv6 gamedev + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Source/Managed/ENet.cs b/Source/Managed/ENet.cs index b9ada89..ee0f00d 100644 --- a/Source/Managed/ENet.cs +++ b/Source/Managed/ENet.cs @@ -830,7 +830,7 @@ public static class Library { public const uint timeoutLimit = 32; public const uint timeoutMinimum = 5000; public const uint timeoutMaximum = 30000; - public const uint version = (2 << 16) | (1 << 8) | (9); + public const uint version = (2 << 16) | (2 << 8) | (0); public static bool Initialize() { return Native.enet_initialize() == 0; @@ -1027,4 +1027,4 @@ internal static class Native { [DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)] internal static extern void enet_peer_reset(IntPtr peer); } -} +} \ No newline at end of file diff --git a/Source/Native/enet.h b/Source/Native/enet.h index 37380d2..0ea516a 100644 --- a/Source/Native/enet.h +++ b/Source/Native/enet.h @@ -34,8 +34,8 @@ #endif #define ENET_VERSION_MAJOR 2 -#define ENET_VERSION_MINOR 1 -#define ENET_VERSION_PATCH 9 +#define ENET_VERSION_MINOR 2 +#define ENET_VERSION_PATCH 0 #define ENET_VERSION_CREATE(major, minor, patch) (((major) << 16) | ((minor) << 8) | (patch)) #define ENET_VERSION_GET_MAJOR(version) (((version) >> 16) & 0xFF) #define ENET_VERSION_GET_MINOR(version) (((version) >> 8) & 0xFF) @@ -5053,4 +5053,4 @@ extern "C" { } #endif #endif -#endif +#endif \ No newline at end of file