Info -> info.

This commit is contained in:
Paul Chote
2014-12-26 10:55:05 +13:00
parent 673ebba135
commit 805039530d
4 changed files with 14 additions and 14 deletions

View File

@@ -26,15 +26,15 @@ namespace OpenRA.Mods.Common.Traits
class Burns : ITick, ISync
{
[Sync] int ticks;
BurnsInfo Info;
BurnsInfo info;
public Burns(Actor self, BurnsInfo info)
{
Info = info;
this.info = info;
var anim = new Animation(self.World, "fire", () => 0);
anim.IsDecoration = true;
anim.PlayRepeating(Info.Anim);
anim.PlayRepeating(info.Anim);
self.Trait<RenderSprites>().Add("fire", anim);
}
@@ -42,8 +42,8 @@ namespace OpenRA.Mods.Common.Traits
{
if (--ticks <= 0)
{
self.InflictDamage(self, Info.Damage, null);
ticks = Info.Interval;
self.InflictDamage(self, info.Damage, null);
ticks = info.Interval;
}
}
}

View File

@@ -107,8 +107,8 @@ namespace OpenRA.Mods.Common.Traits
public static string GetImage(ActorInfo actor)
{
var Info = actor.Traits.Get<RenderSpritesInfo>();
return (Info.Image ?? actor.Name).ToLowerInvariant();
var info = actor.Traits.Get<RenderSpritesInfo>();
return (info.Image ?? actor.Name).ToLowerInvariant();
}
public string GetImage(Actor self)

View File

@@ -20,16 +20,16 @@ namespace OpenRA.Mods.Common.Traits
public class ShakeOnDeath : INotifyKilled
{
readonly ShakeOnDeathInfo Info;
readonly ShakeOnDeathInfo info;
public ShakeOnDeath(ShakeOnDeathInfo info)
{
this.Info = info;
this.info = info;
}
public void Killed(Actor self, AttackInfo e)
{
self.World.WorldActor.Trait<ScreenShaker>().AddEffect(Info.Intensity, self.CenterPosition, 1);
self.World.WorldActor.Trait<ScreenShaker>().AddEffect(info.Intensity, self.CenterPosition, 1);
}
}
}

View File

@@ -22,19 +22,19 @@ namespace OpenRA.Mods.Common.Traits
public class SoundOnDamageTransition : INotifyDamageStateChanged
{
readonly SoundOnDamageTransitionInfo Info;
readonly SoundOnDamageTransitionInfo info;
public SoundOnDamageTransition(SoundOnDamageTransitionInfo info)
{
Info = info;
this.info = info;
}
public void DamageStateChanged(Actor self, AttackInfo e)
{
if (e.DamageState == DamageState.Dead)
Sound.Play(Info.DestroyedSound, self.CenterPosition);
Sound.Play(info.DestroyedSound, self.CenterPosition);
else if (e.DamageState >= DamageState.Heavy && e.PreviousDamageState < DamageState.Heavy)
Sound.Play(Info.DamagedSound, self.CenterPosition);
Sound.Play(info.DamagedSound, self.CenterPosition);
}
}
}