Browse Source

Add public assigner of native address for address struct

nxrighthere 7 năm trước cách đây
mục cha
commit
94e3ab186a
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      Source/Managed/ENet.cs

+ 4 - 0
Source/Managed/ENet.cs

@@ -100,6 +100,10 @@ namespace ENet {
 			}
 		}
 
+		public Address(ENetAddress address) {
+			nativeAddress = address;
+		}
+
 		public ushort Port {
 			get {
 				return nativeAddress.port;