Decompiled source of Maxwell v2.0.0

Maxwell.dll

Decompiled a month ago
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 BipodAThon : MonoBehaviour
{
	private void Start()
	{
	}

	private void Update()
	{
	}
}
namespace NotWolfie.Maxwell;

public class GameObjectToggleOnInteract : FVRInteractiveObject
{
	[Header("GameObjectToggleOnInteract Config")]
	public GameObject ToggleGameObject;

	public GameObject InvertedToggleGameObject;

	public GameObject InvertedToggleGameObject2;

	public GameObject InvertedToggleGameObject3;

	private bool _isToggled = false;

	public override void SimpleInteraction(FVRViveHand hand)
	{
		((FVRInteractiveObject)this).SimpleInteraction(hand);
		_isToggled = !_isToggled;
		ToggleGameObject.SetActive(_isToggled);
		InvertedToggleGameObject.SetActive(!_isToggled);
		InvertedToggleGameObject2.SetActive(!_isToggled);
		InvertedToggleGameObject3.SetActive(!_isToggled);
	}
}
[BepInPlugin("NotWolfie.Maxwell", "Maxwell", "2.0.0")]
[BepInProcess("h3vr.exe")]
[Description("Built with MeatKit")]
[BepInDependency("h3vr.otherloader", "1.3.0")]
public class MaxwellPlugin : 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(), "NotWolfie.Maxwell");
		OtherLoader.RegisterDirectLoad(BasePath, "NotWolfie.Maxwell", "", "", "maxwell", "");
	}
}