Decompiled source of MoreItemStyles LoxCape v1.0.0

plugins\MoreItemStyles_LoxCape.dll

Decompiled 2 months ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using Microsoft.CodeAnalysis;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyCompany("MoreItemStyles_LoxCape")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+32f7c319a7ffe3594e4defa6e09134e2909f921b")]
[assembly: AssemblyProduct("MoreItemStyles_LoxCape")]
[assembly: AssemblyTitle("MoreItemStyles_LoxCape")]
[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 MoreItemStyles.LoxCape
{
	[BepInPlugin("wheeze.valheim.moreitemstyles.loxcape", "More Item Styles - Lox Cape", "1.0.0")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class Plugin : BaseUnityPlugin
	{
		public const string PluginGuid = "wheeze.valheim.moreitemstyles.loxcape";

		public const string PluginName = "More Item Styles - Lox Cape";

		public const string PluginVersion = "1.0.0";

		private StyledItem _item;

		private void Awake()
		{
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			_item = new StyledItem("CapeLox", "Lox Cape").AddStyle("White", "#383838").AddStyle("Black", "#1A1A1A").AddStyle("Blue", "#1A2738")
				.AddStyle("Red", "#331A1A")
				.AddStyle("Green", "#1F281F")
				.AddStyle("Yellow", "#33331A");
			ItemStyles.Register(_item, ((BaseUnityPlugin)this).Config);
			((BaseUnityPlugin)this).Logger.LogInfo((object)string.Format("{0} {1} registered {2} styles for the Lox Cape.", "More Item Styles - Lox Cape", "1.0.0", _item.Styles.Count));
		}

		private void OnDestroy()
		{
			ItemStyles.Unregister(_item);
		}
	}
}