ActorInitializer, in preparation for next change (bob)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user