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 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 = "")]
[assembly: IgnoresAccessChecksTo("")]
[assembly: AssemblyCompany("scannerScrap")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Scanner Scrap by digithulhu")]
[assembly: AssemblyFileVersion("0.0.2.0")]
[assembly: AssemblyInformationalVersion("0.0.2")]
[assembly: AssemblyProduct("scannerScrap")]
[assembly: AssemblyTitle("scannerScrap")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.2.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 MyFirstPlugin
{
[BepInPlugin("scannerScrap", "scannerScrap", "0.0.2")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BaseUnityPlugin
{
private static AssetBundle myAssBundle;
private void Awake()
{
string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
myAssBundle = AssetBundle.LoadFromFile(Path.Combine(directoryName, "digithulhu_scanner"));
string[] allAssetNames = myAssBundle.GetAllAssetNames();
foreach (string text in allAssetNames)
{
((BaseUnityPlugin)this).Logger.LogInfo((object)("scannerScrap loading Items: " + text));
}
if ((Object)(object)myAssBundle == (Object)null)
{
((BaseUnityPlugin)this).Logger.LogWarning((object)"Failed to load custom assets.");
return;
}
Item val = myAssBundle.LoadAsset<Item>("scannerscrap.asset");
NetworkPrefabs.RegisterNetworkPrefab(val.spawnPrefab);
Utilities.FixMixerGroups(val.spawnPrefab);
Items.RegisterShopItem(val, 1);
((BaseUnityPlugin)this).Logger.LogInfo((object)("Plugin scannerScrap is loaded!" + val.itemName));
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "scannerScrap";
public const string PLUGIN_NAME = "scannerScrap";
public const string PLUGIN_VERSION = "0.0.2";
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}