Decompiled source of ItemStats v0.6.0

plugins/com.github.boxofbiscuits97.ItemStats.dll

Decompiled a month ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using Peak.Afflictions;
using TMPro;
using UnityEngine;
using UnityEngine.UI;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("com.github.boxofbiscuits97.ItemStats")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("0.6.0.0")]
[assembly: AssemblyInformationalVersion("0.6.0+edb913e88742654d42a69ac2a9abd5ef990f08b1")]
[assembly: AssemblyProduct("com.github.boxofbiscuits97.ItemStats")]
[assembly: AssemblyTitle("ItemStats")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.6.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.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]
	[Microsoft.CodeAnalysis.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]
	[Microsoft.CodeAnalysis.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 BepInEx
{
	[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
	[Conditional("CodeGeneration")]
	internal sealed class BepInAutoPluginAttribute : Attribute
	{
		public BepInAutoPluginAttribute(string? id = null, string? name = null, string? version = null)
		{
		}
	}
}
namespace BepInEx.Preloader.Core.Patching
{
	[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
	[Conditional("CodeGeneration")]
	internal sealed class PatcherAutoPluginAttribute : Attribute
	{
		public PatcherAutoPluginAttribute(string? id = null, string? name = null, string? version = null)
		{
		}
	}
}
namespace ItemStats
{
	[BepInPlugin("com.github.boxofbiscuits97.ItemStats", "ItemStats", "0.6.0")]
	public class Plugin : BaseUnityPlugin
	{
		public static ConfigEntry<bool>? _showPercentageSign;

		public static ConfigEntry<int>? _fontSize;

		public const string Id = "com.github.boxofbiscuits97.ItemStats";

		internal static ManualLogSource Log { get; private set; }

		public static string Name => "ItemStats";

		public static string Version => "0.6.0";

		private void Awake()
		{
			//IL_004b: Unknown result type (might be due to invalid IL or missing references)
			//IL_005a: Expected O, but got Unknown
			//IL_0055: Unknown result type (might be due to invalid IL or missing references)
			//IL_005f: Expected O, but got Unknown
			Log = ((BaseUnityPlugin)this).Logger;
			_showPercentageSign = ((BaseUnityPlugin)this).Config.Bind<bool>("Display", "ShowPercentageSign", true, "Display stat values as a percentage out of 100 instead of number of 'ticks' out of 40.");
			_fontSize = ((BaseUnityPlugin)this).Config.Bind<int>("Display", "FontSize", 20, new ConfigDescription("Font size for item stat text.", (AcceptableValueBase)new AcceptableValueRange<int>(20, 32), Array.Empty<object>()));
			Harmony.CreateAndPatchAll(typeof(ItemStats), (string)null);
			Log.LogInfo((object)("Plugin " + Name + " is loaded!"));
		}
	}
	public static class ItemStats
	{
		private static InventoryItemUI instance = new InventoryItemUI();

		private static GameObject? templateStat;

		private static float rainbowHue = 0f;

		private static float colorLerp = -1f;

		private static int index = 0;

		public static string percentSign = "%";

		public static int unitFactor = 100;

		public static int fontSize = 20;

		[HarmonyPrefix]
		[HarmonyPatch(typeof(InventoryItemUI), "SetItem")]
		private static void SetItemPatch(InventoryItemUI __instance)
		{
			//IL_04f0: Unknown result type (might be due to invalid IL or missing references)
			//IL_04f5: Unknown result type (might be due to invalid IL or missing references)
			//IL_04f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_04fa: Invalid comparison between Unknown and I4
			//IL_0605: Unknown result type (might be due to invalid IL or missing references)
			//IL_0608: Invalid comparison between Unknown and I4
			//IL_06f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_06fc: Invalid comparison between Unknown and I4
			//IL_0549: Unknown result type (might be due to invalid IL or missing references)
			//IL_054e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0552: Unknown result type (might be due to invalid IL or missing references)
			//IL_055b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0569: Unknown result type (might be due to invalid IL or missing references)
			//IL_0570: Expected O, but got Unknown
			//IL_0577: Unknown result type (might be due to invalid IL or missing references)
			//IL_057e: Expected O, but got Unknown
			//IL_064a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0651: Unknown result type (might be due to invalid IL or missing references)
			//IL_0660: Unknown result type (might be due to invalid IL or missing references)
			//IL_0665: Unknown result type (might be due to invalid IL or missing references)
			//IL_0669: Unknown result type (might be due to invalid IL or missing references)
			//IL_0672: Unknown result type (might be due to invalid IL or missing references)
			//IL_0680: Unknown result type (might be due to invalid IL or missing references)
			//IL_0687: Expected O, but got Unknown
			instance = __instance;
			GameObject gameObject = ((Component)__instance.fuelBar.transform.parent).gameObject;
			if (__instance.isBackpack)
			{
				return;
			}
			if (Plugin._fontSize == null)
			{
				fontSize = 20;
			}
			else
			{
				fontSize = Plugin._fontSize.Value;
			}
			if (Plugin._showPercentageSign != null && !Plugin._showPercentageSign.Value)
			{
				percentSign = "";
				unitFactor = 40;
			}
			else
			{
				percentSign = "%";
				unitFactor = 100;
			}
			Initialize(out GameObject hungerIcon, out GameObject _, out TextMeshProUGUI hungerTMP);
			index = 0;
			AddNewStat(out GameObject objectIcon, out TextMeshProUGUI objectTMP, "GAME/GUIManager/Canvas_HUD/BarGroup/Bar/LayoutGroup/Weight/Icon", "weightStat", (STATUSTYPE)7);
			AddNewStat(out hungerIcon, out hungerTMP, "GAME/GUIManager/Canvas_HUD/BarGroup/Bar/LayoutGroup/Hunger/Icon", "hungerStat", (STATUSTYPE)1);
			AddNewStat(out GameObject objectIcon2, out TextMeshProUGUI objectTMP2, "GAME/GUIManager/Canvas_HUD/BarGroup/ExtraStaminaBar/Icon", "extraStaminaStat");
			AddNewStat(out GameObject _, out TextMeshProUGUI objectTMP3, "GAME/GUIManager/Canvas_HUD/BarGroup/Bar/LayoutGroup/Cold/Icon", "coldStat", (STATUSTYPE)2);
			AddNewStat(out GameObject _, out TextMeshProUGUI _, "GAME/GUIManager/Canvas_HUD/BarGroup/Bar/LayoutGroup/Injury/Icon", "injuryStat", (STATUSTYPE)0);
			AddNewStat(out GameObject objectIcon5, out TextMeshProUGUI objectTMP5, "GAME/GUIManager/Canvas_HUD/BarGroup/Bar/LayoutGroup/Sleepy/Icon", "sleepyStat", (STATUSTYPE)6);
			AddNewStat(out GameObject _, out TextMeshProUGUI _, "GAME/GUIManager/Canvas_HUD/BarGroup/Bar/LayoutGroup/Heat/Icon", "heatStat", (STATUSTYPE)8);
			AddNewStat(out GameObject _, out TextMeshProUGUI _, "GAME/GUIManager/Canvas_HUD/BarGroup/Bar/LayoutGroup/Curse/Icon", "curseStat", (STATUSTYPE)5);
			AddNewStat(out GameObject _, out TextMeshProUGUI _, "GAME/GUIManager/Canvas_HUD/BarGroup/Bar/LayoutGroup/Spores/Icon", "sporesStat", (STATUSTYPE)10);
			AddNewStat(out GameObject objectIcon9, out TextMeshProUGUI objectTMP9, "GAME/GUIManager/Canvas_HUD/BarGroup/ExtraStaminaBar/Icon", "infiniteStaminaStat");
			AddNewStat(out GameObject objectIcon10, out TextMeshProUGUI objectTMP10, "GAME/GUIManager/Canvas_HUD/BarGroup/ExtraStaminaBar/Icon", "fasterBoiStat");
			AddNewStat(out GameObject objectIcon11, out TextMeshProUGUI objectTMP11, "GAME/GUIManager/Canvas_HUD/BarGroup/Bar/OutlineMask/Outline/Shield/ShieldIcon", "invincibilityStat");
			AddNewStat(out GameObject objectIcon12, out TextMeshProUGUI objectTMP12, "GAME/GUIManager/Canvas_HUD/BarGroup/Bar/LayoutGroup/Poison/Icon", "poisonStat", (STATUSTYPE)3);
			AddNewStat(out GameObject objectIcon13, out TextMeshProUGUI objectTMP13, "GAME/GUIManager/Canvas_HUD/BarGroup/Bar/LayoutGroup/Thorns/Icon", "thornsStat", (STATUSTYPE)9);
			Item currentItem = Character.localCharacter.data.currentItem;
			if ((Object)(object)currentItem == (Object)null || !((Behaviour)((Component)gameObject.transform.Find("Name")).GetComponent<TextMeshProUGUI>()).enabled)
			{
				return;
			}
			float num = currentItem.carryWeight + Ascents.itemWeightModifier;
			if (num > 0f)
			{
				string text = "+" + num * (float)unitFactor / 40f + percentSign;
				((TMP_Text)objectTMP).text = text;
				UpdateStats(ref objectIcon, ref index);
			}
			BingBongShieldWhileHolding component = ((Component)currentItem).gameObject.GetComponent<BingBongShieldWhileHolding>();
			if ((Object)(object)component != (Object)null)
			{
				((TMP_Text)objectTMP11).text = "Infinite";
				UpdateStats(ref objectIcon11, ref index);
			}
			Action_InflictPoison component2 = ((Component)currentItem).gameObject.GetComponent<Action_InflictPoison>();
			if (Object.op_Implicit((Object)(object)component2) && ((Behaviour)component2).enabled)
			{
				int increment = 1;
				float num2 = component2.poisonPerSecond * component2.inflictionTime * (float)unitFactor;
				if (((TMP_Text)objectTMP12).text != "0")
				{
					num2 += float.Parse(((TMP_Text)objectTMP12).text.Replace(percentSign, ""));
					increment = 0;
				}
				string text2 = "+" + Mathf.Round(num2) + percentSign;
				((TMP_Text)objectTMP12).text = text2;
				UpdateStats(ref objectIcon12, ref index, increment);
			}
			Action_RestoreHunger component3 = ((Component)currentItem).gameObject.GetComponent<Action_RestoreHunger>();
			if (Object.op_Implicit((Object)(object)component3) && component3.restorationAmount != 0f)
			{
				float num3 = component3.restorationAmount * (float)unitFactor;
				string text3 = "-" + Mathf.Round(num3) + percentSign;
				((TMP_Text)hungerTMP).text = text3;
				UpdateStats(ref hungerIcon, ref index);
			}
			Action_AddOrRemoveThorns component4 = ((Component)currentItem).gameObject.GetComponent<Action_AddOrRemoveThorns>();
			if (Object.op_Implicit((Object)(object)component4) && component4.thornCount != 0)
			{
				float num4 = (float)(component4.thornCount * unitFactor) / 20f;
				string text4 = ((num4 > 0f) ? "+" : "");
				string text5 = text4 + Mathf.Round(num4) + percentSign;
				((TMP_Text)objectTMP13).text = text5;
				UpdateStats(ref objectIcon13, ref index);
			}
			Action_GiveExtraStamina component5 = ((Component)currentItem).gameObject.GetComponent<Action_GiveExtraStamina>();
			if (Object.op_Implicit((Object)(object)component5) && component5.amount != 0f)
			{
				string text6 = "+" + component5.amount * (float)unitFactor + percentSign;
				((TMP_Text)objectTMP2).text = text6;
				UpdateStats(ref objectIcon2, ref index);
			}
			Action_ApplyAffliction[] components = ((Component)currentItem).gameObject.GetComponents<Action_ApplyAffliction>();
			Action_ApplyAffliction[] array = components;
			foreach (Action_ApplyAffliction val in array)
			{
				if (!((Behaviour)val).enabled)
				{
					continue;
				}
				AfflictionType afflictionType = val.affliction.GetAfflictionType();
				if ((int)afflictionType == 1)
				{
					Image component6 = objectIcon9.GetComponent<Image>();
					rainbowHue += Time.deltaTime * 0.1f;
					if (rainbowHue > 1f)
					{
						rainbowHue -= 1f;
					}
					Color color = (((Graphic)component6).color = Color.HSVToRGB(rainbowHue, 1f, 1f));
					((Graphic)objectTMP9).color = color;
					Affliction_InfiniteStamina val3 = (Affliction_InfiniteStamina)val.affliction;
					Affliction_AdjustDrowsyOverTime val4 = (Affliction_AdjustDrowsyOverTime)val3.drowsyAffliction;
					float num5 = val3.drowsyAffliction.totalTime * val4.statusPerSecond;
					string text7 = "+" + Mathf.Round(num5 * (float)unitFactor) + percentSign;
					((TMP_Text)objectTMP5).text = text7;
					UpdateStats(ref objectIcon5, ref index);
					string text8 = val.affliction.totalTime + "sec";
					((TMP_Text)objectTMP9).text = text8;
					UpdateStats(ref objectIcon9, ref index);
				}
				if ((int)afflictionType == 2)
				{
					Image component7 = objectIcon10.GetComponent<Image>();
					colorLerp += Time.deltaTime * 2f;
					if (colorLerp > 1f)
					{
						colorLerp -= 2f;
					}
					Color color2 = (((Graphic)component7).color = Color.Lerp(((Graphic)objectTMP2).color, ((Graphic)objectTMP3).color, Mathf.Abs(colorLerp)));
					((Graphic)objectTMP10).color = color2;
					Affliction_FasterBoi val6 = (Affliction_FasterBoi)val.affliction;
					string text9 = "+" + Mathf.Round(val6.drowsyOnEnd * (float)unitFactor) + percentSign;
					((TMP_Text)objectTMP5).text = text9;
					UpdateStats(ref objectIcon5, ref index);
					string text10 = ((Affliction)val6).totalTime + " sec";
					((TMP_Text)objectTMP10).text = text10;
					UpdateStats(ref objectIcon10, ref index);
				}
				if ((int)afflictionType == 16)
				{
					string text11 = val.affliction.totalTime + " sec";
					((TMP_Text)objectTMP11).text = text11;
					UpdateStats(ref objectIcon11, ref index);
				}
			}
		}

		private static void Initialize(out GameObject hungerIcon, out GameObject hungerText, out TextMeshProUGUI hungerTMP)
		{
			//IL_006f: Unknown result type (might be due to invalid IL or missing references)
			//IL_008f: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_0129: Unknown result type (might be due to invalid IL or missing references)
			//IL_0189: Unknown result type (might be due to invalid IL or missing references)
			GameObject val = GameObject.Find("GAME/GUIManager/Canvas_HUD/BarGroup/Bar/LayoutGroup/Hunger/Icon");
			GameObject gameObject = ((Component)instance.fuelBar.transform.parent).gameObject;
			Transform val2 = gameObject.transform.Find("hungerStat");
			if ((Object)(object)val2 == (Object)null)
			{
				hungerIcon = Object.Instantiate<GameObject>(val, gameObject.transform);
				((Object)hungerIcon).name = "hungerStat";
				hungerIcon.transform.localPosition = new Vector3(55f, -20f, 0f);
				hungerIcon.transform.localScale = new Vector3(0.66f, 0.66f, 0.66f);
				Outline val3 = hungerIcon.AddComponent<Outline>();
				((Shadow)val3).effectDistance = new Vector2(1.5f, -1.5f);
			}
			else
			{
				hungerIcon = ((Component)val2).gameObject;
			}
			Transform val4 = hungerIcon.transform.Find("Text");
			if ((Object)(object)val4 == (Object)null)
			{
				GameObject gameObject2 = ((Component)gameObject.transform.Find("Name")).gameObject;
				hungerText = Object.Instantiate<GameObject>(gameObject2, hungerIcon.transform);
				((Object)hungerText).name = "Text";
				hungerText.transform.localPosition = new Vector3(-75f, -25f, 0f);
				hungerTMP = hungerText.GetComponent<TextMeshProUGUI>();
				((TMP_Text)hungerTMP).text = "-100%";
				((TMP_Text)hungerTMP).enableAutoSizing = false;
				((TMP_Text)hungerTMP).fontSize = fontSize;
				((TMP_Text)hungerTMP).outlineWidth = 0.1f;
				((TMP_Text)hungerTMP).alignment = (TextAlignmentOptions)516;
				((Behaviour)hungerTMP).enabled = true;
				Image component = val.GetComponent<Image>();
				((Graphic)hungerTMP).color = ((Graphic)component).color;
			}
			else
			{
				hungerText = ((Component)val4).gameObject;
				hungerTMP = hungerText.GetComponent<TextMeshProUGUI>();
			}
			templateStat = hungerIcon;
		}

		private static void AddNewStat(out GameObject objectIcon, out TextMeshProUGUI objectTMP, string name, string iconName, STATUSTYPE? status = null)
		{
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Expected O, but got Unknown
			//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c6: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ac: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_01cd: Invalid comparison between Unknown and I4
			//IL_01e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_0239: Unknown result type (might be due to invalid IL or missing references)
			//IL_023d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0242: Unknown result type (might be due to invalid IL or missing references)
			//IL_0250: Unknown result type (might be due to invalid IL or missing references)
			//IL_0253: Invalid comparison between Unknown and I4
			if ((Object)(object)templateStat == (Object)null)
			{
				objectIcon = new GameObject();
				objectTMP = objectIcon.AddComponent<TextMeshProUGUI>();
				return;
			}
			Item currentItem = Character.localCharacter.data.currentItem;
			GameObject gameObject = ((Component)instance.fuelBar.transform.parent).gameObject;
			Transform val = gameObject.transform.Find(iconName);
			if ((Object)(object)val == (Object)null)
			{
				GameObject val2 = GameObject.Find(name);
				objectIcon = Object.Instantiate<GameObject>(templateStat, gameObject.transform);
				((Object)objectIcon).name = iconName;
				Image component = objectIcon.GetComponent<Image>();
				Image component2 = val2.GetComponent<Image>();
				component.sprite = component2.sprite;
				((Graphic)component).color = ((Graphic)component2).color;
				objectTMP = ((Component)objectIcon.transform.GetChild(0)).GetComponent<TextMeshProUGUI>();
				((Graphic)objectTMP).color = ((Graphic)component2).color;
			}
			else
			{
				objectIcon = ((Component)val).gameObject;
			}
			objectTMP = ((Component)objectIcon.transform.GetChild(0)).GetComponent<TextMeshProUGUI>();
			((TMP_Text)objectTMP).text = "0";
			((TMP_Text)objectTMP).fontSize = fontSize;
			objectIcon.SetActive(false);
			if ((Object)(object)currentItem == (Object)null || !status.HasValue || !((Behaviour)((Component)gameObject.transform.Find("Name")).GetComponent<TextMeshProUGUI>()).enabled)
			{
				return;
			}
			Action_ModifyStatus[] components = ((Component)currentItem).gameObject.GetComponents<Action_ModifyStatus>();
			Action_ModifyStatus[] array = components;
			foreach (Action_ModifyStatus val3 in array)
			{
				if (!((Behaviour)val3).enabled || val3.ifSkeleton != Character.localCharacter.data.isSkeleton)
				{
					continue;
				}
				float num = Mathf.Round(val3.changeAmount * (float)unitFactor);
				if (num == 0f)
				{
					continue;
				}
				STATUSTYPE statusType = val3.statusType;
				float num2 = float.Parse(((TMP_Text)objectTMP).text.Trim('%'));
				num += num2;
				if ((int)statusType == 5)
				{
					num = 0f - num;
				}
				string text = num + percentSign;
				if ((STATUSTYPE?)statusType == status)
				{
					string text2 = "";
					if (num > 0f)
					{
						text2 = "+";
					}
					((TMP_Text)objectTMP).text = text2 + text;
					UpdateStats(ref objectIcon, ref index);
				}
				if (status == (STATUSTYPE?)10 && (int)statusType == 3 && num < 0f)
				{
					((TMP_Text)objectTMP).text = text;
					if (num2 != 0f)
					{
						index--;
					}
					UpdateStats(ref objectIcon, ref index);
					if (num2 != 0f)
					{
						index--;
					}
				}
			}
		}

		private static void UpdateStats(ref GameObject icon, ref int index, int increment = 1)
		{
			//IL_0063: Unknown result type (might be due to invalid IL or missing references)
			icon.SetActive(true);
			index += increment;
			Vector3 localPosition = default(Vector3);
			if (!instance.isTemporarySlot)
			{
				((Vector3)(ref localPosition))..ctor(60f, 80f + (float)(fontSize * index), 0f);
			}
			else
			{
				((Vector3)(ref localPosition))..ctor(20f, 120f + (float)(fontSize * index), 0f);
			}
			icon.transform.localPosition = localPosition;
		}
	}
}
namespace System.Runtime.CompilerServices
{
	[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
	internal sealed class IgnoresAccessChecksToAttribute : Attribute
	{
		public IgnoresAccessChecksToAttribute(string assemblyName)
		{
		}
	}
}