2022-09-13 05:36:34 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Xml;
|
|
|
|
|
using System.Xml.Serialization;
|
2022-09-16 14:18:06 +00:00
|
|
|
|
using UnityEngine;
|
2022-09-13 05:36:34 +00:00
|
|
|
|
|
|
|
|
|
namespace RimWorldAnimationStudio
|
|
|
|
|
{
|
|
|
|
|
public class PawnKeyframe : Keyframe
|
|
|
|
|
{
|
2022-09-15 05:17:44 +00:00
|
|
|
|
public float bodyAngle;
|
|
|
|
|
public float headAngle;
|
|
|
|
|
public float headBob;
|
|
|
|
|
public float bodyOffsetX;
|
|
|
|
|
public float bodyOffsetZ;
|
|
|
|
|
public float headFacing;
|
|
|
|
|
public float bodyFacing;
|
|
|
|
|
|
2022-09-13 05:36:34 +00:00
|
|
|
|
public float? genitalAngle;
|
|
|
|
|
public bool? quiver;
|
2022-09-15 05:17:44 +00:00
|
|
|
|
|
|
|
|
|
public bool ShouldSerializegenitalAngle() { return genitalAngle != null; }
|
|
|
|
|
public bool ShouldSerializequiver() { return quiver != null; }
|
2022-09-16 14:18:06 +00:00
|
|
|
|
|
|
|
|
|
[XmlIgnore] public int keyframeID;
|
|
|
|
|
|
|
|
|
|
public void GenerateKeyframeID()
|
|
|
|
|
{
|
|
|
|
|
keyframeID = Random.Range(100000, 1000000);
|
|
|
|
|
Debug.Log("Generated ID: " + keyframeID);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool HasValidKeyframeID()
|
|
|
|
|
{ return keyframeID >= 100000 && keyframeID < 1000000; }
|
2022-09-13 05:36:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|