Fixed guidance for hostId

It should be `typeof(NetworkConnection)`
This commit is contained in:
MrGadget 2019-03-02 22:46:12 -05:00 committed by GitHub
parent 11a755e961
commit 24b8003b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ public class NetworkConnection : IDisposable
// this is always 0 for regular connections, -1 for local // this is always 0 for regular connections, -1 for local
// connections because it's set in the constructor and never reset. // connections because it's set in the constructor and never reset.
[Obsolete("hostId will be removed because it's not needed ever since we removed LLAPI as default. It's always 0 for regular connections and -1 for local connections. Use connection.GetType() == NetworkConnection to check if it's a regular or local connection.")] [Obsolete("hostId will be removed because it's not needed ever since we removed LLAPI as default. It's always 0 for regular connections and -1 for local connections. Use connection.GetType() == typeof(NetworkConnection) to check if it's a regular or local connection.")]
public int hostId = -1; public int hostId = -1;
public NetworkConnection(string networkAddress) public NetworkConnection(string networkAddress)