using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using Microsoft.CodeAnalysis;
using PEAKLib.Core;
using Photon.Pun;
using Photon.Realtime;
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("Stefnotch.CatsOnPeak")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: AssemblyInformationalVersion("0.1.0")]
[assembly: AssemblyProduct("Stefnotch.CatsOnPeak")]
[assembly: AssemblyTitle("CatsOnPeak")]
[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;
}
}
}
public class KittyCat : MonoBehaviourPunCallbacks
{
public enum KittyCatActionType
{
Idle,
Wiggle,
Attack,
Jump
}
public KittyCatActionType currentAction;
public Rigidbody rig;
public Item item;
private float _actionTimer;
private float _actionFrequency = 8.3f;
private Character? _targetCharacter;
public float idleForce = 3f;
public float jumpForwardForce = 35f;
public float jumpUpwardForce = 20f;
public override void OnEnable()
{
((MonoBehaviourPunCallbacks)this).OnEnable();
_actionTimer = Random.value * _actionFrequency;
rig = ((Component)this).GetComponent<Rigidbody>();
item = ((Component)this).GetComponent<Item>();
}
public override void OnDisable()
{
((MonoBehaviourPunCallbacks)this).OnDisable();
}
private void LateUpdate()
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_00f4: Unknown result type (might be due to invalid IL or missing references)
if ((int)item.itemState != 0 || !PhotonNetwork.IsMasterClient)
{
return;
}
_actionTimer -= Time.deltaTime;
if (_actionTimer < 0f)
{
float value = Random.value;
KittyCatActionType kittyCatActionType;
float num;
if (value < 0.25f)
{
kittyCatActionType = KittyCatActionType.Idle;
num = (Random.value + 0.14f) * _actionFrequency;
}
else if (value < 0.35f)
{
kittyCatActionType = KittyCatActionType.Wiggle;
num = (Random.value + 0.34f) * _actionFrequency;
}
else if (value < 0.7f)
{
kittyCatActionType = KittyCatActionType.Attack;
num = (Random.value + 0.84f) * _actionFrequency;
}
else
{
kittyCatActionType = KittyCatActionType.Jump;
num = (Random.value + 0.84f) * _actionFrequency;
}
Vector3 val = default(Vector3);
((Vector3)(ref val))..ctor(Random.value, 0f, Random.value);
((MonoBehaviourPun)this).photonView.RPC("RPCA_CatAction", (RpcTarget)0, new object[4]
{
((MonoBehaviourPun)Character.localCharacter).photonView,
kittyCatActionType,
val,
num
});
_actionTimer = num;
}
}
[PunRPC]
public void RPCA_CatAction(PhotonView characterView, KittyCatActionType KittyCatActionType, Vector3 hopDir, float duration)
{
//IL_0037: Unknown result type (might be due to invalid IL or missing references)
switch (KittyCatActionType)
{
case KittyCatActionType.Idle:
Idle(duration);
break;
case KittyCatActionType.Wiggle:
Wiggle(duration);
break;
case KittyCatActionType.Attack:
Attack(characterView);
break;
case KittyCatActionType.Jump:
Jump(hopDir);
break;
}
}
public void Idle(float duration)
{
((MonoBehaviour)this).StartCoroutine(IdleRoutine());
IEnumerator IdleRoutine()
{
if (Vector3.Dot(((Component)this).transform.up, Vector3.up) < 0.5f)
{
rig.AddTorque(Vector3.Cross(((Component)this).transform.up, Vector3.up) * 10f, (ForceMode)1);
}
float num = 3f;
duration -= num;
yield return (object)new WaitForSeconds(num);
}
}
public void Wiggle(float duration)
{
((MonoBehaviour)this).StartCoroutine(WiggleRoutine());
IEnumerator WiggleRoutine()
{
while (duration > 0f)
{
Vector3 val = new Vector3(Random.value - 0.5f, 0f, Random.value - 0.5f);
Vector3 normalized = ((Vector3)(ref val)).normalized;
rig.AddForce(normalized * idleForce + Vector3.up * idleForce);
rig.AddTorque(new Vector3(Random.value - 0.5f, Random.value - 0.5f, Random.value - 0.5f) * idleForce * 0.4f, (ForceMode)1);
float num = 0.2f;
duration -= num;
yield return (object)new WaitForSeconds(num);
if (Random.value < 0.3f)
{
float num2 = Random.Range(1f, 2f);
duration -= num2;
yield return (object)new WaitForSeconds(num2);
}
}
}
}
public void Jump(Vector3 hopDir)
{
//IL_0002: Unknown result type (might be due to invalid IL or missing references)
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_000e: Unknown result type (might be due to invalid IL or missing references)
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
//IL_001a: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002a: Unknown result type (might be due to invalid IL or missing references)
//IL_003b: Unknown result type (might be due to invalid IL or missing references)
//IL_003c: Unknown result type (might be due to invalid IL or missing references)
//IL_0041: Unknown result type (might be due to invalid IL or missing references)
Vector3 normalized = ((Vector3)(ref hopDir)).normalized;
rig.AddForce(normalized * jumpForwardForce + Vector3.up * jumpUpwardForce, (ForceMode)1);
rig.MoveRotation(Quaternion.LookRotation(normalized, Vector3.up));
}
public void Attack(PhotonView characterView, float extraDelay = 0f)
{
((MonoBehaviour)this).StartCoroutine(AttackRoutine());
IEnumerator AttackRoutine()
{
yield return (object)new WaitForSeconds(extraDelay);
_targetCharacter = ((Component)characterView).GetComponent<Character>();
Vector3 dir = _targetCharacter.Center - ((Component)this).transform.position;
dir = ((Vector3)(ref dir)).normalized;
Quaternion finalRot = Quaternion.LookRotation(dir, Vector3.up);
rig.MoveRotation(finalRot);
for (int i = 0; i < 8; i++)
{
yield return (object)new WaitForSeconds(0.2f);
rig.AddTorque(new Vector3(Random.value - 0.5f, 0f, Random.value - 0.5f) * 0.1f, (ForceMode)1);
}
rig.MoveRotation(finalRot);
float num = Vector3.Distance(((Component)this).transform.position, _targetCharacter.Center);
float num2 = Mathf.Clamp(num * 0.25f, 0.1f, 3f);
rig.AddForce(dir * num2 * jumpForwardForce + Vector3.up * jumpUpwardForce, (ForceMode)1);
}
}
public void OnCollisionEnter(Collision collision)
{
//IL_0030: Unknown result type (might be due to invalid IL or missing references)
//IL_0051: Unknown result type (might be due to invalid IL or missing references)
//IL_0056: Unknown result type (might be due to invalid IL or missing references)
//IL_0094: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
//IL_00a9: Unknown result type (might be due to invalid IL or missing references)
//IL_0111: Unknown result type (might be due to invalid IL or missing references)
//IL_0117: Unknown result type (might be due to invalid IL or missing references)
//IL_00e2: Unknown result type (might be due to invalid IL or missing references)
//IL_00e8: Unknown result type (might be due to invalid IL or missing references)
//IL_00f2: 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_00ff: Unknown result type (might be due to invalid IL or missing references)
if (PhotonNetwork.IsMasterClient && (currentAction == KittyCatActionType.Attack || currentAction == KittyCatActionType.Jump) && IsInLayerMask(((Component)collision.collider).gameObject.layer, HelperFunctions.AllPhysical) && (Object)(object)collision.rigidbody != (Object)null)
{
Vector3 relativeVelocity = collision.relativeVelocity;
float num = ((Vector3)(ref relativeVelocity)).magnitude;
if (num < 0.1f)
{
num = 0.1f;
}
num = ((currentAction != KittyCatActionType.Jump) ? (num * 8.5f) : (num * 4f));
Vector3 val = ((ContactPoint)(ref collision.contacts[0])).point - ((Component)this).transform.position;
val.y += 0.2f;
Character component = collision.gameObject.GetComponent<Character>();
if ((Object)(object)component != (Object)null)
{
Rigidbody val2 = component.GetBodypart((BodypartType)2).Rig;
component.AddForceToBodyPart(val2, ((Vector3)(ref val)).normalized * num * 0.2f, ((Vector3)(ref val)).normalized * num);
}
collision.rigidbody.AddForce(((Vector3)(ref val)).normalized * num, (ForceMode)1);
}
}
private bool IsInLayerMask(int layerIndex, LayerMask mask)
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
return LayerMask.op_Implicit(mask) == (LayerMask.op_Implicit(mask) | (1 << layerIndex));
}
}
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 CatsOnPeak
{
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInPlugin("Stefnotch.CatsOnPeak", "CatsOnPeak", "0.1.0")]
public class Plugin : BaseUnityPlugin
{
private static string[] CatNames = new string[7] { "Müsli", "Panther", "Milo", "Mutzi", "Pusa", "Pusheen", "NINA???" };
private GameObject _catGrassPrefab;
private GameObject _catModelPrefab;
private bool HasSpawnedCatGrass;
public const string Id = "Stefnotch.CatsOnPeak";
internal static ManualLogSource Log { get; private set; } = null;
public static string Name => "CatsOnPeak";
public static string Version => "0.1.0";
private void Awake()
{
Log = ((BaseUnityPlugin)this).Logger;
BundleLoader.LoadBundleWithName((BaseUnityPlugin)(object)this, "catitem.peakbundle", (Action<PeakBundle>)delegate(PeakBundle peakBundle)
{
_catModelPrefab = peakBundle.LoadAsset<GameObject>("CatModelPrefab.prefab");
if ((Object)(object)_catModelPrefab == (Object)null)
{
((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load cat model from the asset bundle.");
}
else
{
_catModelPrefab.GetComponentInChildren<Renderer>().material.shader = Shader.Find("W/Peak_Standard");
_catGrassPrefab = peakBundle.LoadAsset<GameObject>("CatGrass.prefab");
if ((Object)(object)_catGrassPrefab == (Object)null)
{
((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load cat grass from the asset bundle.");
}
else
{
_catGrassPrefab.GetComponentInChildren<Renderer>().material.shader = Shader.Find("W/Peak_Standard");
Item component = _catGrassPrefab.GetComponent<Item>();
component.UIData.itemName = CatNames[Random.Range(0, CatNames.Length)];
((Object)_catGrassPrefab).name = "CuteCat/Cat";
KittyCat kittyCat = _catGrassPrefab.AddComponent<KittyCat>();
((BaseUnityPlugin)this).Logger.LogInfo((object)("Successfully loaded cat grass from the asset bundle. " + ((Object)_catGrassPrefab).name));
peakBundle.Mod.RegisterContent();
}
}
});
Log.LogInfo((object)("Plugin " + Name + " is loaded!"));
}
private void Start()
{
SceneManager.sceneLoaded += OnSceneLoaded;
}
private void OnDestroy()
{
SceneManager.sceneLoaded -= OnSceneLoaded;
}
private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
{
//IL_010e: Unknown result type (might be due to invalid IL or missing references)
//IL_0113: Unknown result type (might be due to invalid IL or missing references)
//IL_011d: Unknown result type (might be due to invalid IL or missing references)
//IL_0122: Unknown result type (might be due to invalid IL or missing references)
((BaseUnityPlugin)this).Logger.LogInfo((object)("Scene loaded: " + ((Scene)(ref scene)).name));
if (((Scene)(ref scene)).name == "Airport")
{
((MonoBehaviour)this).StartCoroutine(SpawnCatGrassForAllPlayers());
}
if (!((Scene)(ref scene)).name.StartsWith("Level_"))
{
return;
}
Biome val = ((IEnumerable<Biome>)Object.FindObjectsByType<Biome>((FindObjectsSortMode)0)).FirstOrDefault((Func<Biome, bool>)((Biome b) => (int)b.biomeType == 0));
if ((Object)(object)val == (Object)null)
{
((BaseUnityPlugin)this).Logger.LogWarning((object)"Shore biome not found in the scene.");
return;
}
Transform val2 = ((IEnumerable<Transform>)((Component)((Component)val).transform).GetComponentsInChildren<Transform>()).FirstOrDefault((Func<Transform, bool>)((Transform t) => ((Object)t).name == "BingBong_Spawner"));
if ((Object)(object)val2 == (Object)null)
{
((BaseUnityPlugin)this).Logger.LogWarning((object)"BingBong_Spawner not found in the shore biome.");
return;
}
SingleItemSpawner val3 = ((Component)val2).gameObject.AddComponent<SingleItemSpawner>();
val3.prefab = _catGrassPrefab;
val3.belowAscentRequirement = -1;
val3.playersInRoomRequirement = 0;
((Component)val3).transform.position = val2.position + Vector3.up * 0.5f;
}
private IEnumerator SpawnCatGrassForAllPlayers()
{
if (!PhotonNetwork.IsConnected || !PhotonNetwork.IsMasterClient)
{
yield break;
}
((BaseUnityPlugin)this).Logger.LogInfo((object)"Automatically spawning cat grass for all players...");
yield return (object)new WaitForSeconds(2f);
Player[] playerList = PhotonNetwork.PlayerList;
foreach (Player val in playerList)
{
Character playerCharacter = GetPlayerCharacter(val);
if ((Object)(object)playerCharacter != (Object)null)
{
((BaseUnityPlugin)this).Logger.LogInfo((object)("Spawning cat grass near player: " + val.NickName));
SpawnCatGrassNearPlayer(playerCharacter);
}
}
yield return null;
}
private Character? GetPlayerCharacter(Player player)
{
foreach (Character allCharacter in Character.AllCharacters)
{
if ((Object)(object)allCharacter != (Object)null && ((MonoBehaviourPun)allCharacter).photonView.Owner == player)
{
return allCharacter;
}
}
return null;
}
private void SpawnCatGrassNearPlayer(Character character)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
//IL_001a: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Unknown result type (might be due to invalid IL or missing references)
//IL_0031: Unknown result type (might be due to invalid IL or missing references)
//IL_0038: Unknown result type (might be due to invalid IL or missing references)
//IL_0057: Unknown result type (might be due to invalid IL or missing references)
//IL_0058: Unknown result type (might be due to invalid IL or missing references)
try
{
Vector3 val = character.Center + Vector3.up * 1f + Random.insideUnitSphere * 1.5f;
val.y = Mathf.Max(val.y, character.Center.y);
PhotonNetwork.InstantiateItemRoom(((Object)_catGrassPrefab).name, val, Quaternion.identity, true);
}
catch (Exception arg)
{
((BaseUnityPlugin)this).Logger.LogError((object)$"Error spawning cat grass near player: {arg}");
}
}
}
}
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
{
}
}