using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.NET.Common;
using BepInExResoniteShim;
using FrooxEngine;
using HarmonyLib;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
[assembly: AssemblyCompany("eia485")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.1.0")]
[assembly: AssemblyInformationalVersion("1.0.1+7cd13a7ee28d73b2de6140938028908ddc659000")]
[assembly: AssemblyProduct("AllowCompSpawn")]
[assembly: AssemblyTitle("AllowCompSpawn")]
[assembly: AssemblyMetadata("RepositoryUrl", "https://github.com/EIA485/NeosAllowCompSpawn")]
[assembly: AssemblyVersion("1.0.1.0")]
[module: RefSafetyRules(11)]
namespace AllowCompSpawn;
[ResonitePlugin("net.eia485.AllowCompSpawn", "AllowCompSpawn", "1.0.1", "eia485", "https://github.com/EIA485/NeosAllowCompSpawn")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class AllowCompSpawn : BasePlugin
{
[HarmonyPatch(typeof(ReferenceProxy), "Construct")]
private class allowCompSpawnPatch
{
public static void Prefix(ref bool downSpawnInstance)
{
downSpawnInstance = false;
}
}
public override void Load()
{
((BasePlugin)this).HarmonyInstance.PatchAll();
}
}
public static class PluginMetadata
{
public const string GUID = "net.eia485.AllowCompSpawn";
public const string NAME = "AllowCompSpawn";
public const string VERSION = "1.0.1";
public const string AUTHORS = "eia485";
public const string REPOSITORY_URL = "https://github.com/EIA485/NeosAllowCompSpawn";
}