Decompiled source of ClassicCalderaKiln v0.1.0

plugins/LinguiniSloth.ClassicCalderaKiln.dll

Decompiled 2 weeks ago
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using Microsoft.CodeAnalysis;
using UnityEngine;
using UnityEngine.SceneManagement;

[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("LinguiniSloth.ClassicCalderaKiln")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: AssemblyInformationalVersion("0.1.0")]
[assembly: AssemblyProduct("LinguiniSloth.ClassicCalderaKiln")]
[assembly: AssemblyTitle("ClassicCalderaKiln")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.1.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
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 BepInEx
{
	[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
	[Conditional("CodeGeneration")]
	[Embedded]
	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")]
	[Embedded]
	internal sealed class PatcherAutoPluginAttribute : Attribute
	{
		public PatcherAutoPluginAttribute(string? id = null, string? name = null, string? version = null)
		{
		}
	}
}
namespace Microsoft.CodeAnalysis
{
	[Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace ClassicCalderaKiln
{
	[BepInPlugin("ClassicCalderaKiln", "Classic Caldera & Kiln", "0.1.0")]
	public sealed class Plugin : BaseUnityPlugin
	{
		public const string PluginGuid = "ClassicCalderaKiln";

		public const string PluginName = "Classic Caldera & Kiln";

		public const string PluginVersion = "0.1.0";

		private const string TargetScene = "WilIsland";

		private const string CalderaSegmentPath = "Map/Biome_4/Caldera/Volcano/Caldera_Segment";

		private const string KilnHazardRootPath = "Map/Biome_4/Caldera/Volcano/Volcano_Segment/Middle/Petrify Rock Kiln";

		private const string KilnVariantRootPath = "Map/Biome_4/Caldera/Volcano/Volcano_Segment/Peak_Kiln Variant";

		private ConfigEntry<bool> _removeCondors;

		private ConfigEntry<bool> _removeKilnPetrifyingRocks;

		private ConfigEntry<bool> _replaceKilnHotBridges;

		private ConfigEntry<bool> _verboseLogging;

		private Coroutine? _cleanupRoutine;

		private void Awake()
		{
			//IL_00a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
			_removeCondors = ((BaseUnityPlugin)this).Config.Bind<bool>("Caldera", "RemoveCondors", true, "Removes Condors only from the Caldera hierarchy when the Caldera/Kiln route is detected.");
			_removeKilnPetrifyingRocks = ((BaseUnityPlugin)this).Config.Bind<bool>("Kiln", "RemovePetrifyingRocks", true, "Removes Petrify Crystal rocks only from Kiln's dedicated Petrify Rock Kiln generator. Citadel is untouched.");
			_replaceKilnHotBridges = ((BaseUnityPlugin)this).Config.Bind<bool>("Kiln", "ReplaceHotBridges", true, "Converts Kiln Petrify Crystal Bridges into their embedded Rock Bridge geometry and strips petrifying collision modifiers.");
			_verboseLogging = ((BaseUnityPlugin)this).Config.Bind<bool>("Debug", "VerboseLogging", false, "Writes extra path/component information to BepInEx LogOutput.log.");
			SceneManager.sceneLoaded += OnSceneLoaded;
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Classic Caldera & Kiln 0.1.0 loaded.");
			Scene activeScene = SceneManager.GetActiveScene();
			if (((Scene)(ref activeScene)).name == "WilIsland")
			{
				StartCleanupRoutine();
			}
		}

		private void OnDestroy()
		{
			SceneManager.sceneLoaded -= OnSceneLoaded;
			if (_cleanupRoutine != null)
			{
				((MonoBehaviour)this).StopCoroutine(_cleanupRoutine);
				_cleanupRoutine = null;
			}
		}

		private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
		{
			if (_cleanupRoutine != null)
			{
				((MonoBehaviour)this).StopCoroutine(_cleanupRoutine);
				_cleanupRoutine = null;
			}
			if (((Scene)(ref scene)).name == "WilIsland")
			{
				StartCleanupRoutine();
			}
		}

		private void StartCleanupRoutine()
		{
			if (!_removeCondors.Value && !_removeKilnPetrifyingRocks.Value && !_replaceKilnHotBridges.Value)
			{
				((BaseUnityPlugin)this).Logger.LogInfo((object)"All gameplay changes are disabled in config.");
			}
			else
			{
				_cleanupRoutine = ((MonoBehaviour)this).StartCoroutine(CleanupWhenGenerated());
			}
		}

		private IEnumerator CleanupWhenGenerated()
		{
			yield return (object)new WaitForSeconds(4f);
			bool routeConfirmed = false;
			int totalChanges = 0;
			int quietPassesAfterChange = 0;
			for (int pass = 1; pass <= 30; pass++)
			{
				Scene activeScene = SceneManager.GetActiveScene();
				if (((Scene)(ref activeScene)).name != "WilIsland")
				{
					yield break;
				}
				List<GameObject> loadedWorldObjects = GetLoadedWorldObjects();
				if (!IsCalderaKilnRoute(loadedWorldObjects))
				{
					if (_verboseLogging.Value)
					{
						((BaseUnityPlugin)this).Logger.LogInfo((object)$"Pass {pass}: exact Caldera/Kiln route signatures not present; making no changes.");
					}
					yield return (object)new WaitForSeconds(2f);
					continue;
				}
				if (!routeConfirmed)
				{
					routeConfirmed = true;
					((BaseUnityPlugin)this).Logger.LogInfo((object)"Caldera/Kiln route confirmed by exact hierarchy signatures. Applying scoped changes.");
				}
				int num = 0;
				if (_removeCondors.Value)
				{
					num += RemoveCalderaCondors(loadedWorldObjects);
				}
				if (_removeKilnPetrifyingRocks.Value)
				{
					num += RemoveKilnPetrifyingRocks(loadedWorldObjects);
				}
				if (_replaceKilnHotBridges.Value)
				{
					num += ConvertKilnHotBridges(loadedWorldObjects);
				}
				totalChanges += num;
				if (num == 0 && totalChanges > 0)
				{
					quietPassesAfterChange++;
				}
				else if (num > 0)
				{
					quietPassesAfterChange = 0;
				}
				if (quietPassesAfterChange >= 3)
				{
					((BaseUnityPlugin)this).Logger.LogInfo((object)$"Cleanup complete. Total objects changed this load: {totalChanges}.");
					_cleanupRoutine = null;
					yield break;
				}
				yield return (object)new WaitForSeconds(2f);
			}
			if (!routeConfirmed)
			{
				((BaseUnityPlugin)this).Logger.LogInfo((object)"No exact Caldera/Kiln route signature was detected. No changes were made.");
			}
			else
			{
				((BaseUnityPlugin)this).Logger.LogInfo((object)$"Cleanup scan finished. Total objects changed this load: {totalChanges}.");
			}
			_cleanupRoutine = null;
		}

		private int RemoveCalderaCondors(List<GameObject> worldObjects)
		{
			int num = 0;
			foreach (GameObject worldObject in worldObjects)
			{
				if ((Object)(object)worldObject == (Object)null || !IsCondorRoot(worldObject))
				{
					continue;
				}
				string path = GetPath(worldObject.transform);
				if (IsStrictDescendantOf(path, "Map/Biome_4/Caldera/Volcano/Caldera_Segment") && HasComponentNamed(worldObject, "Condor") && HasComponentNamed(worldObject, "PhotonView") && HasComponentNamed(worldObject, "DisableBasedOnRunSettings"))
				{
					if (_verboseLogging.Value)
					{
						((BaseUnityPlugin)this).Logger.LogInfo((object)("Removing Caldera Condor: " + path));
					}
					Object.Destroy((Object)(object)worldObject);
					num++;
				}
			}
			if (num > 0)
			{
				((BaseUnityPlugin)this).Logger.LogInfo((object)$"Removed {num} Caldera Condor object(s).");
			}
			return num;
		}

		private int RemoveKilnPetrifyingRocks(List<GameObject> worldObjects)
		{
			int num = 0;
			foreach (GameObject worldObject in worldObjects)
			{
				if ((Object)(object)worldObject == (Object)null || !string.Equals(((Object)worldObject).name, "Petrify Crystal 1(Clone)", StringComparison.Ordinal))
				{
					continue;
				}
				string path = GetPath(worldObject.transform);
				if (IsStrictDescendantOf(path, "Map/Biome_4/Caldera/Volcano/Volcano_Segment/Middle/Petrify Rock Kiln"))
				{
					if (_verboseLogging.Value)
					{
						((BaseUnityPlugin)this).Logger.LogInfo((object)("Removing Kiln petrifying rock: " + path));
					}
					Object.Destroy((Object)(object)worldObject);
					num++;
				}
			}
			if (num > 0)
			{
				((BaseUnityPlugin)this).Logger.LogInfo((object)$"Removed {num} Kiln petrifying rock object(s).");
			}
			return num;
		}

		private int ConvertKilnHotBridges(List<GameObject> worldObjects)
		{
			int num = 0;
			foreach (GameObject worldObject in worldObjects)
			{
				if ((Object)(object)worldObject == (Object)null || !string.Equals(((Object)worldObject).name, "Petrify Crystal Bridge(Clone)", StringComparison.Ordinal))
				{
					continue;
				}
				string path = GetPath(worldObject.transform);
				if (!IsStrictDescendantOf(path, "Map/Biome_4/Caldera/Volcano/Volcano_Segment/Middle/Petrify Rock Kiln"))
				{
					continue;
				}
				Transform val = worldObject.transform.Find("Rock Bridge");
				if ((Object)(object)val == (Object)null)
				{
					((BaseUnityPlugin)this).Logger.LogWarning((object)("Found a Kiln petrifying bridge but no Rock Bridge child. Leaving it unchanged: " + path));
					continue;
				}
				int num2 = StripPetrifyingComponents(val);
				if (num2 == 0)
				{
					((BaseUnityPlugin)this).Logger.LogWarning((object)("Could not identify a petrifying collision component on: " + path + ". Leaving it unchanged."));
					continue;
				}
				Transform parent = worldObject.transform.parent;
				if ((Object)(object)parent == (Object)null)
				{
					((BaseUnityPlugin)this).Logger.LogWarning((object)("Kiln petrifying bridge has no parent. Leaving it unchanged: " + path));
					continue;
				}
				int siblingIndex = worldObject.transform.GetSiblingIndex();
				val.SetParent(parent, true);
				val.SetSiblingIndex(Math.Min(siblingIndex, parent.childCount - 1));
				((Object)val).name = "Rock Bridge";
				if (_verboseLogging.Value)
				{
					((BaseUnityPlugin)this).Logger.LogInfo((object)$"Converted hot bridge to Rock Bridge and stripped {num2} hazard component(s): {path}");
				}
				Object.Destroy((Object)(object)worldObject);
				num++;
			}
			if (num > 0)
			{
				((BaseUnityPlugin)this).Logger.LogInfo((object)$"Converted {num} Kiln hot bridge object(s) to normal Rock Bridge geometry.");
			}
			return num;
		}

		private static int StripPetrifyingComponents(Transform root)
		{
			int num = 0;
			Component[] componentsInChildren = ((Component)root).GetComponentsInChildren<Component>(true);
			Component[] array = componentsInChildren;
			foreach (Component val in array)
			{
				if (!((Object)(object)val == (Object)null))
				{
					Type type = ((object)val).GetType();
					string name = type.Name;
					if (string.Equals(name, "CollisionModifier", StringComparison.Ordinal) || name.IndexOf("Petrif", StringComparison.OrdinalIgnoreCase) >= 0)
					{
						Object.Destroy((Object)(object)val);
						num++;
					}
				}
			}
			return num;
		}

		private static bool IsCalderaKilnRoute(List<GameObject> worldObjects)
		{
			bool flag = false;
			bool flag2 = false;
			bool flag3 = false;
			foreach (GameObject worldObject in worldObjects)
			{
				if (!((Object)(object)worldObject == (Object)null))
				{
					if (!flag && string.Equals(((Object)worldObject).name, "Caldera_Segment", StringComparison.Ordinal) && string.Equals(GetPath(worldObject.transform), "Map/Biome_4/Caldera/Volcano/Caldera_Segment", StringComparison.Ordinal))
					{
						flag = true;
					}
					if (!flag2 && string.Equals(((Object)worldObject).name, "Petrify Rock Kiln", StringComparison.Ordinal) && string.Equals(GetPath(worldObject.transform), "Map/Biome_4/Caldera/Volcano/Volcano_Segment/Middle/Petrify Rock Kiln", StringComparison.Ordinal) && HasComponentNamed(worldObject, "PropSpawner_Line"))
					{
						flag2 = true;
					}
					if (!flag3 && string.Equals(((Object)worldObject).name, "Peak_Kiln Variant", StringComparison.Ordinal) && string.Equals(GetPath(worldObject.transform), "Map/Biome_4/Caldera/Volcano/Volcano_Segment/Peak_Kiln Variant", StringComparison.Ordinal))
					{
						flag3 = true;
					}
					if (flag && flag2 && flag3)
					{
						return true;
					}
				}
			}
			return false;
		}

		private static bool IsCondorRoot(GameObject obj)
		{
			return ((Object)obj).name.StartsWith("Condor", StringComparison.Ordinal);
		}

		private static bool HasComponentNamed(GameObject obj, string componentTypeName)
		{
			Component[] components = obj.GetComponents<Component>();
			Component[] array = components;
			foreach (Component val in array)
			{
				if (!((Object)(object)val == (Object)null))
				{
					Type type = ((object)val).GetType();
					if (string.Equals(type.Name, componentTypeName, StringComparison.Ordinal) || string.Equals(type.FullName, componentTypeName, StringComparison.Ordinal) || (type.FullName != null && type.FullName.EndsWith("." + componentTypeName, StringComparison.Ordinal)))
					{
						return true;
					}
				}
			}
			return false;
		}

		private static bool IsStrictDescendantOf(string path, string parentPath)
		{
			return path.StartsWith(parentPath + "/", StringComparison.Ordinal);
		}

		private static List<GameObject> GetLoadedWorldObjects()
		{
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			GameObject[] array = Resources.FindObjectsOfTypeAll<GameObject>();
			List<GameObject> list = new List<GameObject>(array.Length);
			GameObject[] array2 = array;
			foreach (GameObject val in array2)
			{
				if (!((Object)(object)val == (Object)null))
				{
					Scene scene = val.scene;
					if (((Scene)(ref scene)).IsValid() && ((Scene)(ref scene)).isLoaded && !(((Scene)(ref scene)).name != "WilIsland"))
					{
						list.Add(val);
					}
				}
			}
			return list;
		}

		private static string GetPath(Transform transform)
		{
			string text = ((Object)transform).name;
			Transform parent = transform.parent;
			while ((Object)(object)parent != (Object)null)
			{
				text = ((Object)parent).name + "/" + text;
				parent = parent.parent;
			}
			return text;
		}
	}
}
namespace System.Diagnostics.CodeAnalysis
{
	[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class ConstantExpectedAttribute : Attribute
	{
		public object? Min { get; set; }

		public object? Max { get; set; }
	}
	[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class ExperimentalAttribute : Attribute
	{
		public string DiagnosticId { get; }

		public string? UrlFormat { get; set; }

		public ExperimentalAttribute(string diagnosticId)
		{
			DiagnosticId = diagnosticId;
		}
	}
	[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
	[ExcludeFromCodeCoverage]
	internal sealed class MemberNotNullAttribute : Attribute
	{
		public string[] Members { get; }

		public MemberNotNullAttribute(string member)
		{
			Members = new string[1] { member };
		}

		public MemberNotNullAttribute(params string[] members)
		{
			Members = members;
		}
	}
	[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
	[ExcludeFromCodeCoverage]
	internal sealed class MemberNotNullWhenAttribute : Attribute
	{
		public bool ReturnValue { get; }

		public string[] Members { get; }

		public MemberNotNullWhenAttribute(bool returnValue, string member)
		{
			ReturnValue = returnValue;
			Members = new string[1] { member };
		}

		public MemberNotNullWhenAttribute(bool returnValue, params string[] members)
		{
			ReturnValue = returnValue;
			Members = members;
		}
	}
	[AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class SetsRequiredMembersAttribute : Attribute
	{
	}
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class StringSyntaxAttribute : Attribute
	{
		public const string CompositeFormat = "CompositeFormat";

		public const string DateOnlyFormat = "DateOnlyFormat";

		public const string DateTimeFormat = "DateTimeFormat";

		public const string EnumFormat = "EnumFormat";

		public const string GuidFormat = "GuidFormat";

		public const string Json = "Json";

		public const string NumericFormat = "NumericFormat";

		public const string Regex = "Regex";

		public const string TimeOnlyFormat = "TimeOnlyFormat";

		public const string TimeSpanFormat = "TimeSpanFormat";

		public const string Uri = "Uri";

		public const string Xml = "Xml";

		public string Syntax { get; }

		public object?[] Arguments { get; }

		public StringSyntaxAttribute(string syntax)
		{
			Syntax = syntax;
			Arguments = new object[0];
		}

		public StringSyntaxAttribute(string syntax, params object?[] arguments)
		{
			Syntax = syntax;
			Arguments = arguments;
		}
	}
	[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class UnscopedRefAttribute : Attribute
	{
	}
}
namespace System.Runtime.Versioning
{
	[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class RequiresPreviewFeaturesAttribute : Attribute
	{
		public string? Message { get; }

		public string? Url { get; set; }

		public RequiresPreviewFeaturesAttribute()
		{
		}

		public RequiresPreviewFeaturesAttribute(string? message)
		{
			Message = message;
		}
	}
}
namespace System.Runtime.CompilerServices
{
	[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
	internal sealed class IgnoresAccessChecksToAttribute : Attribute
	{
		public IgnoresAccessChecksToAttribute(string assemblyName)
		{
		}
	}
	[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class CallerArgumentExpressionAttribute : Attribute
	{
		public string ParameterName { get; }

		public CallerArgumentExpressionAttribute(string parameterName)
		{
			ParameterName = parameterName;
		}
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class CollectionBuilderAttribute : Attribute
	{
		public Type BuilderType { get; }

		public string MethodName { get; }

		public CollectionBuilderAttribute(Type builderType, string methodName)
		{
			BuilderType = builderType;
			MethodName = methodName;
		}
	}
	[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class CompilerFeatureRequiredAttribute : Attribute
	{
		public const string RefStructs = "RefStructs";

		public const string RequiredMembers = "RequiredMembers";

		public string FeatureName { get; }

		public bool IsOptional { get; set; }

		public CompilerFeatureRequiredAttribute(string featureName)
		{
			FeatureName = featureName;
		}
	}
	[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class InterpolatedStringHandlerArgumentAttribute : Attribute
	{
		public string[] Arguments { get; }

		public InterpolatedStringHandlerArgumentAttribute(string argument)
		{
			Arguments = new string[1] { argument };
		}

		public InterpolatedStringHandlerArgumentAttribute(params string[] arguments)
		{
			Arguments = arguments;
		}
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class InterpolatedStringHandlerAttribute : Attribute
	{
	}
	[EditorBrowsable(EditorBrowsableState.Never)]
	[ExcludeFromCodeCoverage]
	internal static class IsExternalInit
	{
	}
	[AttributeUsage(AttributeTargets.Method, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class ModuleInitializerAttribute : Attribute
	{
	}
	[AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class OverloadResolutionPriorityAttribute : Attribute
	{
		public int Priority { get; }

		public OverloadResolutionPriorityAttribute(int priority)
		{
			Priority = priority;
		}
	}
	[AttributeUsage(AttributeTargets.Parameter, Inherited = true, AllowMultiple = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class ParamCollectionAttribute : Attribute
	{
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class RequiredMemberAttribute : Attribute
	{
	}
	[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
	[EditorBrowsable(EditorBrowsableState.Never)]
	[ExcludeFromCodeCoverage]
	internal sealed class RequiresLocationAttribute : Attribute
	{
	}
	[AttributeUsage(AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Event | AttributeTargets.Interface, Inherited = false)]
	[ExcludeFromCodeCoverage]
	internal sealed class SkipLocalsInitAttribute : Attribute
	{
	}
}