Skip to content

Commit 6f0d8ca

Browse files
committed
Added Dictionary & List alternatives to ConnectedClients
1 parent fae38de commit 6f0d8ca

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

MLAPI/MonoBehaviours/Core/NetworkingManager.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,23 @@ public uint MyClientId
7070
/// <summary>
7171
/// Gets a list of connected clients
7272
/// </summary>
73-
public List<NetworkedClient> ConnectedClients
73+
public List<NetworkedClient> ConnectedClientsList
7474
{
7575
get
7676
{
7777
return connectedClientsList;
7878
}
7979
}
80+
/// <summary>
81+
/// Gets a dictionary of connected clients
82+
/// </summary>
83+
public Dictionary<uint, NetworkedClient> ConnectedClients
84+
{
85+
get
86+
{
87+
return connectedClients;
88+
}
89+
}
8090
internal readonly HashSet<uint> pendingClients = new HashSet<uint>();
8191
internal bool _isServer;
8292
internal bool _isClient;

0 commit comments

Comments
 (0)