using System; using System.Collections.Generic; using System.Linq; using System.Globalization; using System.IO; using System.Xml; using System.Xml.Serialization; using Verse; using Rimworld_Animations; namespace Rimworld_Animations_Patch { public class HandAnimationDef : Def { public AnimationDef animationDef; public List handAnimationData = new List(); } public class HandAnimationData { public int stageID = 0; public int actorID = 0; public int touchingActorID = -1; public string targetBodyPart; public string bodySide = ""; public List targetBodyParts = new List(); public string motion; public int cycleTime = 0; public bool mirror = false; private HandMotion _motion; public HandMotion Motion { get { if (_motion == null) { if (Type.GetType(motion) == null) { DebugMode.Message("ERROR: Hand motion " + motion + " does not exist!"); return null; } _motion = (HandMotion)Activator.CreateInstance(Type.GetType(motion)); } return _motion; } } } }