-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
using System.Collections; | ||
using System.Reflection; | ||
using HarmonyLib; | ||
using LoveMachine.Core.Common; | ||
using LoveMachine.Core.Game; | ||
using UnityEngine; | ||
|
||
namespace LoveMachine.HC.DigitalCraft; | ||
|
||
public class DigitalCraftGame : GameAdapter | ||
{ | ||
private GameObject[] females; | ||
private Transform[] penises; | ||
|
||
protected override MethodInfo[] StartHMethods => | ||
new[] { AccessTools.Method("DigitalCraft.DigitalCraft,Assembly-CSharp:InitSceneAsync") }; | ||
|
||
protected override MethodInfo[] EndHMethods => new MethodInfo[] { }; | ||
|
||
protected override Dictionary<Bone, string> FemaleBoneNames => new Dictionary<Bone, string> | ||
{ | ||
{ Bone.LeftBreast, "k_f_munenipL_00" }, | ||
{ Bone.RightBreast, "k_f_munenipR_00" }, | ||
{ Bone.Vagina, "cf_n_pee" }, | ||
{ Bone.Anus, "k_f_ana_00" }, | ||
{ Bone.LeftButt, "k_f_siriL_00" }, | ||
{ Bone.RightButt, "k_f_siriR_00" }, | ||
{ Bone.Mouth, "cf_J_MouthCavity" }, | ||
{ Bone.LeftHand, "cf_j_index03_L" }, | ||
{ Bone.RightHand, "cf_j_index03_R" }, | ||
{ Bone.LeftFoot, "k_f_toeL_00" }, | ||
{ Bone.RightFoot, "k_f_toeR_00" }, | ||
}; | ||
|
||
protected override Transform PenisBase => throw new NotImplementedException(); | ||
protected override Transform[] PenisBases => penises; | ||
protected override float PenisSize => 0.07f; | ||
protected override int AnimationLayer => 0; | ||
protected override int HeroineCount => females.Length; | ||
protected override int MaxHeroineCount => 2; | ||
protected override bool IsHardSex => false; | ||
|
||
protected override Animator GetFemaleAnimator(int girlIndex) => | ||
females[girlIndex].GetComponent<Animator>(); | ||
|
||
protected override GameObject GetFemaleRoot(int girlIndex) => females[girlIndex]; | ||
|
||
protected override string GetPose(int girlIndex) => "scene"; | ||
|
||
protected override bool IsIdle(int girlIndex) => females.Length == 0 || penises.Length == 0; | ||
|
||
protected override IEnumerator UntilReady(object instance) | ||
{ | ||
yield return new WaitForSeconds(10f); | ||
females = new[] { "chaF_00", "chaF_01" } | ||
.Select(GameObject.Find) | ||
.Where(go => go != null && go.active) | ||
.Select(chara => (chara.transform.Find("BodyTop/p_cf_jm_body_bone_00") | ||
?? chara.transform.Find("BodyTop/p_cf_jm_body_bone_00(Clone)")).gameObject) | ||
.ToArray(); | ||
penises = new[] { "chaM_00", "chaM_01" } | ||
.Select(GameObject.Find) | ||
.Where(go => go != null && go.active) | ||
.Select(chara => FindDeepChildrenByPath(chara, "k_f_tamaC_00").First()) | ||
.ToArray(); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/LoveMachine.HC.DigitalCraft/LoveMachine.HC.DigitalCraft.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<OutputPath>..\bin\LoveMachine.HC.DigitalCraft\BepInEx\plugins\HC.DigitalCraft_LoveMachine\</OutputPath> | ||
<RuntimeIdentifier>none</RuntimeIdentifier> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\LoveMachine.Core.IL2CPP\LoveMachine.Core.IL2CPP.csproj" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using BepInEx; | ||
using LoveMachine.Core; | ||
using LoveMachine.Core.NonPortable; | ||
|
||
namespace LoveMachine.HC.DigitalCraft; | ||
|
||
[BepInPlugin(Globals.GUID, Globals.PluginName, Globals.Version)] | ||
internal class Plugin : LoveMachinePlugin<DigitalCraftGame> | ||
{ } |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters