Updated for client version 0.13.1.3.25206

This commit is contained in:
IgorEisberg 2023-07-31 19:57:13 +03:00
parent 302173daff
commit d91be0d666
18 changed files with 28 additions and 28 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -4,13 +4,13 @@ using EFT.UI;
using System.Linq;
using System.Reflection;
using DynamicInteraction = GClass2654;
using ItemContext = GClass2466;
using ItemInfoInteractions = GClass2655<EFT.InventoryLogic.EItemInfoButton>;
using DynamicInteraction = GClass2900;
using ItemContext = GClass2710;
using ItemInfoInteractions = GClass2901<EFT.InventoryLogic.EItemInfoButton>;
namespace IcyClawz.CustomInteractions
{
[BepInPlugin("com.IcyClawz.CustomInteractions", "IcyClawz.CustomInteractions", "1.1.1")]
[BepInPlugin("com.IcyClawz.CustomInteractions", "IcyClawz.CustomInteractions", "1.2.0")]
public class Plugin : BaseUnityPlugin
{
private void Awake()

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<AssemblyName>IcyClawz.ItemAttributeFix</AssemblyName>
<Version>1.0.0</Version>
<Version>1.1.0</Version>
<RootNamespace>IcyClawz.ItemAttributeFix</RootNamespace>
</PropertyGroup>

View File

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

View File

@ -8,9 +8,9 @@ using System.Linq;
using System.Reflection;
using UnityEngine;
using ILightTemplate = GInterface240;
using LightsState = GStruct143;
using ResourceCache = GClass2014;
using ILightTemplate = GInterface252;
using LightsState = GStruct154;
using ResourceCache = GClass2076;
namespace IcyClawz.ItemContextMenuExt
{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@ using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using InGameStatus = GClass1756;
using InGameStatus = GClass1819;
namespace IcyClawz.MagazineInspector
{

View File

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

View File

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

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<AssemblyName>IcyClawz.MunitionsExpert</AssemblyName>
<Version>1.0.0</Version>
<Version>1.1.0</Version>
<RootNamespace>IcyClawz.MunitionsExpert</RootNamespace>
</PropertyGroup>

View File

@ -11,7 +11,7 @@ using UnityEngine;
namespace IcyClawz.MunitionsExpert
{
[BepInPlugin("com.IcyClawz.MunitionsExpert", "IcyClawz.MunitionsExpert", "1.0.0")]
[BepInPlugin("com.IcyClawz.MunitionsExpert", "IcyClawz.MunitionsExpert", "1.1.0")]
public class Plugin : BaseUnityPlugin
{
private void Awake()