using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using BepInEx.NET.Common; using BepInExResoniteShim; using Elements.Core; using FrooxEngine; using HarmonyLib; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(/*Could not decode attribute arguments.*/)] [assembly: TargetFramework(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")] [assembly: AssemblyCompany("art0007i")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("2.0.0.0")] [assembly: AssemblyInformationalVersion("2.0.0+ec24da154e400714102ad700cd856ece78153fe4")] [assembly: AssemblyProduct("ImportCompactor")] [assembly: AssemblyTitle("ImportCompactor")] [assembly: AssemblyMetadata("RepositoryUrl", "https://github.com/art0007i/ImportCompactor")] [assembly: AssemblyVersion("2.0.0.0")] [module: RefSafetyRules(11)] namespace ImportCompactor; [ResonitePlugin("art0007i.ImportCompactor", "ImportCompactor", "2.0.0", "art0007i", "https://github.com/art0007i/ImportCompactor")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BasePlugin { [HarmonyPatch(typeof(UniversalImporter), "GridOffset")] private class ImportCompactorPatch { public static void Postfix(ref float3 __result) { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) __result = (ref __result) * ScaleFactor.Value; } } internal static ManualLogSource Log; internal static ConfigEntry ScaleFactor; public override void Load() { Log = ((BasePlugin)this).Log; ScaleFactor = ((BasePlugin)this).Config.Bind("General", "ScaleFactor", 0.75f, "Multiplies the position of each import by this value."); ((BasePlugin)this).HarmonyInstance.PatchAll(); } } public static class PluginMetadata { public const string GUID = "art0007i.ImportCompactor"; public const string NAME = "ImportCompactor"; public const string VERSION = "2.0.0"; public const string AUTHORS = "art0007i"; public const string REPOSITORY_URL = "https://github.com/art0007i/ImportCompactor"; }