Skip to content

Commit

Permalink
Add NuGet support
Browse files Browse the repository at this point in the history
  • Loading branch information
nxrighthere authored Feb 24, 2019
1 parent 4bef6bc commit c66e429
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 5 deletions.
33 changes: 33 additions & 0 deletions ENet-CSharp.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>ENet-CSharp</id>
<version>2.2.0</version>
<title>ENet-CSharp</title>
<authors>Stanislav Denisov</authors>
<owners>nxrighthere</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="file">license\license.txt</license>
<projectUrl>https://github.com/nxrighthere/ENet-CSharp</projectUrl>
<description>Reliable UDP networking library extended for the .NET environment</description>
<summary></summary>
<releaseNotes></releaseNotes>
<copyright>(c) 2019 Stanislav Denisov</copyright>
<tags>networking udp protocol ipv4 ipv6 gamedev</tags>
</metadata>
<files>
<file src="lib\net35\ENet-CSharp.dll" target="lib\net35\ENet-CSharp.dll" />
<file src="lib\net35\enet.dll" target="lib\net35\enet.dll" />
<file src="lib\net35\enet.dylib" target="lib\net35\enet.dylib" />
<file src="lib\net35\libenet.so" target="lib\net35\libenet.so" />
<file src="lib\netcoreapp2.0\ENet-CSharp.dll" target="lib\netcoreapp2.0\ENet-CSharp.dll" />
<file src="lib\netcoreapp2.0\enet.dll" target="lib\netcoreapp2.0\enet.dll" />
<file src="lib\netcoreapp2.0\enet.dylib" target="lib\netcoreapp2.0\enet.dylib" />
<file src="lib\netcoreapp2.0\libenet.so" target="lib\netcoreapp2.0\libenet.so" />
<file src="lib\netstandard2.0\ENet-CSharp.dll" target="lib\netstandard2.0\ENet-CSharp.dll" />
<file src="lib\netstandard2.0\enet.dll" target="lib\netstandard2.0\enet.dll" />
<file src="lib\netstandard2.0\enet.dylib" target="lib\netstandard2.0\enet.dylib" />
<file src="lib\netstandard2.0\libenet.so" target="lib\netstandard2.0\libenet.so" />
<file src="license\license.txt" target="license\license.txt" />
</files>
</package>
4 changes: 2 additions & 2 deletions Source/Managed/ENet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1027,4 +1027,4 @@ internal static class Native {
[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
internal static extern void enet_peer_reset(IntPtr peer);
}
}
}
6 changes: 3 additions & 3 deletions Source/Native/enet.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -5053,4 +5053,4 @@ extern "C" {
}
#endif
#endif
#endif
#endif

0 comments on commit c66e429

Please sign in to comment.