provide a way to grab the laggy clients

This commit is contained in:
Chris Forbes
2011-03-12 22:55:40 +13:00
parent 606873a09e
commit 82dea40261
2 changed files with 24 additions and 7 deletions

View File

@@ -155,7 +155,19 @@ namespace OpenRA.Network
public bool IsReadyForNextFrame
{
get { return NetFrameNumber >= 1 && frameData.IsReadyForFrame( NetFrameNumber ); }
}
}
static readonly IEnumerable<Session.Client> NoClients = new Session.Client[] {};
public IEnumerable<Session.Client> GetClientsNotReadyForNextFrame
{
get
{
return NetFrameNumber >= 1
? frameData.ClientsNotReadyForFrame(NetFrameNumber)
.Select(a => LobbyInfo.ClientWithIndex(a))
: NoClients;
}
}
public void Tick()
{