lobby info hax

This commit is contained in:
Chris Forbes
2010-01-14 21:42:18 +13:00
parent 6184169408
commit 88c085c1c0
7 changed files with 178 additions and 103 deletions

View File

@@ -343,5 +343,21 @@ namespace OpenRa.Game
return Game.PathFinder.FindPath(search).Count != 0;
}
public static void SyncLobbyInfo(string data)
{
var ys = MiniYaml.FromString(data);
foreach (var y in ys)
{
int index;
if (!int.TryParse(y.Key, out index))
continue; // not a player.
var client = new Session.Client();
FieldLoader.Load(client, y.Value);
players[index].SyncFromLobby(client);
}
}
}
}