ActorInitializer, in preparation for next change (bob)
This commit is contained in:
@@ -10,7 +10,7 @@ namespace OpenRA.Mods.Cnc
|
||||
class CriticalBuildingStateInfo : ITraitInfo
|
||||
{
|
||||
public readonly int LingerTime = 20;
|
||||
public object Create(Actor self) { return new CriticalBuildingState(self, this); }
|
||||
public object Create(ActorInitializer init) { return new CriticalBuildingState(init.self, this); }
|
||||
}
|
||||
|
||||
class CriticalBuildingState : INotifyDamage
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Cnc
|
||||
{
|
||||
class IonCannonPowerInfo : SupportPowerInfo
|
||||
{
|
||||
public override object Create(Actor self) { return new IonCannonPower(self, this); }
|
||||
public override object Create(ActorInitializer init) { return new IonCannonPower(init.self, this); }
|
||||
}
|
||||
|
||||
class IonCannonPower : SupportPower, IResolveOrder
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace OpenRA.Mods.Cnc
|
||||
public readonly string Weapon = "Tiberium";
|
||||
public readonly string[] Resources = { "Tiberium" };
|
||||
|
||||
public object Create(Actor self) { return new PoisonedByTiberium(this); }
|
||||
public object Create(ActorInitializer init) { return new PoisonedByTiberium(this); }
|
||||
}
|
||||
|
||||
class PoisonedByTiberium : ITick
|
||||
|
||||
@@ -28,13 +28,11 @@ namespace OpenRA.Mods.Cnc
|
||||
{
|
||||
public class ProductionAirdropInfo : ProductionInfo
|
||||
{
|
||||
public override object Create(Actor self) { return new ProductionAirdrop(self); }
|
||||
public override object Create(ActorInitializer init) { return new ProductionAirdrop(); }
|
||||
}
|
||||
|
||||
class ProductionAirdrop : Production
|
||||
{
|
||||
public ProductionAirdrop(Actor self) : base(self) { }
|
||||
|
||||
public override bool Produce( Actor self, ActorInfo producee )
|
||||
{
|
||||
var owner = self.Owner;
|
||||
|
||||
Reference in New Issue
Block a user