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

@@ -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)