Merge pull request #10304 from whinis/ReplayReworkPR

Reworking ReplayRecorderConnection to be not be a Connection
This commit is contained in:
Matthias Mailänder
2015-12-31 12:40:51 +01:00
5 changed files with 37 additions and 33 deletions

View File

@@ -52,9 +52,9 @@ namespace OpenRA
public static OrderManager JoinServer(string host, int port, string password, bool recordReplay = true)
{
IConnection connection = new NetworkConnection(host, port);
var connection = new NetworkConnection(host, port);
if (recordReplay)
connection = new ReplayRecorderConnection(connection, TimestampedFilename);
connection.StartRecording(TimestampedFilename);
var om = new OrderManager(host, port, password, connection);
JoinInner(om);