Allow map slots to disallow bots

This commit is contained in:
Paul Chote
2010-10-15 18:21:26 +13:00
parent bba9c4b976
commit aa2aba1250
4 changed files with 11 additions and 34 deletions

View File

@@ -20,7 +20,7 @@ namespace OpenRA.FileFormats
public readonly IFolder Package;
// Yaml map data
public readonly string Uid;
public string Uid { get; protected set; }
[FieldLoader.Load] public bool Selectable;
[FieldLoader.Load] public string Title;
@@ -37,7 +37,8 @@ namespace OpenRA.FileFormats
[FieldLoader.Load] public int2 BottomRight;
public int Width { get { return BottomRight.X - TopLeft.X; } }
public int Height { get { return BottomRight.Y - TopLeft.Y; } }
public MapStub() {} // Hack for the editor - not used for anything important
public MapStub(IFolder package)
{
Package = package;