Prepare short game code for trait-defined lobby options.

This commit is contained in:
Paul Chote
2016-04-24 15:35:37 +01:00
parent e3bc73a168
commit 0a7c80ef6e
2 changed files with 11 additions and 2 deletions

View File

@@ -39,5 +39,13 @@ namespace OpenRA.Mods.Common.Traits
public readonly bool DifficultyLocked = false;
}
public class MapOptions { }
public class MapOptions : INotifyCreated
{
public bool ShortGame { get; private set; }
void INotifyCreated.Created(Actor self)
{
ShortGame = self.World.LobbyInfo.GlobalSettings.ShortGame;
}
}
}