Decompiled source of Uranium v1.0.0

plugins/Uranium/Uranium.dll

Decompiled 2 hours ago
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using Microsoft.CodeAnalysis;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("Uranium")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+813754c561d3161896e65238f509084db7d8b1b4")]
[assembly: AssemblyProduct("Uranium")]
[assembly: AssemblyTitle("Uranium")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
	internal sealed class NullableAttribute : Attribute
	{
		public readonly byte[] NullableFlags;

		public NullableAttribute(byte P_0)
		{
			NullableFlags = new byte[1] { P_0 };
		}

		public NullableAttribute(byte[] P_0)
		{
			NullableFlags = P_0;
		}
	}
	[CompilerGenerated]
	[Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
	internal sealed class NullableContextAttribute : Attribute
	{
		public readonly byte Flag;

		public NullableContextAttribute(byte P_0)
		{
			Flag = P_0;
		}
	}
	[CompilerGenerated]
	[Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace Uranium
{
	[BepInPlugin("com.alma.uranium", "Uranium", "1.0.0")]
	public class Plugin : BaseUnityPlugin
	{
		private float timer;

		private int loopAmount;

		private int mainLoopAmount;

		private List<List<string>> mainList = new List<List<string>>();

		private List<string> subList = new List<string>();

		internal static ManualLogSource Logger { get; private set; }

		private void Awake()
		{
			Logger = ((BaseUnityPlugin)this).Logger;
			Logger.LogInfo((object)"Plugin com.alma.uranium is loaded!");
			((Object)((Component)this).gameObject).hideFlags = (HideFlags)4;
		}

		private void Update()
		{
			timer += Time.deltaTime;
			if (timer >= 0.5f)
			{
				loopAmount++;
				timer = 0f;
			}
			if (loopAmount >= mainLoopAmount)
			{
				mainLoopAmount++;
			}
			Uranium();
		}

		private void Uranium()
		{
			for (int i = 0; i < loopAmount; i++)
			{
				subList.Add($"Entry {i}");
			}
			for (int j = 0; j < mainLoopAmount; j++)
			{
				mainList.Add(new List<string>(subList));
			}
			subList.Clear();
			mainList.Clear();
		}
	}
	internal static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "com.alma.uranium";

		public const string PLUGIN_NAME = "Uranium";

		public const string PLUGIN_VERSION = "1.0.0";
	}
}