using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Unity.IL2CPP;
using CellMenu;
using HarmonyLib;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using Microsoft.CodeAnalysis;
using SNetwork;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("ForceDrop")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("ForceDrop")]
[assembly: AssemblyTitle("ForceDrop")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
internal sealed class NullableAttribute : Attribute
{
public readonly byte[] NullableFlags;
public NullableAttribute(byte P_0)
{
NullableFlags = new byte[1] { P_0 };
}
public NullableAttribute(byte[] P_0)
{
NullableFlags = P_0;
}
}
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
internal sealed class NullableContextAttribute : Attribute
{
public readonly byte Flag;
public NullableContextAttribute(byte P_0)
{
Flag = P_0;
}
}
}
namespace ForceDrop
{
[BepInPlugin("JishWasha.ForceDrop", "ForceDrop", "0.0.1")]
public class EntryPoint : BasePlugin
{
public override void Load()
{
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
Harmony val = new Harmony("JishWasha.ForceDrop");
((BasePlugin)this).Log.LogMessage((object)"Forcedrop is loaded");
val.PatchAll();
}
public override bool Unload()
{
return ((BasePlugin)this).Unload();
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "JishWasha.ForceDrop";
public const string PLUGIN_NAME = "ForceDrop";
public const string PLUGIN_VERSION = "0.0.1";
public const string AUTHOR = "time1pm";
public const string BRANCH = "DropBETA";
public const string INTERNAL_VERSION = "000001";
}
[HarmonyPatch]
public class UI
{
[HarmonyPostfix]
[HarmonyPatch(typeof(CM_PageLoadout), "UpdateReadyState")]
private static void ForceStart(CM_PageLoadout __instance)
{
if (SNet.IsMaster)
{
((Component)__instance.m_dropButton).gameObject.SetActive(true);
}
foreach (CM_PlayerLobbyBar item in (Il2CppArrayBase<CM_PlayerLobbyBar>)(object)__instance.m_playerLobbyBars)
{
if (SNet.IsMaster && (Object)(object)item.m_player != (Object)null && item.m_player.IsLocal)
{
((Component)item).gameObject.SetActive(true);
item.HideLoadoutUI(false, false);
}
}
}
}
}