ActorInitializer, in preparation for next change (bob)
This commit is contained in:
@@ -23,12 +23,10 @@ using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA
|
||||
{
|
||||
class CarpetBombInfo : ITraitInfo
|
||||
class CarpetBombInfo : TraitInfo<CarpetBomb>
|
||||
{
|
||||
public readonly string Weapon = null;
|
||||
public readonly int Range = 0;
|
||||
|
||||
public object Create(Actor self) { return new CarpetBomb(self); }
|
||||
}
|
||||
|
||||
class CarpetBomb : ITick // todo: maybe integrate this better with the normal weapons system?
|
||||
@@ -36,8 +34,6 @@ namespace OpenRA.Mods.RA
|
||||
int2 Target;
|
||||
int dropDelay;
|
||||
|
||||
public CarpetBomb(Actor self) { }
|
||||
|
||||
public void SetTarget(int2 targetCell) { Target = targetCell; }
|
||||
|
||||
public void Tick(Actor self)
|
||||
|
||||
Reference in New Issue
Block a user