mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
33 lines
756 B
C#
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|