24 lines
576 B
C#
24 lines
576 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 PawnRenderNodeWorker_AnimationProp : PawnRenderNodeWorker
|
|
{
|
|
public override bool CanDrawNow(PawnRenderNode node, PawnDrawParms parms)
|
|
{
|
|
if (node.AnimationWorker is AnimationWorker_KeyframesExtended propAnimator)
|
|
{
|
|
return propAnimator.visibleAtTick(node.tree.AnimationTick);
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
}
|
|
}
|