Prepare MapCreeps code for trait-defined lobby options.

This commit is contained in:
Paul Chote
2016-04-24 15:34:53 +01:00
parent 7e49ae7eb0
commit c412e4e86c
3 changed files with 22 additions and 6 deletions

View File

@@ -24,5 +24,13 @@ namespace OpenRA.Mods.Common.Traits
public readonly bool Locked = false;
}
public class MapCreeps { }
public class MapCreeps : INotifyCreated
{
public bool Enabled { get; private set; }
void INotifyCreated.Created(Actor self)
{
Enabled = self.World.LobbyInfo.GlobalSettings.Creeps;
}
}
}