Reorganize PlayerReference loading to enable upgrade rules for them.

The PlayerReference definitions are now stored
as raw MiniYamlNodes in the map.
This commit is contained in:
penev92
2015-04-19 19:55:33 +03:00
parent fe8b3d91b1
commit 2402b56da7
17 changed files with 181 additions and 117 deletions

View File

@@ -52,7 +52,10 @@ namespace OpenRA.Server
public ServerSettings Settings;
public ModData ModData;
// Managed by LobbyCommands
public Map Map;
public MapPlayers MapPlayers;
XTimer gameTimeout;
public static void SyncClientToPlayerReference(Session.Client c, PlayerReference pr)
@@ -304,7 +307,7 @@ namespace OpenRA.Server
}
if (client.Slot != null)
SyncClientToPlayerReference(client, Map.Players[client.Slot]);
SyncClientToPlayerReference(client, MapPlayers.Players[client.Slot]);
else
client.Color = HSLColor.FromRGB(255, 255, 255);