using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
[assembly: AssemblyCompany("REPOPlugin")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("REPOPlugin")]
[assembly: AssemblyTitle("REPOPlugin")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace REPOPlugin;
public static class ConfigManager
{
[field: CompilerGenerated]
[field: DebuggerBrowsable(/*Could not decode attribute arguments.*/)]
public static ConfigEntry<string> Message
{
[CompilerGenerated]
get;
[CompilerGenerated]
set;
}
public static void Initialize(ConfigFile config)
{
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
//IL_0026: Expected O, but got Unknown
Message = config.Bind<string>("Settings", "message", "default_message", new ConfigDescription("Displayed message", (AcceptableValueBase)null, global::System.Array.Empty<object>()));
}
}
internal class Info
{
public const string id = "Goldy.testMod";
public const string name = "testMod";
public const string version = "1.0.0";
}
[BepInPlugin("com.name.repo.testmod", "REPO Test Mod", "1.0.0")]
public class TestMod : BaseUnityPlugin
{
private void Awake()
{
ConfigManager.Initialize(((BaseUnityPlugin)this).Config);
((BaseUnityPlugin)this).Logger.LogInfo((object)("Message: " + ConfigManager.Message.Value));
}
private void Start()
{
((BaseUnityPlugin)this).Logger.LogInfo((object)"Start");
}
private void Update()
{
((BaseUnityPlugin)this).Logger.LogInfo((object)"Update");
}
}