Allow mods to set default lobby options.

This commit is contained in:
Paul Chote
2013-08-04 12:03:18 +12:00
parent 8fb7ed4913
commit 40533918f3
6 changed files with 12 additions and 0 deletions

View File

@@ -106,6 +106,7 @@ namespace OpenRA.Server
lobbyInfo.GlobalSettings.Map = settings.Map;
lobbyInfo.GlobalSettings.ServerName = settings.Name;
lobbyInfo.GlobalSettings.Dedicated = settings.Dedicated;
FieldLoader.Load(lobbyInfo.GlobalSettings, modData.Manifest.LobbyDefaults);
foreach (var t in ServerTraits.WithInterface<INotifyServerStart>())
t.ServerStarted(this);