Decompiled source of BigStyle v1.0.0

BigStyle/BigStyle.dll

Decompiled 8 hours ago
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Core.Logging.Interpolation;
using BepInEx.Logging;
using BepInEx.Unity.IL2CPP;
using BigFit;
using Microsoft.CodeAnalysis;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("BigStyle")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+6c33c99b2b5b1ff73854da0a7b0ce4e28433fe97")]
[assembly: AssemblyProduct("BigStyle")]
[assembly: AssemblyTitle("BigStyle")]
[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.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace BigStyle
{
	[BepInPlugin("owomay.bigstyle", "Big Style", "1.0.0")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class Plugin : BasePlugin
	{
		public const string Guid = "owomay.bigstyle";

		public const string Name = "Big Style";

		public const string Version = "1.0.0";

		internal static ManualLogSource Logger;

		public override void Load()
		{
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0045: Unknown result type (might be due to invalid IL or missing references)
			//IL_0050: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Expected O, but got Unknown
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_006b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0076: Unknown result type (might be due to invalid IL or missing references)
			//IL_0081: Unknown result type (might be due to invalid IL or missing references)
			//IL_008c: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a2: Expected O, but got Unknown
			//IL_00a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bd: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00de: Expected O, but got Unknown
			//IL_00de: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0104: Unknown result type (might be due to invalid IL or missing references)
			//IL_011a: Expected O, but got Unknown
			//IL_011a: Unknown result type (might be due to invalid IL or missing references)
			//IL_011f: Unknown result type (might be due to invalid IL or missing references)
			//IL_012a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0135: Unknown result type (might be due to invalid IL or missing references)
			//IL_0140: Unknown result type (might be due to invalid IL or missing references)
			//IL_0156: Expected O, but got Unknown
			//IL_0156: Unknown result type (might be due to invalid IL or missing references)
			//IL_015b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0166: Unknown result type (might be due to invalid IL or missing references)
			//IL_0171: Unknown result type (might be due to invalid IL or missing references)
			//IL_017c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0192: Expected O, but got Unknown
			//IL_0192: Unknown result type (might be due to invalid IL or missing references)
			//IL_0197: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ad: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ce: Expected O, but got Unknown
			//IL_01d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_01dd: Expected O, but got Unknown
			Logger = ((BasePlugin)this).Log;
			AssetBundle val = NativeBundle.LoadFromFile(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "bigstyle"));
			Plugin.RegisterCosmetic(new Cosmetic
			{
				name = "Top Hat",
				id = "bigstyle.tophat",
				parent = "head",
				model = NativeBundle.LoadGameObject(val, "assets/tophat.fbx")
			});
			Plugin.RegisterCosmetic(new Cosmetic
			{
				name = "Cloak",
				id = "bigstyle.cloak",
				parent = "torso",
				model = NativeBundle.LoadGameObject(val, "assets/cloak.fbx")
			});
			Plugin.RegisterCosmetic(new Cosmetic
			{
				name = "Alien Antennae",
				id = "bigstyle.antennae",
				parent = "head",
				model = NativeBundle.LoadGameObject(val, "assets/antennae.fbx")
			});
			Plugin.RegisterCosmetic(new Cosmetic
			{
				name = "Monocle",
				id = "bigstyle.monocle",
				parent = "head",
				model = NativeBundle.LoadGameObject(val, "assets/monocle.fbx")
			});
			Plugin.RegisterCosmetic(new Cosmetic
			{
				name = "Propeller Cap",
				id = "bigstyle.prophat",
				parent = "head",
				model = NativeBundle.LoadGameObject(val, "assets/propellercap.fbx")
			});
			Plugin.RegisterCosmetic(new Cosmetic
			{
				name = "Bowtie",
				id = "bigstyle.bowtie",
				parent = "torso",
				model = NativeBundle.LoadGameObject(val, "assets/bowtie.fbx")
			});
			Plugin.RegisterCosmetic(new Cosmetic
			{
				name = "Glasses",
				id = "bigstyle.glasses",
				parent = "head",
				model = NativeBundle.LoadGameObject(val, "assets/glasses.fbx")
			});
			ManualLogSource logger = Logger;
			bool flag = default(bool);
			BepInExInfoLogInterpolatedStringHandler val2 = new BepInExInfoLogInterpolatedStringHandler(7, 1, ref flag);
			if (flag)
			{
				((BepInExLogInterpolatedStringHandler)val2).AppendFormatted<string>("Big Style");
				((BepInExLogInterpolatedStringHandler)val2).AppendLiteral(" loaded");
			}
			logger.LogInfo(val2);
		}
	}
}