using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using LethalLib.Modules;
using Microsoft.CodeAnalysis;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("MeatheadScrap")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Adds a Meathead to the pool of items that can be found as scrap")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("MeatheadScrap")]
[assembly: AssemblyTitle("MeatheadScrap")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace MeatheadScrap
{
[BepInPlugin("randomperson602.meatheadScrap", "Meathead Scrap", "1.0.0")]
public class MeatheadScrapMod : BaseUnityPlugin
{
private const string ModGUID = "randomperson602.meatheadScrap";
private const string ModName = "Meathead Scrap";
private const string ModVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("randomperson602.meatheadScrap");
private static MeatheadScrapMod Instance;
private static AssetBundle MeatheadAssets;
private void Awake()
{
((BaseUnityPlugin)this).Logger.LogInfo((object)"MeatheadScrap has loaded!");
if (Instance == null)
{
Instance = this;
}
MeatheadAssets = AssetBundle.LoadFromFile(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "meatheadassets"));
harmony.PatchAll(typeof(MeatheadScrapMod));
Item val = MeatheadAssets.LoadAsset<Item>("assets/MeatHead.asset");
if (val == null)
{
((BaseUnityPlugin)this).Logger.LogInfo((object)"Failed to load Meathead asset");
return;
}
((BaseUnityPlugin)this).Logger.LogInfo((object)"The Meatheads have rolled in!");
NetworkPrefabs.RegisterNetworkPrefab(val.spawnPrefab);
Items.RegisterScrap(val, 100, (LevelTypes)(-1));
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "MeatheadScrap";
public const string PLUGIN_NAME = "MeatheadScrap";
public const string PLUGIN_VERSION = "1.0.0";
}
}