using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using BepInEx.NET.Common;
using BepInExResoniteShim;
using BepisResoniteWrapper;
using FrooxEngine;
[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+b83c6cb6e35aba2df924c77a11ebfb65bd7d0020")]
[assembly: AssemblyProduct("CreateWorldConfig")]
[assembly: AssemblyTitle("CreateWorldConfig")]
[assembly: AssemblyMetadata("RepositoryUrl", "https://github.com/art0007i/CreateWorldConfig")]
[assembly: AssemblyVersion("2.0.0.0")]
[module: RefSafetyRules(11)]
namespace CreateWorldConfig;
[ResonitePlugin("art0007i.CreateWorldConfig", "CreateWorldConfig", "2.0.0", "art0007i", "https://github.com/art0007i/CreateWorldConfig")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BasePlugin
{
[Serializable]
[CompilerGenerated]
private sealed class <>c
{
public static readonly <>c <>9 = new <>c();
public static Action<Slot> <>9__1_1;
public static Action<Slot> <>9__1_2;
public static Action <>9__1_0;
internal void <Load>b__1_0()
{
DevCreateNewForm.AddAction("Editor", "World Configuration", (Action<Slot>)delegate(Slot s)
{
WorkerInspector.Create(s, (Worker)(object)((Worker)s).World.Configuration, (Predicate<ISyncMember>)null);
});
DevCreateNewForm.AddAction("Editor", "World Permission Controller", (Action<Slot>)delegate(Slot s)
{
WorkerInspector.Create(s, (Worker)(object)((Worker)s).World.Permissions, (Predicate<ISyncMember>)null);
});
}
internal void <Load>b__1_1(Slot s)
{
WorkerInspector.Create(s, (Worker)(object)((Worker)s).World.Configuration, (Predicate<ISyncMember>)null);
}
internal void <Load>b__1_2(Slot s)
{
WorkerInspector.Create(s, (Worker)(object)((Worker)s).World.Permissions, (Predicate<ISyncMember>)null);
}
}
internal static ManualLogSource Log;
public override void Load()
{
//IL_001f: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002a: Expected O, but got Unknown
Log = ((BasePlugin)this).Log;
object obj = <>c.<>9__1_0;
if (obj == null)
{
Action val = delegate
{
DevCreateNewForm.AddAction("Editor", "World Configuration", (Action<Slot>)delegate(Slot s)
{
WorkerInspector.Create(s, (Worker)(object)((Worker)s).World.Configuration, (Predicate<ISyncMember>)null);
});
DevCreateNewForm.AddAction("Editor", "World Permission Controller", (Action<Slot>)delegate(Slot s)
{
WorkerInspector.Create(s, (Worker)(object)((Worker)s).World.Permissions, (Predicate<ISyncMember>)null);
});
};
<>c.<>9__1_0 = val;
obj = (object)val;
}
ResoniteHooks.OnEngineReady += (Action)obj;
}
}
public static class PluginMetadata
{
public const string GUID = "art0007i.CreateWorldConfig";
public const string NAME = "CreateWorldConfig";
public const string VERSION = "2.0.0";
public const string AUTHORS = "art0007i";
public const string REPOSITORY_URL = "https://github.com/art0007i/CreateWorldConfig";
}