netplay readying cleanup

This commit is contained in:
Chris Forbes
2010-01-16 18:47:28 +13:00
parent e01f684878
commit e920ee8c92
5 changed files with 30 additions and 17 deletions

View File

@@ -16,7 +16,6 @@ namespace OpenRA.Server
public int Frame = 0;
/* client data */
public bool IsReady;
public int PlayerIndex;
public byte[] PopBytes(int n)
@@ -25,6 +24,11 @@ namespace OpenRA.Server
data.RemoveRange(0, n);
return result.ToArray();
}
/* file server state */
public int NextChunk = 0;
public int NumChunks = 0;
public Stream Stream = null;
}
enum ReceiveState { Header, Data };