add enumeration of bots

This commit is contained in:
Chris Forbes
2010-12-21 18:13:38 +13:00
parent 7ef884532d
commit 29fbeb2c5d
4 changed files with 16 additions and 5 deletions

View File

@@ -33,8 +33,18 @@ using XRandom = OpenRA.Thirdparty.Random;
namespace OpenRA.Mods.RA
{
class HackyAIInfo : ITraitInfo
interface IBotInfo
{
string Name { get; }
}
class HackyAIInfo : IBotInfo, ITraitInfo
{
[FieldLoader.Load]
public readonly string Name;
string IBotInfo.Name { get { return this.Name; } }
[FieldLoader.LoadUsing("LoadUnits")]
public readonly Dictionary<string, float> UnitsToBuild = null;