First commit

This commit is contained in:
AbstractConcept 2022-09-09 20:22:08 -05:00
parent ddda70a258
commit 8e6918ae70
95 changed files with 20766 additions and 1 deletions

View file

@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HarmonyLib;
using Rimworld_Animations;
using Verse;
namespace Rimworld_Animations_Patch
{
public class ActorAnimationData
{
public AnimationDef animationDef = null;
public int actorID = 0;
public int currentStage = 0;
public int stageTicks = 0;
public Rot4 actorFacing = Rot4.South;
public ActorAnimationData(AnimationDef animationDef, int actorID, int currentStage, int stageTicks, Rot4 actorFacing)
{
this.animationDef = animationDef;
this.actorID = actorID;
this.currentStage = currentStage;
this.stageTicks = stageTicks;
this.actorFacing = actorFacing;
}
}
}

View file

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Verse;
using Rimworld_Animations;
namespace Rimworld_Animations_Patch
{
public class HandAnimationDef : Def
{
public string animationDefName;
public List<HandAnimationData> handAnimationData = new List<HandAnimationData>();
}
public class HandAnimationData
{
public int stageID = 0;
public int actorID = 0;
public int touchingActorID = -1;
public string targetBodyPart;
public string bodySide = "";
public List<string> targetBodyParts = new List<string>();
public string motion;
public int cycleTime = 0;
public bool mirror = false;
}
}

View file

@ -0,0 +1,60 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;
using RimWorld;
namespace Rimworld_Animations_Patch
{
public class RimNudeData : IExposable
{
public string thingDef = "Invalid";
public bool coversGroin = false;
public bool coversBelly = false;
public bool coversChest = false;
public bool sexWear = false;
public RimNudeData() { }
public RimNudeData(ThingDef thingDef)
{
this.thingDef = thingDef.defName;
if (thingDef.apparel.bodyPartGroups.Contains(BodyPartGroupDefOf.Legs) || thingDef.apparel.bodyPartGroups.Contains(PatchBodyPartGroupDefOf.GenitalsBPG))
{ coversGroin = true; }
if (thingDef.apparel.bodyPartGroups.Contains(BodyPartGroupDefOf.Torso))
{ coversBelly = true; }
if (thingDef.apparel.bodyPartGroups.Contains(BodyPartGroupDefOf.Torso) || thingDef.apparel.bodyPartGroups.Contains(PatchBodyPartGroupDefOf.ChestBPG))
{ coversChest = true; }
this.sexWear = false;
}
public RimNudeData(string thingDef, bool coversGroin, bool coversBelly, bool coversChest, bool sexWear)
{
this.thingDef = thingDef;
this.coversGroin = coversGroin;
this.coversBelly = coversBelly;
this.coversChest = coversChest;
this.sexWear = sexWear;
}
public bool EquivalentTo(RimNudeData other)
{
return (thingDef == other.thingDef);
}
public void ExposeData()
{
Scribe_Values.Look(ref this.thingDef, "thingDef", "Invalid");
Scribe_Values.Look(ref this.coversGroin, "coversGroin", false);
Scribe_Values.Look(ref this.coversBelly, "coversBelly", false);
Scribe_Values.Look(ref this.coversChest, "coversChest", false);
Scribe_Values.Look(ref this.sexWear, "sexWear", false);
}
}
}