move the harvest-related traits and activities into the mod dll.

This commit is contained in:
Bob
2010-04-02 23:37:32 +12:00
committed by Chris Forbes
parent 1d38825299
commit a22ec0fd81
11 changed files with 54 additions and 21 deletions

View File

@@ -18,6 +18,8 @@
*/
#endregion
using OpenRA.Mods.RA;
using OpenRA.Mods.RA.Activities;
using OpenRA.Traits;
using OpenRA.Traits.Activities;
@@ -37,7 +39,7 @@ namespace OpenRA.Mods.Cnc
}
public int2 DeliverOffset { get { return new int2(0, 2); } }
public void OnDock(Actor harv, DeliverOre dockOrder)
public void OnDock(Actor harv, DeliverResources dockOrder)
{
// Todo: need to be careful about cancellation and multiple harvs
harv.QueueActivity(new Move(self.Location + new int2(1,1), self));