rimworld-animations/1.5/Source/Animations/AnimationOffsets/Offsets/AnimationOffset_BodyType.cs

24 lines
481 B
C#

using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using Verse;
namespace Rimworld_Animations
{
public class AnimationOffset_BodyType : BaseAnimationOffset
{
public List<BodyTypeOffset> offsets;
public override Vector3? getOffset(Pawn pawn)
{
return offsets.Find(x => x.bodyType == pawn.story.bodyType)?.offset;
}
}
}