offset changer + fix for pawns off map

This commit is contained in:
Platinum 2020-05-29 23:10:31 -07:00
parent c13b3d793b
commit c915b10e54
11 changed files with 163 additions and 21 deletions

View file

@ -4,9 +4,10 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using Verse;
namespace Rimworld_Animations {
public class Actor {
public class Actor : IExposable {
public List<string> defNames;
public List<string> requiredGenitals;
public List<AlienRaceOffset> raceOffsets;
@ -18,5 +19,11 @@ namespace Rimworld_Animations {
public bool controlGenitalAngle = false;
public BodyTypeOffset bodyTypeOffset = new BodyTypeOffset();
public Vector3 offset = new Vector2(0, 0);
public Dictionary<string, Vector2> offsetsByDefName = new Dictionary<string, Vector2>();
public void ExposeData() {
Scribe_Collections.Look(ref offsetsByDefName, "OffsetsSetInOptions", LookMode.Value, LookMode.Value);
}
}
}