using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Reflection;
using System.Resources;
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("TestMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TestMod")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("45549d14-0067-4ba6-b7a8-8a320e4fdd88")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace BrozAdditions
{
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInPlugin("TheBrozAdditions", "TheBroz's Additions", "1.0.0.0")]
public class TestModBase : BaseUnityPlugin
{
private const string modGUID = "TheBrozAdditions";
private const string modName = "TheBroz's Additions";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("TheBrozAdditions");
private static TestModBase Instance;
public static ManualLogSource Log;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
Log = Logger.CreateLogSource("TheBrozAdditions");
Log.LogInfo((object)"TheBroz's Additions-1.0.0.0 has loaded!");
AssetBundle val = AssetBundle.LoadFromMemory(Resource1.swisscheese);
if ((Object)(object)val == (Object)null)
{
Log.LogFatal((object)"Could not find AssetBundle \"swisscheese.\" Does it exist?");
}
else
{
PhysicsProp component = val.LoadAsset<GameObject>("swiss").GetComponent<PhysicsProp>();
if ((Object)(object)component == (Object)null)
{
Log.LogFatal((object)"Could not find Item in \"swiss.\" Does it exist?");
}
else
{
Log.LogInfo((object)$"Swiss: Does ItemProperties exist? {(Object)(object)((GrabbableObject)component).itemProperties != (Object)null}");
if ((Object)(object)((GrabbableObject)component).itemProperties != (Object)null)
{
Log.LogInfo((object)("ITEM NAME: " + ((GrabbableObject)component).itemProperties.itemName));
}
Items.RegisterScrap(((GrabbableObject)component).itemProperties, 4, (LevelTypes)510);
NetworkPrefabs.RegisterNetworkPrefab(((GrabbableObject)component).itemProperties.spawnPrefab);
Log.LogInfo((object)"Loaded item \"Swiss\" as Scrap successfully!");
}
}
harmony.PatchAll(typeof(TestModBase));
}
}
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[DebuggerNonUserCode]
[CompilerGenerated]
internal class Resource1
{
private static ResourceManager resourceMan;
private static CultureInfo resourceCulture;
[EditorBrowsable(EditorBrowsableState.Advanced)]
internal static ResourceManager ResourceManager
{
get
{
if (resourceMan == null)
{
ResourceManager resourceManager = new ResourceManager("BrozAdditions.Resource1", typeof(Resource1).Assembly);
resourceMan = resourceManager;
}
return resourceMan;
}
}
[EditorBrowsable(EditorBrowsableState.Advanced)]
internal static CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
internal static byte[] swisscheese
{
get
{
object @object = ResourceManager.GetObject("swisscheese", resourceCulture);
return (byte[])@object;
}
}
internal Resource1()
{
}
}
}
namespace BrozAdditions.Patches
{
internal class SwissItem
{
public void Init()
{
}
}
internal class NewThreat
{
}
}