mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
saving offset data fix
This commit is contained in:
parent
f22f5ac33e
commit
9786a82542
8 changed files with 63 additions and 33 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue