rimworld-animations/1.5/Source/GroupAnimations/GroupAnimationDef.cs

33 lines
756 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;
namespace Rimworld_Animations
{
public class GroupAnimationDef : Def
{
public int numActors;
public List<AnimationStage> animationStages;
public List<BaseGroupAnimationContext> contexts;
public bool canAnimationBeUsed(List<Pawn> actors, out int reorder)
{
foreach (BaseGroupAnimationContext context in contexts)
{
if (context.CanAnimationBeUsed(actors, out reorder))
{
return true;
}
}
reorder = 0;
return false;
}
}
}