using System;
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 BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using Photon.Pun;
using Photon.Realtime;
using TMPro;
using TinyTweaks.Tweaks;
using UnityEngine;
using UnityEngine.SceneManagement;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("YonDev.TinyTweaks")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: AssemblyInformationalVersion("0.1.0+7a1422f343799cc7c16cd3c3b2601ce8fd279b00")]
[assembly: AssemblyProduct("YonDev.TinyTweaks")]
[assembly: AssemblyTitle("TinyTweaks")]
[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 TinyTweaks
{
[BepInPlugin("YonDev.TinyTweaks", "TinyTweaks", "0.1.0")]
public class Plugin : BaseUnityPlugin
{
public static ConfigFile config;
private GameObject TweaksObj;
public const string Id = "YonDev.TinyTweaks";
internal static ManualLogSource Log { get; private set; }
public static string Name => "TinyTweaks";
public static string Version => "0.1.0";
private void Awake()
{
//IL_0036: Unknown result type (might be due to invalid IL or missing references)
//IL_003c: Expected O, but got Unknown
Log = ((BaseUnityPlugin)this).Logger;
config = ((BaseUnityPlugin)this).Config;
StartTweaks();
SceneManager.sceneLoaded += OnSceneChanged;
Harmony val = new Harmony("TinyTweaks!");
val.PatchAll();
Log.LogInfo((object)("Plugin " + Name + " is loaded!"));
}
private void OnSceneChanged(Scene scene, LoadSceneMode mode)
{
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_0011: Expected O, but got Unknown
TweaksObj = new GameObject("Tweaks!");
if (((Scene)(ref scene)).name == "Airport")
{
Log.LogInfo((object)"In Airport! Loading Basketball Aimbot!");
TweaksObj.AddComponent<ItemAimbotFinder>();
}
TweaksObj.AddComponent<moveVersion>();
}
private void StartTweaks()
{
Customizations.Start();
BingBongSays.Start();
showNamesAlways.Start();
ExtraMarshmallows.Start();
ItemAimbotFinder.Binds();
moveVersion.Binds();
}
public static void Notification(string message, string color = "FFFFFF", bool sound = false)
{
//IL_0098: Unknown result type (might be due to invalid IL or missing references)
//IL_009e: Unknown result type (might be due to invalid IL or missing references)
PlayerConnectionLog val = Object.FindAnyObjectByType<PlayerConnectionLog>();
if ((Object)(object)val == (Object)null)
{
return;
}
string text = "<color=#" + color + ">" + message + "</color>";
MethodInfo method = typeof(PlayerConnectionLog).GetMethod("AddMessage", BindingFlags.Instance | BindingFlags.NonPublic);
if (method != null)
{
method.Invoke(val, new object[1] { text });
if ((Object)(object)val.sfxJoin != (Object)null && sound)
{
val.sfxJoin.Play(default(Vector3));
}
}
else
{
Log.LogMessage((object)"AddMessage method not found.");
}
}
public static void log(string message)
{
Log.LogInfo((object)message);
}
}
}
namespace TinyTweaks.Tweaks
{
[RequireComponent(typeof(Rigidbody))]
[RequireComponent(typeof(PhotonView))]
public class BasketballMagnet : MonoBehaviour, IPunOwnershipCallbacks
{
private Rigidbody rb = null;
private PhotonView pv = null;
private BasketballHoop targetHoop;
private bool hasLeftHand;
private bool hasExecutedLegitShot;
private void Awake()
{
rb = ((Component)this).GetComponent<Rigidbody>();
pv = ((Component)this).GetComponent<PhotonView>();
ResetState();
}
private void OnEnable()
{
PhotonNetwork.AddCallbackTarget((object)this);
FindNearestHoop();
}
private void OnDisable()
{
PhotonNetwork.RemoveCallbackTarget((object)this);
}
public void ResetState()
{
hasLeftHand = false;
hasExecutedLegitShot = false;
}
private void FindNearestHoop()
{
//IL_0014: Unknown result type (might be due to invalid IL or missing references)
//IL_0019: 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_0031: Unknown result type (might be due to invalid IL or missing references)
BasketballHoop[] array = Object.FindObjectsByType<BasketballHoop>((FindObjectsSortMode)0);
float num = float.PositiveInfinity;
Vector3 position = ((Component)this).transform.position;
BasketballHoop[] array2 = array;
foreach (BasketballHoop val in array2)
{
float num2 = Vector3.Distance(position, ((Component)val).transform.position);
if (num2 < num)
{
num = num2;
targetHoop = val;
}
}
}
private void OnTriggerExit(Collider other)
{
//IL_0049: Unknown result type (might be due to invalid IL or missing references)
//IL_0060: Unknown result type (might be due to invalid IL or missing references)
//IL_0070: Unknown result type (might be due to invalid IL or missing references)
if (pv.IsMine && ItemAimbotFinder.EnableAssist.Value && ItemAimbotFinder.RageAimbot.Value)
{
BasketballHoop componentInParent = ((Component)other).GetComponentInParent<BasketballHoop>();
if ((Object)(object)componentInParent != (Object)null && rb.linearVelocity.y < 0f && ((Component)this).transform.position.y < ((Component)componentInParent).transform.position.y)
{
Debug.Log((object)"[Rage Mode] Basket scored! Automatically tracking next objective...");
hasLeftHand = true;
FindNearestHoop();
ApplyParabolicAimbotForce();
}
}
}
private void FixedUpdate()
{
//IL_00c3: 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)
if (!pv.IsMine || !ItemAimbotFinder.EnableAssist.Value)
{
return;
}
if ((Object)(object)((Component)this).transform.parent != (Object)null && ((Object)(object)((Component)((Component)this).transform.root).GetComponent<Character>() != (Object)null || ((Object)((Component)this).transform.root).name.Contains("Player")))
{
ResetState();
}
else
{
if ((!ItemAimbotFinder.RageAimbot.Value && hasExecutedLegitShot) || hasLeftHand)
{
return;
}
hasLeftHand = true;
FindNearestHoop();
Vector3 linearVelocity = rb.linearVelocity;
float magnitude = ((Vector3)(ref linearVelocity)).magnitude;
if (magnitude < ItemAimbotFinder.MinimumThrowSpeedBasketBall.Value)
{
if (!ItemAimbotFinder.RageAimbot.Value)
{
hasExecutedLegitShot = true;
}
return;
}
ApplyParabolicAimbotForce();
if (!ItemAimbotFinder.RageAimbot.Value)
{
hasExecutedLegitShot = true;
}
}
}
private void ApplyParabolicAimbotForce()
{
//IL_0039: Unknown result type (might be due to invalid IL or missing references)
//IL_003e: Unknown result type (might be due to invalid IL or missing references)
//IL_004a: Unknown result type (might be due to invalid IL or missing references)
//IL_004f: Unknown result type (might be due to invalid IL or missing references)
//IL_005e: Unknown result type (might be due to invalid IL or missing references)
//IL_0063: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0098: Unknown result type (might be due to invalid IL or missing references)
//IL_0090: Unknown result type (might be due to invalid IL or missing references)
//IL_00bf: Unknown result type (might be due to invalid IL or missing references)
//IL_00c5: Unknown result type (might be due to invalid IL or missing references)
//IL_00cf: Unknown result type (might be due to invalid IL or missing references)
//IL_00d5: Unknown result type (might be due to invalid IL or missing references)
//IL_00e1: Unknown result type (might be due to invalid IL or missing references)
//IL_00e7: Unknown result type (might be due to invalid IL or missing references)
//IL_00f3: 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_0113: Unknown result type (might be due to invalid IL or missing references)
//IL_011e: Unknown result type (might be due to invalid IL or missing references)
//IL_0146: Unknown result type (might be due to invalid IL or missing references)
//IL_0147: Unknown result type (might be due to invalid IL or missing references)
//IL_0148: Unknown result type (might be due to invalid IL or missing references)
//IL_014d: Unknown result type (might be due to invalid IL or missing references)
//IL_0151: Unknown result type (might be due to invalid IL or missing references)
//IL_0156: Unknown result type (might be due to invalid IL or missing references)
//IL_015e: Unknown result type (might be due to invalid IL or missing references)
//IL_0165: Unknown result type (might be due to invalid IL or missing references)
//IL_01f5: Unknown result type (might be due to invalid IL or missing references)
//IL_01fc: Unknown result type (might be due to invalid IL or missing references)
//IL_0201: Unknown result type (might be due to invalid IL or missing references)
//IL_0205: Unknown result type (might be due to invalid IL or missing references)
//IL_020e: Unknown result type (might be due to invalid IL or missing references)
//IL_0220: Unknown result type (might be due to invalid IL or missing references)
//IL_0231: 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)
if ((Object)(object)targetHoop == (Object)null)
{
FindNearestHoop();
if ((Object)(object)targetHoop == (Object)null)
{
return;
}
}
Vector3 position = ((Component)this).transform.position;
Vector3 val = ((Component)targetHoop).transform.position + Vector3.up * ItemAimbotFinder.HoopEntryHeightOffset.Value;
val.x += ItemAimbotFinder.GlobalXOffset.Value;
if (ItemAimbotFinder.ShowVisualTargetMarker.Value)
{
SpawnDebugMarker(val);
}
float num = Mathf.Abs(Physics.gravity.y);
if (Mathf.Approximately(num, 0f))
{
num = 9.81f;
}
float num2 = val.y - position.y;
Vector3 val2 = default(Vector3);
((Vector3)(ref val2))..ctor(val.x - position.x, 0f, val.z - position.z);
float num3 = Mathf.Max(val.y, position.y) + ItemAimbotFinder.PeakHeightAboveHoop.Value;
float num4 = num3 - position.y;
float num5 = num3 - val.y;
if (num4 <= 0f || num5 <= 0f)
{
Vector3 val3 = val - position;
Vector3 normalized = ((Vector3)(ref val3)).normalized;
rb.linearVelocity = normalized * 15f;
return;
}
float num6 = Mathf.Sqrt(2f * num * num4);
float num7 = Mathf.Sqrt(2f * num4 / num);
float num8 = Mathf.Sqrt(2f * num5 / num);
float num9 = num7 + num8;
if (!Mathf.Approximately(num9, 0f))
{
float num10 = 1f - rb.linearDamping * num9 * 0.5f;
num10 = Mathf.Clamp(num10, 0.7f, 1f);
Vector3 val4 = val2 / (num9 * num10);
Vector3 val5 = default(Vector3);
((Vector3)(ref val5))..ctor(val4.x, num6, val4.z);
rb.linearVelocity = Vector3.zero;
rb.angularVelocity = Vector3.zero;
rb.AddForce(val5, (ForceMode)2);
}
}
private void SpawnDebugMarker(Vector3 position)
{
//IL_001b: Unknown result type (might be due to invalid IL or missing references)
//IL_0037: Unknown result type (might be due to invalid IL or missing references)
//IL_0071: Unknown result type (might be due to invalid IL or missing references)
//IL_007b: Expected O, but got Unknown
//IL_0082: Unknown result type (might be due to invalid IL or missing references)
try
{
GameObject val = GameObject.CreatePrimitive((PrimitiveType)0);
((Object)val).name = "Aimbot_Target_Indicator";
val.transform.position = position;
val.transform.localScale = new Vector3(0.25f, 0.25f, 0.25f);
Collider val2 = default(Collider);
if (val.TryGetComponent<Collider>(ref val2))
{
Object.Destroy((Object)(object)val2);
}
Renderer val3 = default(Renderer);
if (val.TryGetComponent<Renderer>(ref val3))
{
val3.material = new Material(Shader.Find("Sprites/Default"));
val3.material.color = Color.red;
}
Object.Destroy((Object)(object)val, 3f);
}
catch (Exception ex)
{
Debug.LogError((object)("[Arc Aimbot] Failed to render mod debug tracker sphere: " + ex.Message));
}
}
public void OnOwnershipRequest(PhotonView targetView, Player requestingPlayer)
{
targetView.RequestOwnership();
targetView.TransferOwnership(requestingPlayer);
Plugin.Log.LogInfo((object)("[BasketballMagnet] Ownership requested by Player " + requestingPlayer.UserId + ". Attempting transfer..."));
}
public void OnOwnershipTransfered(PhotonView targetView, Player previousOwner)
{
if ((Object)(object)targetView == (Object)(object)pv && pv.IsMine)
{
ResetState();
FindNearestHoop();
Plugin.Log.LogInfo((object)"[BasketballMagnet] Ownership transfer successful. Assist system active.");
}
}
public void OnOwnershipTransferFailed(PhotonView targetView, Player previousOwner)
{
Plugin.Log.LogInfo((object)"[BasketballMagnet] Ownership transfer failed.");
}
}
internal class BingBongSays
{
[HarmonyPatch(typeof(Action_AskBingBong), "RunAction")]
public static class BingBongPatch
{
[HarmonyPrefix]
public static bool Prefix(Action_AskBingBong __instance)
{
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00a9: Expected O, but got Unknown
if (!enableBingBongPatch.Value)
{
return true;
}
if (bingBongAnswer.Value >= (float)__instance.responses.Length)
{
bingBongAnswer.Value = __instance.responses.Length - 1;
bingBongAnswer = config.Bind<float>("BingBongSays", "BingBongAnswer(rounded down)", bingBongAnswer.Value, new ConfigDescription("The answer to the Bing Bong action. Min: 0, Max: " + (__instance.responses.Length - 1), (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, (float)(__instance.responses.Length - 1)), Array.Empty<object>()));
config.Save();
bingBongAnswer.SettingChanged += delegate
{
if (bingBongAnswer.Value % 1f != 0f)
{
Plugin.Log.LogWarning((object)$"BingBongAnswer value {bingBongAnswer.Value} is not an integer. Rounding down to nearest integer.");
bingBongAnswer.Value = Mathf.FloorToInt(bingBongAnswer.Value);
}
};
}
int num = Mathf.FloorToInt(bingBongAnswer.Value);
((MonoBehaviourPun)((ItemActionBase)__instance).item).photonView.RPC("Ask", (RpcTarget)0, new object[2]
{
num,
Time.time < __instance.lastAsked + 1f
});
return false;
}
}
public static ConfigEntry<float> bingBongAnswer;
public static ConfigEntry<bool> enableBingBongPatch;
private static ConfigFile config;
public static void Start()
{
//IL_0053: Unknown result type (might be due to invalid IL or missing references)
//IL_005d: Expected O, but got Unknown
config = Plugin.config;
enableBingBongPatch = config.Bind<bool>("BingBongSays", "BingBong", false, (ConfigDescription)null);
bingBongAnswer = config.Bind<float>("BingBongSays", "BingBongAnswer(rounded down)", 0f, new ConfigDescription("The answer to the Bing Bong action.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 30f), Array.Empty<object>()));
bingBongAnswer.SettingChanged += delegate
{
if (bingBongAnswer.Value % 1f != 0f)
{
Plugin.Log.LogWarning((object)$"BingBongAnswer value {bingBongAnswer.Value} is not an integer. Rounding down to nearest integer.");
bingBongAnswer.Value = Mathf.FloorToInt(bingBongAnswer.Value);
}
};
}
}
internal class CampfireProtection : MonoBehaviour
{
private Vector3 protectionPoint;
private float timeToCheck = 0f;
private float delayTime = 1f;
private Dictionary<Character, float> playersAtCampfire = new Dictionary<Character, float>();
private Campfire campfire;
private void Awake()
{
//IL_0008: Unknown result type (might be due to invalid IL or missing references)
//IL_000d: Unknown result type (might be due to invalid IL or missing references)
protectionPoint = ((Component)this).transform.position;
campfire = ((Component)this).GetComponent<Campfire>();
}
private void Update()
{
//IL_0055: Unknown result type (might be due to invalid IL or missing references)
//IL_005b: Unknown result type (might be due to invalid IL or missing references)
if (timeToCheck > Time.time)
{
return;
}
timeToCheck = Time.time + delayTime;
foreach (Character allCharacter in Character.AllCharacters)
{
if (!allCharacter.data.dead && Vector3.Distance(protectionPoint, allCharacter.Center) < campfire.moraleBoostRadius)
{
if (playersAtCampfire.ContainsKey(allCharacter))
{
addCampfireEffect(allCharacter.refs.afflictions, campfire);
continue;
}
float currentStatus = allCharacter.refs.afflictions.GetCurrentStatus((STATUSTYPE)1);
playersAtCampfire.Add(allCharacter, currentStatus);
}
}
}
private void addCampfireEffect(CharacterAfflictions c, Campfire campfire)
{
if (PhotonNetwork.IsMasterClient)
{
float[] array = new float[CharacterAfflictions.NumStatusTypes];
float currentStatus = c.GetCurrentStatus((STATUSTYPE)1);
if (currentStatus < playersAtCampfire[c.character])
{
playersAtCampfire[c.character] = currentStatus;
}
float num = currentStatus - playersAtCampfire[c.character];
array[1] = 0f - num;
float currentStatus2 = c.GetCurrentStatus((STATUSTYPE)2);
if (currentStatus2 > 0f)
{
array[2] = 0f - currentStatus2;
}
((MonoBehaviourPun)c).photonView.RPC("RPC_ApplyStatusesFromFloatArray", (RpcTarget)0, new object[1] { array });
}
}
}
internal class canDrop
{
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
public static class CurrentItemPatch
{
[HarmonyPostfix]
private static void Postfix(CharacterData __instance, Item value)
{
if (!((Object)(object)value == (Object)null) && __instance.character.IsLocal && (!value.UIData.canThrow || !value.UIData.canDrop))
{
value.UIData.canThrow = true;
value.UIData.canDrop = true;
}
}
}
}
public class Customizations
{
[HarmonyPatch(typeof(CharacterData), "SetBadgeStatus")]
public static class NoobSashPatch
{
[HarmonyPrefix]
public static bool Prefix(CharacterData __instance)
{
if (!NoobSash.Value)
{
return true;
}
if (!((Component)__instance).GetComponent<Character>().IsLocal)
{
return true;
}
__instance.badgeStatus = new bool[GUIManager.instance.mainBadgeManager.badgeData.Length];
for (int i = 0; i < __instance.badgeStatus.Length; i++)
{
__instance.badgeStatus[i] = false;
}
((MonoBehaviourPun)__instance).photonView.RPC("SyncBadgeStatus", (RpcTarget)0, new object[1] { __instance.badgeStatus });
return false;
}
}
public static ConfigEntry<bool> NoobSash;
public static ConfigEntry<bool> DeadEyes;
public static ConfigEntry<bool> passedOutEyes;
public static ConfigEntry<bool> NormalEyes;
public static void Start()
{
ConfigFile config = Plugin.config;
NoobSash = config.Bind<bool>("Customization", "Noob Sash", false, "Toggle the Noob Sash (hides badges) on/off.");
DeadEyes = config.Bind<bool>("Customization", "Dead Eyes", false, "Toggle the Dead Eyes on/off.");
passedOutEyes = config.Bind<bool>("Customization", "Passed Out Eyes", false, "Toggle the Passed Out Eyes on/off.");
NormalEyes = config.Bind<bool>("Customization", "Normal Eyes", false, "Toggle the Normal Eyes on/off.");
NoobSash.SettingChanged += delegate
{
Plugin.Notification("Noob Sash is " + (NoobSash.Value ? "ON" : "OFF"));
Character localCharacter = Character.localCharacter;
CharacterData val = ((localCharacter != null) ? ((Component)localCharacter).GetComponent<CharacterData>() : null);
if ((Object)(object)val != (Object)null)
{
AccessTools.Method(typeof(CharacterData), "SetBadgeStatus", (Type[])null, (Type[])null).Invoke(val, null);
}
};
DeadEyes.Value = false;
passedOutEyes.Value = false;
NormalEyes.Value = false;
DeadEyes.SettingChanged += delegate
{
Plugin.Notification("Dead Eyes is " + (DeadEyes.Value ? "ON" : "OFF"));
if (DeadEyes.Value)
{
DeadEyes.Value = false;
passedOutEyes.Value = false;
NormalEyes.Value = false;
Character localCharacter = Character.localCharacter;
if ((Object)(object)localCharacter != (Object)null)
{
((MonoBehaviourPun)localCharacter).photonView.RPC("CharacterDied", (RpcTarget)3, Array.Empty<object>());
}
}
};
passedOutEyes.SettingChanged += delegate
{
Plugin.Notification("Passed Out Eyes is " + (passedOutEyes.Value ? "ON" : "OFF"));
if (passedOutEyes.Value)
{
passedOutEyes.Value = false;
DeadEyes.Value = false;
NormalEyes.Value = false;
Character localCharacter = Character.localCharacter;
if ((Object)(object)localCharacter != (Object)null)
{
((MonoBehaviourPun)localCharacter).photonView.RPC("CharacterPassedOut", (RpcTarget)3, Array.Empty<object>());
}
}
};
NormalEyes.SettingChanged += delegate
{
Plugin.Notification("Normal Eyes is " + (NormalEyes.Value ? "ON" : "OFF"));
if (NormalEyes.Value)
{
NormalEyes.Value = false;
DeadEyes.Value = false;
passedOutEyes.Value = false;
Character localCharacter = Character.localCharacter;
if ((Object)(object)localCharacter != (Object)null)
{
((MonoBehaviourPun)localCharacter).photonView.RPC("OnRevive_RPC", (RpcTarget)3, Array.Empty<object>());
}
}
};
}
}
public class ExtraMarshmallows
{
[HarmonyPatch(typeof(MapHandler), "SpawnCampfireItems")]
private class SetCampfire
{
[HarmonyPrefix]
public static bool Prefix(GameObject campfireRoot, bool skipMallows)
{
if (!Object.op_Implicit((Object)(object)campfireRoot) || skipMallows)
{
return true;
}
nextCampfire = campfireRoot.GetComponentInChildren<Campfire>();
if ((Object)(object)nextCampfire == (Object)null)
{
Plugin.Log.LogError((object)"Campfire Component not found");
return true;
}
if (enableCampfireProtection.Value)
{
((Component)nextCampfire).gameObject.AddComponent<CampfireProtection>();
}
if (!isMasterAndEnabled)
{
return true;
}
Plugin.log("Skipping Spawning campfire items for " + ((Object)campfireRoot.gameObject).name);
marshmallows.Clear();
marshmallowsTaken = 0;
charactersThatPickedUp.Clear();
RefreshMarshmallows();
return false;
}
}
[HarmonyPatch(typeof(PlayerConnectionLog))]
private class PlayerConnectionLogPatches
{
[HarmonyPatch("OnPlayerEnteredRoom")]
[HarmonyPostfix]
private static void OnPlayerEnter()
{
if (isMasterAndEnabled)
{
Plugin.log("Someone joined! Updated Marshmallows to:" + playerCount);
RefreshMarshmallows();
}
}
[HarmonyPatch("OnPlayerLeftRoom")]
[HarmonyPostfix]
private static void OnPlayerLeft()
{
if (isMasterAndEnabled)
{
Plugin.log("Someone left! Updated Marshmallows to:" + playerCount);
RefreshMarshmallows();
}
}
}
[HarmonyPatch(typeof(Item))]
private class MarshmallowProtection
{
[HarmonyPatch("RequestPickup")]
[HarmonyPrefix]
private static bool onRequestPickup(Item __instance, PhotonView characterView)
{
if (!PhotonNetwork.IsMasterClient || !enableExtraMarshmallows.Value)
{
return true;
}
if (!marshmallows.Contains(((Component)__instance).gameObject))
{
return true;
}
if (charactersThatPickedUp.Contains(characterView))
{
Plugin.log(((Object)characterView).name + " tried taking another Marshmallow! Unbelieveable...");
__instance.view.RPC("DenyPickupRPC", characterView.Owner, Array.Empty<object>());
return false;
}
charactersThatPickedUp.Add(characterView);
marshmallows.Remove(((Component)__instance).gameObject);
return true;
}
[HarmonyPatch("SetKinematicRPC")]
[HarmonyPostfix]
private static void MarshmallowStandInPlace(Item __instance, bool value, Vector3 position, Quaternion rotation)
{
//IL_0034: Unknown result type (might be due to invalid IL or missing references)
//IL_003f: Unknown result type (might be due to invalid IL or missing references)
if (isMasterAndEnabled && marshmallows.Contains(((Component)__instance).gameObject) && !value)
{
__instance.SetKinematicNetworked(true, ((Component)__instance).transform.position, ((Component)__instance).transform.rotation);
}
}
}
private static ConfigEntry<bool> enableExtraMarshmallows;
private static ConfigEntry<bool> enableCampfireProtection;
private static ConfigEntry<float> hotdogPercent;
public static Campfire nextCampfire;
private static List<GameObject> marshmallows = new List<GameObject>();
private static List<PhotonView> charactersThatPickedUp = new List<PhotonView>();
private static float radius = 2f;
private static int marshmallowsTaken = 0;
private static int playerCount => PhotonNetwork.CurrentRoom.PlayerCount;
private static Vector3 originPoint => ((Component)nextCampfire).transform.position;
private static bool isMasterAndEnabled => PhotonNetwork.IsMasterClient && enableExtraMarshmallows.Value;
public static void Start()
{
//IL_0064: Unknown result type (might be due to invalid IL or missing references)
//IL_006e: Expected O, but got Unknown
enableExtraMarshmallows = Plugin.config.Bind<bool>("Campfire", "Extra Marshmallows", true, (ConfigDescription)null);
enableCampfireProtection = Plugin.config.Bind<bool>("Campfire", "Campfire Protection", true, (ConfigDescription)null);
hotdogPercent = Plugin.config.Bind<float>("Campfire", "Hotdog spawn chance", 33f, new ConfigDescription("from 0 to 100%", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 100f), Array.Empty<object>()));
}
private static void RefreshMarshmallows()
{
//IL_001f: 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)
if ((Object)(object)nextCampfire == (Object)null)
{
return;
}
Vector3 position = ((Component)nextCampfire).transform.position;
foreach (GameObject marshmallow in marshmallows)
{
if ((Object)(object)marshmallow == (Object)null)
{
marshmallowsTaken++;
continue;
}
PhotonView photonView = PunExtensions.GetPhotonView(marshmallow);
if (!((Object)(object)photonView == (Object)null))
{
if (!photonView.IsMine)
{
photonView.RequestOwnership();
}
PhotonNetwork.Destroy(marshmallow);
}
}
marshmallows.Clear();
Plugin.log($"RefreshMarshmallows Called! Taken: {marshmallowsTaken}/{playerCount}");
for (int i = 0; i < playerCount - marshmallowsTaken; i++)
{
SpawnMarshmallow(i);
}
}
private static void SpawnMarshmallow(int partOfCircle)
{
//IL_002b: Unknown result type (might be due to invalid IL or missing references)
//IL_0037: 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)
//IL_0044: Unknown result type (might be due to invalid IL or missing references)
//IL_004f: Unknown result type (might be due to invalid IL or missing references)
//IL_0054: Unknown result type (might be due to invalid IL or missing references)
//IL_0055: Unknown result type (might be due to invalid IL or missing references)
//IL_005a: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_006a: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0083: Unknown result type (might be due to invalid IL or missing references)
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_00ba: Unknown result type (might be due to invalid IL or missing references)
//IL_00bb: Unknown result type (might be due to invalid IL or missing references)
float num = (float)partOfCircle * (MathF.PI * 2f / (float)playerCount);
float num2 = Mathf.Cos(num) * radius;
float num3 = Mathf.Sin(num) * radius;
Vector3 val = originPoint + new Vector3(num2, 0f, num3);
val.y = CastToFloor(val);
Vector3 val2 = originPoint - val;
val2.y = 0f;
Quaternion val3 = Quaternion.LookRotation(val2) * Quaternion.Euler(0f, -90f, 0f);
string text = "0_Items/Marshmallow";
if (Random.value <= hotdogPercent.Value / 100f)
{
text = "0_Items/Glizzy";
}
GameObject val4 = PhotonNetwork.InstantiateRoomObject(text, val, val3, (byte)0, (object[])null);
Item component = val4.GetComponent<Item>();
if ((Object)(object)component != (Object)null)
{
component.SetKinematicNetworked(true);
}
marshmallows.Add(val4);
}
private static float CastToFloor(Vector3 spawnPosition)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0002: Unknown result type (might be due to invalid IL or missing references)
//IL_000c: Unknown result type (might be due to invalid IL or missing references)
//IL_0011: Unknown result type (might be due to invalid IL or missing references)
//IL_0016: 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_002e: Unknown result type (might be due to invalid IL or missing references)
RaycastHit val = default(RaycastHit);
if (Physics.Raycast(spawnPosition + Vector3.up * 5f, Vector3.down, ref val, 10f))
{
return ((RaycastHit)(ref val)).point.y;
}
return spawnPosition.y;
}
}
public class ItemAimbotFinder : MonoBehaviour
{
[Header("Global Scan Settings")]
public float scanInterval = 0.5f;
private float nextScanTime;
private HashSet<int> pendingRequests = new HashSet<int>();
private static ConfigEntry<string> Basketball;
public static ConfigEntry<bool> EnableAssist { get; private set; }
public static ConfigEntry<bool> RageAimbot { get; private set; }
public static ConfigEntry<float> PeakHeightAboveHoop { get; private set; }
public static ConfigEntry<float> HoopEntryHeightOffset { get; private set; }
public static ConfigEntry<bool> ShowVisualTargetMarker { get; private set; }
public static ConfigEntry<float> MinimumThrowSpeedBasketBall { get; private set; }
public static ConfigEntry<float> GlobalXOffset { get; private set; }
public static void Binds()
{
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0072: Expected O, but got Unknown
//IL_00a1: Unknown result type (might be due to invalid IL or missing references)
//IL_00ab: Expected O, but got Unknown
//IL_00da: Unknown result type (might be due to invalid IL or missing references)
//IL_00e4: Expected O, but got Unknown
//IL_0113: Unknown result type (might be due to invalid IL or missing references)
//IL_011d: Expected O, but got Unknown
ConfigFile config = Plugin.config;
EnableAssist = config.Bind<bool>("Basketball", "Enable Assist", true, "Master toggle for the assist system.");
RageAimbot = config.Bind<bool>("Basketball", "RageAim-Bot", false, "When true, runs infinitely without self-destructing. When false, acts as one-time recorrections.");
PeakHeightAboveHoop = config.Bind<float>("Basketball", "Arc", 1.5f, new ConfigDescription("How high above the hoop the ball will reach at the peak of its arc.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 100f), Array.Empty<object>()));
HoopEntryHeightOffset = config.Bind<float>("Basketball", "Hoop Entry Height Offset", 0.5f, new ConfigDescription("An additional upward vertical offset directly above the hoop component to aim for before dropping.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(-2f, 5f), Array.Empty<object>()));
MinimumThrowSpeedBasketBall = config.Bind<float>("Basketball", "Minimum Throw Speed", 4.5f, new ConfigDescription("Minimum velocity magnitude required at release to trigger the physics assist.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 30f), Array.Empty<object>()));
GlobalXOffset = config.Bind<float>("Basketball", "Global X Axis Offset", 0.8f, new ConfigDescription("Manually shifts the target position along Unity's absolute Global X axis to counter steady directional drifting.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(-5f, 5f), Array.Empty<object>()));
ShowVisualTargetMarker = config.Bind<bool>("Basketball", "Show Target Marker Sphere", true, "Spawns a temporary physical red marker sphere in-game where the calculation is aiming.");
Basketball = config.Bind<string>("Basketball", "Basketball ItemName", "Basketball", "The substring used to identify Basketball items in the scene.");
}
private void Update()
{
if (Time.time >= nextScanTime)
{
nextScanTime = Time.time + scanInterval;
ScanAndSetupDynamicItems();
}
}
private void ScanAndSetupDynamicItems()
{
//IL_011c: Unknown result type (might be due to invalid IL or missing references)
//IL_0121: Unknown result type (might be due to invalid IL or missing references)
Item[] array = Object.FindObjectsByType<Item>((FindObjectsSortMode)0);
Item[] array2 = array;
foreach (Item val in array2)
{
if ((Object)(object)val == (Object)null)
{
continue;
}
if ((Object)(object)val.holderCharacter != (Object)null)
{
BasketballMagnet component = ((Component)val).GetComponent<BasketballMagnet>();
if ((Object)(object)component != (Object)null)
{
component.ResetState();
}
continue;
}
GameObject gameObject = ((Component)val).gameObject;
string name = ((Object)gameObject).name;
Rigidbody component2 = gameObject.GetComponent<Rigidbody>();
if ((Object)(object)component2 == (Object)null)
{
continue;
}
PhotonView component3 = gameObject.GetComponent<PhotonView>();
if ((Object)(object)component3 == (Object)null)
{
continue;
}
if (component3.IsMine && pendingRequests.Contains(component3.ViewID))
{
pendingRequests.Remove(component3.ViewID);
}
if (!name.Contains(Basketball.Value) || (!EnableAssist.Value && !RageAimbot.Value))
{
continue;
}
Vector3 linearVelocity = component2.linearVelocity;
if (((Vector3)(ref linearVelocity)).magnitude <= MinimumThrowSpeedBasketBall.Value)
{
continue;
}
if (!component3.IsMine)
{
if (!pendingRequests.Contains(component3.ViewID))
{
pendingRequests.Add(component3.ViewID);
component3.RequestOwnership();
}
}
else
{
EnsureBasketballComponent(gameObject);
}
}
}
private BasketballMagnet EnsureBasketballComponent(GameObject target)
{
BasketballMagnet basketballMagnet = target.GetComponent<BasketballMagnet>();
if ((Object)(object)basketballMagnet == (Object)null)
{
basketballMagnet = target.AddComponent<BasketballMagnet>();
}
return basketballMagnet;
}
}
internal class moveVersion : MonoBehaviour
{
private static ConfigEntry<bool> hideVersionText;
private static ConfigEntry<bool> versionTextLeft;
private static GameObject version;
private static Vector3 previousPos;
public static void Binds()
{
ConfigFile config = Plugin.config;
hideVersionText = config.Bind<bool>("Version Label", "Hide Version", false, (ConfigDescription)null);
versionTextLeft = config.Bind<bool>("Version Label", "Move Version left", true, (ConfigDescription)null);
hideVersionText.SettingChanged += delegate
{
CheckHiddenText();
};
versionTextLeft.SettingChanged += delegate
{
CheckTextLeft();
};
}
private void Awake()
{
//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)
VersionString val = Object.FindAnyObjectByType<VersionString>();
if ((Object)(object)val == (Object)null)
{
Plugin.log("No VersionString in Scene");
Object.Destroy((Object)(object)this);
return;
}
version = ((Component)val).gameObject;
previousPos = version.transform.localPosition;
CheckHiddenText();
CheckTextLeft();
}
private static void CheckTextLeft()
{
//IL_008b: Unknown result type (might be due to invalid IL or missing references)
//IL_0060: Unknown result type (might be due to invalid IL or missing references)
TextMeshProUGUI component = version.GetComponent<TextMeshProUGUI>();
if (versionTextLeft.Value)
{
version.SetActive(true);
hideVersionText.Value = false;
((TMP_Text)component).alignment = (TextAlignmentOptions)260;
((TMP_Text)component).horizontalAlignment = (HorizontalAlignmentOptions)4;
version.transform.localPosition = new Vector3(425f, 540f, 0f);
}
else
{
((TMP_Text)component).alignment = (TextAlignmentOptions)257;
((TMP_Text)component).horizontalAlignment = (HorizontalAlignmentOptions)1;
version.transform.localPosition = previousPos;
}
}
private static void CheckHiddenText()
{
if (hideVersionText.Value)
{
version.SetActive(false);
}
else
{
version.SetActive(true);
}
}
}
public class showNamesAlways
{
[HarmonyPatch(typeof(IsLookedAt))]
public static class IsLookedAtPatches
{
[HarmonyPatch("Update")]
[HarmonyPrefix]
public static bool IsLookAtUpdatePath(IsLookedAt __instance)
{
//IL_0055: Unknown result type (might be due to invalid IL or missing references)
//IL_0060: Unknown result type (might be due to invalid IL or missing references)
//IL_006f: Unknown result type (might be due to invalid IL or missing references)
//IL_0074: Unknown result type (might be due to invalid IL or missing references)
//IL_0103: Unknown result type (might be due to invalid IL or missing references)
if (!AlwaysShowNames.Value)
{
return true;
}
if ((Object)(object)__instance.playerNamePos == (Object)null || (Object)(object)__instance.mouth == (Object)null)
{
return true;
}
bool flag = false;
float num = Vector3.Angle(((Component)MainCamera.instance).transform.forward, ((Component)__instance).transform.position - ((Component)MainCamera.instance).transform.position);
if (num < VisibleAngle.Value)
{
flag = true;
}
if (__instance.mouth.character.data.isBlind)
{
flag = DisplayWhenBlind.Value;
}
FieldInfo fieldInfo = AccessTools.Field(typeof(IsLookedAt), "index");
if (fieldInfo == null)
{
return true;
}
int num2 = (int)fieldInfo.GetValue(__instance);
GUIManager.instance.playerNames.UpdateName(num2, __instance.playerNamePos.position, flag, __instance.mouth.amplitudeIndex);
return false;
}
}
private static ConfigEntry<bool> AlwaysShowNames;
private static ConfigEntry<float> VisibleAngle;
private static ConfigEntry<bool> DisplayWhenBlind;
public static void Start()
{
//IL_0047: Unknown result type (might be due to invalid IL or missing references)
//IL_0051: Expected O, but got Unknown
ConfigFile config = Plugin.config;
AlwaysShowNames = config.Bind<bool>("Tweaks", "Always Show Names", true, (ConfigDescription)null);
VisibleAngle = config.Bind<float>("Tweaks", "Visible Angle", 52f, new ConfigDescription("Visible Angle up to 360 deg", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 360f), Array.Empty<object>()));
DisplayWhenBlind = config.Bind<bool>("Tweaks", "Show When Blind", false, (ConfigDescription)null);
}
}
}
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
{
}
}