Rename WithMuzzleFlash to WithMuzzleOverlay
This commit is contained in:
@@ -17,22 +17,22 @@ using OpenRA.Traits;
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
[Desc("Renders the MuzzleSequence from the Armament trait.")]
|
||||
class WithMuzzleFlashInfo : UpgradableTraitInfo, Requires<RenderSpritesInfo>, Requires<AttackBaseInfo>, Requires<ArmamentInfo>
|
||||
class WithMuzzleOverlayInfo : UpgradableTraitInfo, Requires<RenderSpritesInfo>, Requires<AttackBaseInfo>, Requires<ArmamentInfo>
|
||||
{
|
||||
[Desc("Ignore the weapon position, and always draw relative to the center of the actor")]
|
||||
public readonly bool IgnoreOffset = false;
|
||||
|
||||
public override object Create(ActorInitializer init) { return new WithMuzzleFlash(init.Self, this); }
|
||||
public override object Create(ActorInitializer init) { return new WithMuzzleOverlay(init.Self, this); }
|
||||
}
|
||||
|
||||
class WithMuzzleFlash : UpgradableTrait<WithMuzzleFlashInfo>, INotifyAttack, IRender, ITick
|
||||
class WithMuzzleOverlay : UpgradableTrait<WithMuzzleOverlayInfo>, INotifyAttack, IRender, ITick
|
||||
{
|
||||
readonly Dictionary<Barrel, bool> visible = new Dictionary<Barrel, bool>();
|
||||
readonly Dictionary<Barrel, AnimationWithOffset> anims = new Dictionary<Barrel, AnimationWithOffset>();
|
||||
readonly Func<int> getFacing;
|
||||
readonly Armament[] armaments;
|
||||
|
||||
public WithMuzzleFlash(Actor self, WithMuzzleFlashInfo info)
|
||||
public WithMuzzleOverlay(Actor self, WithMuzzleOverlayInfo info)
|
||||
: base(info)
|
||||
{
|
||||
var render = self.Trait<RenderSprites>();
|
||||
Reference in New Issue
Block a user