Prepare ally build adjacency code for trait-defined lobby options.
This commit is contained in:
@@ -24,5 +24,13 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public readonly bool AllyBuildRadiusLocked = false;
|
||||
}
|
||||
|
||||
public class MapBuildRadius { }
|
||||
public class MapBuildRadius : INotifyCreated
|
||||
{
|
||||
public bool AllyBuildRadiusEnabled { get; private set; }
|
||||
|
||||
void INotifyCreated.Created(Actor self)
|
||||
{
|
||||
AllyBuildRadiusEnabled = self.World.LobbyInfo.GlobalSettings.AllyBuildRadius;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user