Rename WithRotor to WithSpriteRotorOverlay
This commit is contained in:
@@ -17,7 +17,7 @@ using OpenRA.Traits;
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
[Desc("Displays a helicopter rotor overlay.")]
|
||||
public class WithRotorInfo : ITraitInfo, IRenderActorPreviewSpritesInfo, Requires<RenderSpritesInfo>, Requires<BodyOrientationInfo>
|
||||
public class WithSpriteRotorOverlayInfo : ITraitInfo, IRenderActorPreviewSpritesInfo, Requires<RenderSpritesInfo>, Requires<BodyOrientationInfo>
|
||||
{
|
||||
[Desc("Sequence name to use when flying")]
|
||||
[SequenceReference] public readonly string Sequence = "rotor";
|
||||
@@ -28,7 +28,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Position relative to body")]
|
||||
public readonly WVec Offset = WVec.Zero;
|
||||
|
||||
public object Create(ActorInitializer init) { return new WithRotor(init.Self, this); }
|
||||
public object Create(ActorInitializer init) { return new WithSpriteRotorOverlay(init.Self, this); }
|
||||
|
||||
public IEnumerable<IActorPreview> RenderPreviewSprites(ActorPreviewInitializer init, RenderSpritesInfo rs, string image, int facings, PaletteReference p)
|
||||
{
|
||||
@@ -43,13 +43,13 @@ namespace OpenRA.Mods.Common.Traits
|
||||
}
|
||||
}
|
||||
|
||||
public class WithRotor : ITick
|
||||
public class WithSpriteRotorOverlay : ITick
|
||||
{
|
||||
readonly WithRotorInfo info;
|
||||
readonly WithSpriteRotorOverlayInfo info;
|
||||
readonly Animation rotorAnim;
|
||||
readonly IMove movement;
|
||||
|
||||
public WithRotor(Actor self, WithRotorInfo info)
|
||||
public WithSpriteRotorOverlay(Actor self, WithSpriteRotorOverlayInfo info)
|
||||
{
|
||||
this.info = info;
|
||||
var rs = self.Trait<RenderSprites>();
|
||||
Reference in New Issue
Block a user