From e90a67a8d5053e9e02348adb49dae6f58002d8e7 Mon Sep 17 00:00:00 2001
From: kmyuhkyuk <2451614940@qq.com>
Date: Tue, 11 Oct 2022 04:31:32 +0800
Subject: [PATCH] Update
---
SkinHide/Properties/AssemblyInfo.cs | 4 +-
SkinHide/SkinHide.csproj | 1 +
SkinHide/SkinHidePlugin.cs | 29 ++-
SkinHide/Utils/RefHelp.cs | 309 ++++++++++++++++++++++++++++
4 files changed, 333 insertions(+), 10 deletions(-)
create mode 100644 SkinHide/Utils/RefHelp.cs
diff --git a/SkinHide/Properties/AssemblyInfo.cs b/SkinHide/Properties/AssemblyInfo.cs
index 81251b7..5546fe6 100644
--- a/SkinHide/Properties/AssemblyInfo.cs
+++ b/SkinHide/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.2.4.0")]
-[assembly: AssemblyFileVersion("1.2.4.0")]
+[assembly: AssemblyVersion("1.2.5.0")]
+[assembly: AssemblyFileVersion("1.2.5.0")]
diff --git a/SkinHide/SkinHide.csproj b/SkinHide/SkinHide.csproj
index 17efc24..0796b49 100644
--- a/SkinHide/SkinHide.csproj
+++ b/SkinHide/SkinHide.csproj
@@ -82,6 +82,7 @@
+
diff --git a/SkinHide/SkinHidePlugin.cs b/SkinHide/SkinHidePlugin.cs
index a8c98e3..fa8c83a 100644
--- a/SkinHide/SkinHidePlugin.cs
+++ b/SkinHide/SkinHidePlugin.cs
@@ -1,26 +1,28 @@
using BepInEx;
using BepInEx.Configuration;
-using HarmonyLib;
using System.Linq;
using System.Collections.Generic;
using UnityEngine;
using EFT;
using EFT.Visual;
using SkinHide.Patches;
+using SkinHide.Utils;
namespace SkinHide
{
- [BepInPlugin("com.kmyuhkyuk.SkinHide", "kmyuhkyuk-SkinHide", "1.2.4")]
+ [BepInPlugin("com.kmyuhkyuk.SkinHide", "kmyuhkyuk-SkinHide", "1.2.5")]
public class SkinHidePlugin : BaseUnityPlugin
{
- public static PlayerBody Player;
+ internal static PlayerBody Player;
- public static PlayerBody PlayerModelView;
+ internal static PlayerBody PlayerModelView;
- public static List Bot = new List();
+ internal static List Bot = new List();
private SettingsData settingsdata = new SettingsData();
+ private ReflectionData reflectiondata = new ReflectionData();
+
public enum Part
{
All,
@@ -47,6 +49,10 @@ namespace SkinHide
new PlayerModelViewPatch().Enable();
new PlayerPatch().Enable();
+
+ reflectiondata.RefSlotViews = RefHelp.FieldRef.Create("SlotViews");
+ reflectiondata.RefSlotList = RefHelp.FieldRef