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.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("FuckinSphere")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FuckinSphere")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("af98a8a2-0544-4c08-877c-a5b85761bce6")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace FuckinSphere;
[BepInPlugin("atastymelon.fuckinsphere", "Fuckin Sphere", "0.0.0.1")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BaseUnityPlugin
{
private readonly Harmony harmony = new Harmony("fuckinsphere");
internal ManualLogSource mls;
public static Plugin Instance { get; private set; }
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("FuckingSphere");
mls.LogInfo((object)"IM A FUCKING SPHERE");
AssetBundle val = AssetBundle.LoadFromFile(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "fuckinsphere"));
if ((Object)(object)val == (Object)null)
{
mls.LogError((object)"Unable to load assetbundle");
return;
}
Item obj = val.LoadAsset<Item>("assets/FuckinSphere/FuckinSphere.asset");
NetworkPrefabs.RegisterNetworkPrefab(obj.spawnPrefab);
Utilities.FixMixerGroups(obj.spawnPrefab);
Items.RegisterScrap(obj, 5, (LevelTypes)(-1));
harmony.PatchAll();
mls.LogInfo((object)"Sphere Loaded Successfully");
}
}