using System;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using Game.UI.Menu;
using HarmonyLib;
using Microsoft.CodeAnalysis;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("DevPlaygroundOptions")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyInformationalVersion("0.1.0+01cc7075397addfbe77f6dc621923d04f2aa3e84")]
[assembly: AssemblyProduct("DevPlaygroundOptions")]
[assembly: AssemblyTitle("DevPlaygroundOptions")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.1.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace DevPlaygroundOptions
{
[BepInPlugin("DevPlaygroundOptions", "DevPlaygroundOptions", "0.1.0")]
public class Plugin : BaseUnityPlugin
{
private void Awake()
{
Harmony val = Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), "DevPlaygroundOptions_Cities2Harmony");
MethodBase[] array = val.GetPatchedMethods().ToArray();
((BaseUnityPlugin)this).Logger.LogInfo((object)("Plugin DevPlaygroundOptions is loaded! Patched methods " + array.Length));
MethodBase[] array2 = array;
foreach (MethodBase methodBase in array2)
{
((BaseUnityPlugin)this).Logger.LogInfo((object)("Patched method: " + methodBase.Module.Name + ":" + methodBase.Name));
}
}
}
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "DevPlaygroundOptions";
public const string PLUGIN_NAME = "DevPlaygroundOptions";
public const string PLUGIN_VERSION = "0.1.0";
}
}
namespace DevPlaygroundOptions.Patches
{
[HarmonyPatch(typeof(AutomaticSettings), "IsDeveloperOnly")]
internal class AutomaticSettings_Patches
{
private static bool Prefix(PropertyInfo property, ref bool __result)
{
__result = false;
return false;
}
}
}