Rework IConnection implementations:
* EchoConnection is now a trivial buffer that stores and repeats orders directly without serialization. * NetworkConnection no longer subclasses EchoConnection, and now also caches local orders without serialization. * Replay recording was moved to NetworkConnection (it is never used on EchoConnection).
This commit is contained in:
@@ -289,10 +289,8 @@ namespace OpenRA
|
||||
|
||||
gameInfo.DisabledSpawnPoints = OrderManager.LobbyInfo.DisabledSpawnPoints;
|
||||
|
||||
var rc = (OrderManager.Connection as EchoConnection)?.Recorder;
|
||||
|
||||
if (rc != null)
|
||||
rc.Metadata = new ReplayMetadata(gameInfo);
|
||||
if (OrderManager.Connection is NetworkConnection nc && nc.Recorder != null)
|
||||
nc.Recorder.Metadata = new ReplayMetadata(gameInfo);
|
||||
}
|
||||
|
||||
public void SetWorldOwner(Player p)
|
||||
|
||||
Reference in New Issue
Block a user