ActorInitializer, in preparation for next change (bob)

This commit is contained in:
Chris Forbes
2010-06-19 14:28:30 +12:00
parent 572cdc9dbf
commit db465e1fdd
106 changed files with 174 additions and 227 deletions

View File

@@ -26,7 +26,7 @@ namespace OpenRA.Mods.RA
class ArmorUpgradeCrateActionInfo : CrateActionInfo
{
public float Multiplier = 2.0f;
public override object Create(Actor self) { return new ArmorUpgradeCrateAction(self, this); }
public override object Create(ActorInitializer init) { return new ArmorUpgradeCrateAction(init.self, this); }
}
class ArmorUpgradeCrateAction : CrateAction

View File

@@ -10,7 +10,7 @@ namespace OpenRA.Mods.RA
class ExplodeCrateActionInfo : CrateActionInfo
{
public string Weapon = null;
public override object Create(Actor self) { return new ExplodeCrateAction(self, this); }
public override object Create(ActorInitializer init) { return new ExplodeCrateAction(init.self, this); }
}
class ExplodeCrateAction : CrateAction

View File

@@ -25,7 +25,7 @@ namespace OpenRA.Mods.RA
class FirepowerUpgradeCrateActionInfo : CrateActionInfo
{
public float Multiplier = 2.0f;
public override object Create(Actor self) { return new FirepowerUpgradeCrateAction(self, this); }
public override object Create(ActorInitializer init) { return new FirepowerUpgradeCrateAction(init.self, this); }
}
class FirepowerUpgradeCrateAction : CrateAction

View File

@@ -25,7 +25,7 @@ namespace OpenRA.Mods.RA
class GiveCashCrateActionInfo : CrateActionInfo
{
public int Amount = 2000;
public override object Create(Actor self) { return new GiveCashCrateAction(self, this); }
public override object Create(ActorInitializer init) { return new GiveCashCrateAction(init.self, this); }
}
class GiveCashCrateAction : CrateAction

View File

@@ -24,7 +24,7 @@ namespace OpenRA.Mods.RA
{
class HideMapCrateActionInfo : CrateActionInfo
{
public override object Create(Actor self) { return new HideMapCrateAction(self, this); }
public override object Create(ActorInitializer init) { return new HideMapCrateAction(init.self, this); }
}
class HideMapCrateAction : CrateAction

View File

@@ -25,7 +25,7 @@ namespace OpenRA.Mods.RA
class SpeedUpgradeCrateActionInfo : CrateActionInfo
{
public float Multiplier = 1.7f;
public override object Create(Actor self) { return new SpeedUpgradeCrateAction(self, this); }
public override object Create(ActorInitializer init) { return new SpeedUpgradeCrateAction(init.self, this); }
}
class SpeedUpgradeCrateAction : CrateAction

View File

@@ -26,7 +26,7 @@ namespace OpenRA.Mods.RA.Crates
class SupportPowerCrateActionInfo : CrateActionInfo
{
public string Power = null;
public override object Create(Actor self) { return new SupportPowerCrateAction(self, this); }
public override object Create(ActorInitializer init) { return new SupportPowerCrateAction(init.self, this); }
}
class SupportPowerCrateAction : CrateAction