cleaning some cruft

This commit is contained in:
Chris Forbes
2010-01-29 19:54:07 +13:00
parent 045439b666
commit 7283bc5273
2 changed files with 1 additions and 10 deletions

View File

@@ -73,8 +73,6 @@ namespace OpenRa.Traits
class SelectTarget : IOrderGenerator
{
public SelectTarget() { }
public IEnumerable<Order> Order(World world, int2 xy, MouseInput mi)
{
if (mi.Button == MouseButton.Right)
@@ -122,10 +120,7 @@ namespace OpenRa.Traits
class SelectDestination : IOrderGenerator
{
Actor self;
public SelectDestination(Actor self)
{
this.self = self;
}
public SelectDestination(Actor self) { this.self = self; }
public IEnumerable<Order> Order(World world, int2 xy, MouseInput mi)
{

View File

@@ -16,8 +16,6 @@ namespace OpenRa.Traits
{
public CrateSpawnPower(Actor self, CrateSpawnPowerInfo info) : base(self, info) { }
protected override void OnBeginCharging() {}
protected override void OnFinishCharging() {}
protected override void OnActivate()
{
Game.controller.orderGenerator = new SelectTarget();
@@ -37,8 +35,6 @@ namespace OpenRa.Traits
class SelectTarget : IOrderGenerator
{
public SelectTarget() { }
public IEnumerable<Order> Order(World world, int2 xy, MouseInput mi)
{
if (mi.Button == MouseButton.Right)