added a Game ID

closes #2570
This commit is contained in:
Matthias Mailänder
2013-10-14 21:26:22 +02:00
parent 39076c98ac
commit 353393571f

View File

@@ -138,11 +138,13 @@ namespace OpenRA.Network
public int StartingCash = 5000;
public string StartingUnitsClass = "none";
public bool AllowVersionMismatch;
public string GameUid;
}
public Session(string[] mods)
{
this.GlobalSettings.Mods = mods.ToArray();
this.GlobalSettings.GameUid = System.Guid.NewGuid().ToString();
}
public string Serialize()