wire up bot creation properly in CreateMPPlayers etc

This commit is contained in:
Chris Forbes
2010-12-21 18:20:23 +13:00
parent 29fbeb2c5d
commit d320a689a2
4 changed files with 12 additions and 10 deletions

View File

@@ -33,11 +33,6 @@ using XRandom = OpenRA.Thirdparty.Random;
namespace OpenRA.Mods.RA
{
interface IBotInfo
{
string Name { get; }
}
class HackyAIInfo : IBotInfo, ITraitInfo
{
[FieldLoader.Load]
@@ -84,6 +79,7 @@ namespace OpenRA.Mods.RA
BaseBuilder[] builders;
World world { get { return p.PlayerActor.World; } }
IBotInfo IBot.Info { get { return this.Info; } }
readonly HackyAIInfo Info;
public HackyAI(HackyAIInfo Info)