Decompiled source of Nightforce ATACR 7 35x Scope v1.0.1

Nightforce_ATACR_7_35x_Scope.dll

Decompiled 2 days ago
using System;
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 HarmonyLib;
using OtherLoader;
using UnityEngine;
using UnityEngine.UI;

[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 DigitalClock : MonoBehaviour
{
	private Text clockText;

	private void Start()
	{
		clockText = ((Component)this).GetComponent<Text>();
	}

	private void Update()
	{
		string text = DateTime.Now.ToString("HH:mm:ss");
		clockText.text = text;
	}
}
namespace WickedBadger.Nightforce_ATACR_7_35x_Scope;

[BepInPlugin("WickedBadger.Nightforce_ATACR_7_35x_Scope", "Nightforce_ATACR_7_35x_Scope", "1.0.1")]
[BepInProcess("h3vr.exe")]
[Description("Built with MeatKit")]
[BepInDependency("h3vr.otherloader", "1.3.0")]
public class Nightforce_ATACR_7_35x_ScopePlugin : 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(), "WickedBadger.Nightforce_ATACR_7_35x_Scope");
		OtherLoader.RegisterDirectLoad(BasePath, "WickedBadger.Nightforce_ATACR_7_35x_Scope", "", "", "h3vr.wickedbadger.nightforceatacrscope", "");
	}
}