Skip to content

Commit

Permalink
feat: adding Connection property to NetworkPlayer (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Mar 13, 2021
1 parent 550344e commit 5e1c4ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/Mirage/Runtime/INetworkPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,7 @@ public interface INetworkPlayer : IMessageHandler, IVisibilityTracker, IObjectOw
object AuthenticationData { get; set; }

void Disconnect();

IConnection Connection { get; }
}
}
2 changes: 2 additions & 0 deletions Assets/Mirage/Runtime/NetworkPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public class NetworkPlayer : INetworkPlayer
/// </summary>
public virtual EndPoint Address => connection.GetEndPointAddress();

public IConnection Connection => connection;

/// <summary>
/// The NetworkIdentity for this connection.
/// </summary>
Expand Down

0 comments on commit 5e1c4ba

Please sign in to comment.