using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using FistVR;
using HarmonyLib;
using OtherLoader;
using UnityEngine;
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.0.0")]
[module: UnverifiableCode]
public class EquipMesh : MonoBehaviour
{
public GameObject EquippedMesh;
public GameObject UnequippedMesh;
public FVRPhysicalObject item;
private void Update()
{
if (Object.op_Implicit((Object)(object)item.QuickbeltSlot))
{
EquippedMesh.SetActive(true);
UnequippedMesh.SetActive(false);
}
else
{
EquippedMesh.SetActive(false);
UnequippedMesh.SetActive(true);
}
}
}
public class MaterialProx : MonoBehaviour
{
public MeshRenderer PackMesh;
public Material OpaqueMat;
public Material FadeMat;
private void OnTriggerEnter(Collider collider)
{
if (((Component)collider).gameObject.tag == "GameController")
{
((Renderer)PackMesh).sharedMaterial = FadeMat;
}
}
private void OnTriggerExit(Collider collider)
{
if (((Component)collider).gameObject.tag == "GameController")
{
((Renderer)PackMesh).sharedMaterial = OpaqueMat;
}
}
}
namespace MommyMercy.Dannys_Backpacks;
[BepInPlugin("MommyMercy.Dannys_Backpacks", "Dannys_Backpacks", "0.1.0")]
[BepInProcess("h3vr.exe")]
[Description("Built with MeatKit")]
[BepInDependency("h3vr.otherloader", "1.3.0")]
public class Dannys_BackpacksPlugin : BaseUnityPlugin
{
private static readonly string BasePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
internal static ManualLogSource Logger;
private void Awake()
{
Logger = ((BaseUnityPlugin)this).Logger;
LoadAssets();
}
private void LoadAssets()
{
Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), "MommyMercy.Dannys_Backpacks");
OtherLoader.RegisterDirectLoad(BasePath, "MommyMercy.Dannys_Backpacks", "", "", "dannysbackpacks", "");
}
}