using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using LethalLib.Modules;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("GlorpScrap")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GlorpScrap")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("677572e8-7194-4223-bcd6-d75a6af1114e")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace GlorpScrap;
[BepInPlugin("glorpyglorpglorpfrot", "GlorpScrap", "1.0.0.0")]
public class GlorpMain : BaseUnityPlugin
{
private const string modGUID = "glorpyglorpglorpfrot";
private const string modName = "GlorpScrap";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("glorpyglorpglorpfrot");
private static GlorpMain Instance;
internal ManualLogSource mls;
public static AssetBundle MyCustomAssets;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "glorpitem");
MyCustomAssets = AssetBundle.LoadFromFile(text);
Item val = MyCustomAssets.LoadAsset<Item>("Assets/GlorpItem.asset");
NetworkPrefabs.RegisterNetworkPrefab(val.spawnPrefab);
Utilities.FixMixerGroups(val.spawnPrefab);
Items.RegisterScrap(val, 45, (LevelTypes)(-1));
TerminalNode val2 = ScriptableObject.CreateInstance<TerminalNode>();
val2.clearPreviousText = true;
val2.displayText = "Glorpy Glorp Glorp Vorp?";
Items.RegisterShopItem(val, (TerminalNode)null, (TerminalNode)null, val2, 0);
mls = Logger.CreateLogSource("glorpyglorpglorpfrot");
mls.LogInfo((object)"Mod Awake");
}
}