Made BlocksProjectiles upgradable
This commit is contained in:
@@ -15,6 +15,14 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
// TODO: Add functionality like a customizable Height that is compared to projectile altitude
|
||||
[Desc("This actor blocks bullets and missiles with 'Blockable' property.")]
|
||||
public class BlocksProjectilesInfo : TraitInfo<BlocksProjectiles>, IBlocksProjectilesInfo { }
|
||||
public class BlocksProjectiles : IBlocksProjectiles { }
|
||||
public class BlocksProjectilesInfo : UpgradableTraitInfo
|
||||
{
|
||||
public override object Create(ActorInitializer init) { return new BlocksProjectiles(init.Self, this); }
|
||||
}
|
||||
|
||||
public class BlocksProjectiles : UpgradableTrait<BlocksProjectilesInfo>
|
||||
{
|
||||
public BlocksProjectiles(Actor self, BlocksProjectilesInfo info)
|
||||
: base(info) { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user