]> git.deb.at Git - rhonda/impostor.hazel.git/commitdiff
Fix compilation issues with Unity3D
authorIsaac Paul <izackp@gmail.com>
Sat, 26 Aug 2017 17:39:23 +0000 (13:39 -0400)
committerGitHub <noreply@github.com>
Sat, 26 Aug 2017 17:39:23 +0000 (13:39 -0400)
Auto properties initializes aren't supported in Unity3D

Hazel/Udp/UdpConnection.Fragmented.cs

index f8acb322d2afa2f46c1450241993342ddc4791fb..c72576d8ebd0f01ef5c9a6db8b33b16fdd7e7a2c 100644 (file)
@@ -10,7 +10,8 @@ namespace Hazel.Udp
         /// <summary>
         ///     The amount of data that can be put into a fragment.
         /// </summary>
-        public int FragmentSize { get; } = 65507 - 1 - 2 - 2 - 2;
+        public int FragmentSize { get { return _fragmentSize; } }
+        int _fragmentSize = 65507 - 1 - 2 - 2 - 2;
 
         /// <summary>
         ///     The last fragmented message ID that was written.