Render integrated muzzle flashes as their own tint-ignoring animations.

This commit is contained in:
Paul Chote
2021-02-05 22:16:31 +00:00
committed by reaperrr
parent 594e5b80d7
commit 5832ec76d4
13 changed files with 215 additions and 26 deletions

View File

@@ -74,7 +74,7 @@ namespace OpenRA.Mods.Common.Traits.Render
bool dirty;
string idleSequence;
int idleDelay;
AnimationState state;
protected AnimationState state;
IRenderInfantrySequenceModifier rsm;
bool IsModifyingSequence => rsm != null && rsm.IsModifyingSequence;
@@ -135,7 +135,7 @@ namespace OpenRA.Mods.Common.Traits.Render
}
}
void Attacking(Actor self, Armament a, Barrel barrel)
protected virtual void Attacking(Actor self, Armament a, Barrel barrel)
{
var info = GetDisplayInfo();
var sequence = info.DefaultAttackSequence;
@@ -213,7 +213,7 @@ namespace OpenRA.Mods.Common.Traits.Render
}
}
enum AnimationState
protected enum AnimationState
{
Idle,
Attacking,