saving offset data fix

This commit is contained in:
Platinum 2020-05-31 12:03:30 -07:00
parent f22f5ac33e
commit 9786a82542
8 changed files with 63 additions and 33 deletions

View file

@ -7,7 +7,7 @@ using UnityEngine;
using Verse;
namespace Rimworld_Animations {
public class Actor : IExposable {
public class Actor {
public List<string> defNames;
public List<string> requiredGenitals;
public List<AlienRaceOffset> raceOffsets;
@ -20,12 +20,5 @@ namespace Rimworld_Animations {
public BodyTypeOffset bodyTypeOffset = new BodyTypeOffset();
public Vector3 offset = new Vector2(0, 0);
public Dictionary<string, Vector2> offsetsByDefName = new Dictionary<string, Vector2>();
public Dictionary<string, float> rotationByDefName = new Dictionary<string, float>();
public void ExposeData() {
Scribe_Collections.Look(ref offsetsByDefName, "OffsetsSetInOptions", LookMode.Value, LookMode.Value);
Scribe_Collections.Look(ref rotationByDefName, "RotationOffsetsFromOptions", LookMode.Value, LookMode.Value);
}
}
}