Browse Source

Commit f6fcc9d: "Hide internal constructors". Whatever benefit that might provide.

Matthew Coburn 6 years ago
parent
commit
8d57f1356b
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Source/Managed/ENet.cs

+ 4 - 4
Source/Managed/ENet.cs

@@ -122,7 +122,7 @@ namespace ENet {
 			}
 		}
 
-		public Address(ENetAddress address) {
+		internal Address(ENetAddress address) {
 			nativeAddress = address;
 		}
 
@@ -182,7 +182,7 @@ namespace ENet {
 			}
 		}
 
-		public Event(ENetEvent @event) {
+		internal Event(ENetEvent @event) {
 			nativeEvent = @event;
 		}
 
@@ -250,7 +250,7 @@ namespace ENet {
 			}
 		}
 
-		public Packet(IntPtr packet) {
+		internal Packet(IntPtr packet) {
 			nativePacket = packet;
 		}
 
@@ -649,7 +649,7 @@ namespace ENet {
 			}
 		}
 
-		public Peer(IntPtr peer) {
+		internal Peer(IntPtr peer) {
 			nativePeer = peer;
 			nativeID = nativePeer != IntPtr.Zero ? Native.enet_peer_get_id(nativePeer) : 0;
 		}