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 animationStages; public List contexts; public bool canAnimationBeUsed(List actors, out int reorder) { foreach (BaseGroupAnimationContext context in contexts) { if (context.CanAnimationBeUsed(actors, out reorder)) { return true; } } reorder = 0; return false; } } }