Updated for client version 0.13.5.3.26535

This commit is contained in:
IgorEisberg 2023-10-15 13:39:51 +03:00
parent 3f0d802beb
commit 6dcd86377a
13 changed files with 21 additions and 21 deletions

View File

@ -10,7 +10,7 @@ namespace IcyClawz.CustomInteractions
public static void Patch(ref AssemblyDefinition assembly) public static void Patch(ref AssemblyDefinition assembly)
{ {
var type = assembly.MainModule.GetType("GClass2815"); // DynamicInteraction var type = assembly.MainModule.GetType("GClass2816"); // DynamicInteraction
if (type != null) if (type != null)
{ {
type.IsSealed = false; type.IsSealed = false;

View File

@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net472</TargetFramework> <TargetFramework>net472</TargetFramework>
<AssemblyName>IcyClawz.CustomInteractions.Prepatch</AssemblyName> <AssemblyName>IcyClawz.CustomInteractions.Prepatch</AssemblyName>
<Version>1.3.0</Version> <Version>1.3.1</Version>
<RootNamespace>IcyClawz.CustomInteractions</RootNamespace> <RootNamespace>IcyClawz.CustomInteractions</RootNamespace>
</PropertyGroup> </PropertyGroup>

View File

@ -8,8 +8,8 @@ using System.Linq;
using System.Reflection; using System.Reflection;
using UnityEngine; using UnityEngine;
using DynamicInteraction = GClass2815; using DynamicInteraction = GClass2816;
using EmptyInteractions = GClass2816<System.Enum>; using EmptyInteractions = GClass2817<System.Enum>;
namespace IcyClawz.CustomInteractions namespace IcyClawz.CustomInteractions
{ {
@ -110,14 +110,14 @@ namespace IcyClawz.CustomInteractions
internal static class AbstractInteractionsExtensions internal static class AbstractInteractionsExtensions
{ {
private static Dictionary<string, DynamicInteraction> GetDynamicInteractions<T>(this GClass2816<T> instance) where T : Enum => private static Dictionary<string, DynamicInteraction> GetDynamicInteractions<T>(this GClass2817<T> instance) where T : Enum =>
typeof(GClass2816<T>).GetField("dictionary_1", BindingFlags.NonPublic | BindingFlags.Instance) typeof(GClass2817<T>).GetField("dictionary_1", BindingFlags.NonPublic | BindingFlags.Instance)
.GetValue(instance) as Dictionary<string, DynamicInteraction>; .GetValue(instance) as Dictionary<string, DynamicInteraction>;
public static void AddCustomInteraction<T>(this GClass2816<T> instance, CustomInteraction customInteraction) where T : Enum => public static void AddCustomInteraction<T>(this GClass2817<T> instance, CustomInteraction customInteraction) where T : Enum =>
instance.GetDynamicInteractions()[customInteraction.Impl.Key] = customInteraction.Impl; instance.GetDynamicInteractions()[customInteraction.Impl.Key] = customInteraction.Impl;
public static void RemoveCustomInteraction<T>(this GClass2816<T> instance, CustomInteraction customInteraction) where T : Enum => public static void RemoveCustomInteraction<T>(this GClass2817<T> instance, CustomInteraction customInteraction) where T : Enum =>
instance.GetDynamicInteractions().Remove(customInteraction.Impl.Key); instance.GetDynamicInteractions().Remove(customInteraction.Impl.Key);
} }

View File

@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net472</TargetFramework> <TargetFramework>net472</TargetFramework>
<AssemblyName>IcyClawz.CustomInteractions</AssemblyName> <AssemblyName>IcyClawz.CustomInteractions</AssemblyName>
<Version>1.3.0</Version> <Version>1.3.1</Version>
<RootNamespace>IcyClawz.CustomInteractions</RootNamespace> <RootNamespace>IcyClawz.CustomInteractions</RootNamespace>
</PropertyGroup> </PropertyGroup>

View File

@ -4,13 +4,13 @@ using EFT.UI;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
using DynamicInteraction = GClass2815; using DynamicInteraction = GClass2816;
using ItemContext = GClass2622; using ItemContext = GClass2623;
using ItemInfoInteractions = GClass2816<EFT.InventoryLogic.EItemInfoButton>; using ItemInfoInteractions = GClass2817<EFT.InventoryLogic.EItemInfoButton>;
namespace IcyClawz.CustomInteractions namespace IcyClawz.CustomInteractions
{ {
[BepInPlugin("com.IcyClawz.CustomInteractions", "IcyClawz.CustomInteractions", "1.3.0")] [BepInPlugin("com.IcyClawz.CustomInteractions", "IcyClawz.CustomInteractions", "1.3.1")]
public class Plugin : BaseUnityPlugin public class Plugin : BaseUnityPlugin
{ {
private void Awake() private void Awake()

View File

@ -10,7 +10,7 @@ using UnityEngine;
using ILightTemplate = GInterface246; using ILightTemplate = GInterface246;
using LightsState = GStruct155; using LightsState = GStruct155;
using ResourceCache = GClass1976; using ResourceCache = GClass1977;
namespace IcyClawz.ItemContextMenuExt namespace IcyClawz.ItemContextMenuExt
{ {

View File

@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net472</TargetFramework> <TargetFramework>net472</TargetFramework>
<AssemblyName>IcyClawz.ItemContextMenuExt</AssemblyName> <AssemblyName>IcyClawz.ItemContextMenuExt</AssemblyName>
<Version>1.2.0</Version> <Version>1.2.1</Version>
<RootNamespace>IcyClawz.ItemContextMenuExt</RootNamespace> <RootNamespace>IcyClawz.ItemContextMenuExt</RootNamespace>
</PropertyGroup> </PropertyGroup>

View File

@ -3,7 +3,7 @@ using IcyClawz.CustomInteractions;
namespace IcyClawz.ItemContextMenuExt namespace IcyClawz.ItemContextMenuExt
{ {
[BepInPlugin("com.IcyClawz.ItemContextMenuExt", "IcyClawz.ItemContextMenuExt", "1.2.0")] [BepInPlugin("com.IcyClawz.ItemContextMenuExt", "IcyClawz.ItemContextMenuExt", "1.2.1")]
public class Plugin : BaseUnityPlugin public class Plugin : BaseUnityPlugin
{ {
private void Awake() private void Awake()

View File

@ -8,7 +8,7 @@ using System.Linq;
using System.Reflection; using System.Reflection;
using UnityEngine; using UnityEngine;
using CurrencyUtil = GClass2333; using CurrencyUtil = GClass2334;
namespace IcyClawz.ItemSellPrice namespace IcyClawz.ItemSellPrice
{ {

View File

@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net472</TargetFramework> <TargetFramework>net472</TargetFramework>
<AssemblyName>IcyClawz.ItemSellPrice</AssemblyName> <AssemblyName>IcyClawz.ItemSellPrice</AssemblyName>
<Version>1.2.0</Version> <Version>1.2.1</Version>
<RootNamespace>IcyClawz.ItemSellPrice</RootNamespace> <RootNamespace>IcyClawz.ItemSellPrice</RootNamespace>
</PropertyGroup> </PropertyGroup>

View File

@ -5,7 +5,7 @@ using System.Reflection;
namespace IcyClawz.ItemSellPrice namespace IcyClawz.ItemSellPrice
{ {
[BepInPlugin("com.IcyClawz.ItemSellPrice", "IcyClawz.ItemSellPrice", "1.2.0")] [BepInPlugin("com.IcyClawz.ItemSellPrice", "IcyClawz.ItemSellPrice", "1.2.1")]
public class Plugin : BaseUnityPlugin public class Plugin : BaseUnityPlugin
{ {
private void Awake() private void Awake()

View File

@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net472</TargetFramework> <TargetFramework>net472</TargetFramework>
<AssemblyName>IcyClawz.MagazineInspector</AssemblyName> <AssemblyName>IcyClawz.MagazineInspector</AssemblyName>
<Version>1.2.0</Version> <Version>1.2.1</Version>
<RootNamespace>IcyClawz.MagazineInspector</RootNamespace> <RootNamespace>IcyClawz.MagazineInspector</RootNamespace>
</PropertyGroup> </PropertyGroup>

View File

@ -4,7 +4,7 @@ using System.Reflection;
namespace IcyClawz.MagazineInspector namespace IcyClawz.MagazineInspector
{ {
[BepInPlugin("com.IcyClawz.MagazineInspector", "IcyClawz.MagazineInspector", "1.2.0")] [BepInPlugin("com.IcyClawz.MagazineInspector", "IcyClawz.MagazineInspector", "1.2.1")]
public class Plugin : BaseUnityPlugin public class Plugin : BaseUnityPlugin
{ {
private void Awake() private void Awake()