Fix variable ordering.
This commit is contained in:
@@ -25,19 +25,19 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
class LightPaletteRotator : ITick, IPaletteModifier
|
||||
{
|
||||
float t = 0;
|
||||
public void Tick(Actor self)
|
||||
{
|
||||
t += .5f;
|
||||
}
|
||||
|
||||
readonly LightPaletteRotatorInfo info;
|
||||
float t = 0;
|
||||
|
||||
public LightPaletteRotator(LightPaletteRotatorInfo info)
|
||||
{
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
public void Tick(Actor self)
|
||||
{
|
||||
t += .5f;
|
||||
}
|
||||
|
||||
public void AdjustPalette(IReadOnlyDictionary<string, MutablePalette> palettes)
|
||||
{
|
||||
foreach (var pal in palettes)
|
||||
|
||||
@@ -25,10 +25,9 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
class WaterPaletteRotation : ITick, IPaletteModifier
|
||||
{
|
||||
float t = 0;
|
||||
|
||||
readonly WaterPaletteRotationInfo info;
|
||||
readonly World world;
|
||||
float t = 0;
|
||||
|
||||
public WaterPaletteRotation(World world, WaterPaletteRotationInfo info)
|
||||
{
|
||||
|
||||
@@ -88,6 +88,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
}
|
||||
}
|
||||
|
||||
readonly RenderSpritesInfo info;
|
||||
string cachedImage = null;
|
||||
Dictionary<string, AnimationWrapper> anims = new Dictionary<string, AnimationWrapper>();
|
||||
|
||||
public static Func<int> MakeFacingFunc(Actor self)
|
||||
@@ -97,9 +99,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
return () => facing.Facing;
|
||||
}
|
||||
|
||||
readonly RenderSpritesInfo info;
|
||||
string cachedImage = null;
|
||||
|
||||
public RenderSprites(Actor self)
|
||||
{
|
||||
info = self.Info.Traits.Get<RenderSpritesInfo>();
|
||||
|
||||
Reference in New Issue
Block a user