This commit is contained in:
AbstractConcept 2022-09-07 09:12:17 -05:00
parent aeceb77100
commit 8a7b542d17
11 changed files with 20 additions and 11 deletions

View File

@ -21,6 +21,6 @@ namespace Rimworld_Animations {
public BodyTypeOffset bodyTypeOffset = new BodyTypeOffset(); public BodyTypeOffset bodyTypeOffset = new BodyTypeOffset();
public Vector3 offset = new Vector2(0, 0); public Vector3 offset = new Vector2(0, 0);
public List<string> requiredGender; public List<string> requiredGender;
public List<string> tags = new List<string>();
} }
} }

View File

@ -10,9 +10,10 @@ namespace Rimworld_Animations {
public string stageName; public string stageName;
public int stageIndex; public int stageIndex;
public int playTimeTicks = 0; public int playTimeTicks = 0;
public int playTimeTicksQuick = -1;
public bool isLooping; public bool isLooping;
public List<BaseAnimationClip> animationClips; public List<BaseAnimationClip> animationClips;
public List<string> tags = new List<string>();
public void initialize() { public void initialize() {
foreach (BaseAnimationClip clip in animationClips) { foreach (BaseAnimationClip clip in animationClips) {

View File

@ -15,6 +15,6 @@ namespace Rimworld_Animations {
public abstract void buildSimpleCurves(); public abstract void buildSimpleCurves();
public string soundDef = null; //for playing sounds public string soundDef = null; //for playing sounds
public int actor; public int actor;
public List<string> tags = new List<string>();
} }
} }

View File

@ -10,5 +10,6 @@ namespace Rimworld_Animations {
public int tickDuration = 1; public int tickDuration = 1;
public float? atTick; public float? atTick;
public string soundEffect; public string soundEffect;
public List<string> tags = new List<string>();
} }
} }

View File

@ -52,6 +52,7 @@ namespace Rimworld_Animations {
public List<Pawn> actorsInCurrentAnimation; public List<Pawn> actorsInCurrentAnimation;
public bool controlGenitalAngle = false; public bool controlGenitalAngle = false;
public bool fastAnimForQuickie = false;
private AnimationDef anim; private AnimationDef anim;
private AnimationStage stage { private AnimationStage stage {
@ -155,7 +156,9 @@ namespace Rimworld_Animations {
this.actor = actor; this.actor = actor;
this.anim = anim; this.anim = anim;
this.mirror = mirror; this.mirror = mirror;
if(fastAnimForQuickie) this.fastAnimForQuickie = fastAnimForQuickie;
if (fastAnimForQuickie && anim.animationStages.Any(x => x.playTimeTicksQuick >= 0) == false)
{ {
curStage = 1; curStage = 1;
animTicks = anim.animationStages[0].playTimeTicks; animTicks = anim.animationStages[0].playTimeTicks;
@ -259,7 +262,7 @@ namespace Rimworld_Animations {
stageTicks++; stageTicks++;
if(stageTicks >= stage.playTimeTicks) { if(stageTicks >= stage.playTimeTicks || (fastAnimForQuickie && stage.playTimeTicksQuick >= 0 && stageTicks >= stage.playTimeTicksQuick)) {
curStage++; curStage++;

View File

@ -1,4 +1,4 @@
 using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
@ -11,7 +11,6 @@ namespace Rimworld_Animations {
{ {
public CompProperties_BodyAnimator() public CompProperties_BodyAnimator()
{ {
base.compClass = typeof(CompBodyAnimator); base.compClass = typeof(CompBodyAnimator);
} }
} }

View File

@ -15,6 +15,7 @@ namespace Rimworld_Animations {
public bool sounds = false; public bool sounds = false;
public List<rjw.xxx.rjwSextype> sexTypes = null; public List<rjw.xxx.rjwSextype> sexTypes = null;
public List<String> interactionDefTypes = null; public List<String> interactionDefTypes = null;
public List<string> tags = new List<string>();
public override void PostLoad() { public override void PostLoad() {
base.PostLoad(); base.PostLoad();

View File

@ -27,7 +27,6 @@ namespace Rimworld_Animations
{ {
if (i.OperandIs(AccessTools.Method(typeof(PawnUtility), "IsInvisible"))) if (i.OperandIs(AccessTools.Method(typeof(PawnUtility), "IsInvisible")))
{ {
yield return new CodeInstruction(OpCodes.Call, AccessTools.Method(typeof(PawnRenderer_RenderPawnAt_Patch), "ClearCache")); yield return new CodeInstruction(OpCodes.Call, AccessTools.Method(typeof(PawnRenderer_RenderPawnAt_Patch), "ClearCache"));
} }
else else

View File

@ -46,11 +46,11 @@
<Private>False</Private> <Private>False</Private>
</Reference> </Reference>
<Reference Include="RJW"> <Reference Include="RJW">
<HintPath>..\..\rjw\1.3\Assemblies\RJW.dll</HintPath> <HintPath>..\..\rjw-master\1.3\Assemblies\RJW.dll</HintPath>
<Private>False</Private> <Private>False</Private>
</Reference> </Reference>
<Reference Include="RJW-ToysAndMasturbation"> <Reference Include="RJW-ToysAndMasturbation">
<HintPath>..\..\rjw-toys-and-masturbation\Assemblies\RJW-ToysAndMasturbation.dll</HintPath> <HintPath>..\..\rjw-toys-and-masturbation-master\Assemblies\RJW-ToysAndMasturbation.dll</HintPath>
<Private>False</Private> <Private>False</Private>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />

View File

@ -44,7 +44,11 @@
<Private>False</Private> <Private>False</Private>
</Reference> </Reference>
<Reference Include="RJW"> <Reference Include="RJW">
<HintPath>..\rjw\1.3\Assemblies\RJW.dll</HintPath> <HintPath>..\rjw-master\1.3\Assemblies\RJW.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RJW-ToysAndMasturbation">
<HintPath>..\rjw-toys-and-masturbation-master\Assemblies\RJW-ToysAndMasturbation.dll</HintPath>
<Private>False</Private> <Private>False</Private>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />
@ -65,6 +69,7 @@
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="1.3\Source\Extensions\PawnWoundDrawerExtension.cs" />
<Compile Include="1.3\Source\Patches\RimworldPatches\HarmonyPatch_Thing.cs" /> <Compile Include="1.3\Source\Patches\RimworldPatches\HarmonyPatch_Thing.cs" />
<Compile Include="1.3\Source\Utilities\PatchOperationAddOrReplace.cs" /> <Compile Include="1.3\Source\Utilities\PatchOperationAddOrReplace.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />