LayMine activity

This commit is contained in:
Bob
2010-01-27 12:48:46 +13:00
parent 3a99bfd06f
commit f4cc21034f
4 changed files with 30 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
using System.Linq;
using OpenRa.Traits;
using OpenRa.Mods.RA.Activities;
namespace OpenRa.Mods.RA
{
@@ -34,10 +35,7 @@ namespace OpenRa.Mods.RA
if (limitedAmmo != null)
limitedAmmo.Attacking(self);
// todo: delay a bit? (req making deploy-mine an activity)
self.World.AddFrameEndTask(
w => w.CreateActor(self.Info.Traits.Get<MinelayerInfo>().Mine, self.Location, self.Owner));
self.QueueActivity( new LayMine() );
}
}
}