using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Bootstrap;
using Microsoft.CodeAnalysis;
using On.RoR2.UI;
using RoR2.UI;
using UnityEngine;
[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("com.riskofresources.ModList")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Lists loaded mods at the end of a run")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+95277059d40a4158fdc29daea3ea6878699df981")]
[assembly: AssemblyProduct("ModList")]
[assembly: AssemblyTitle("com.riskofresources.ModList")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.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 ModList
{
[BepInPlugin("com.riskofresources.ModList", "ModList", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
private void Awake()
{
//IL_0019: Unknown result type (might be due to invalid IL or missing references)
//IL_0023: Expected O, but got Unknown
((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin com.riskofresources.ModList is loaded!");
GameEndReportPanelController.SetDisplayData += new hook_SetDisplayData(RunReportOnGenerate);
}
private void OnDestroy()
{
//IL_0008: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Expected O, but got Unknown
GameEndReportPanelController.SetDisplayData -= new hook_SetDisplayData(RunReportOnGenerate);
}
private void RunReportOnGenerate(orig_SetDisplayData orig, GameEndReportPanelController self, DisplayData newDisplayData)
{
//IL_007a: Unknown result type (might be due to invalid IL or missing references)
if (!Object.op_Implicit((Object)(object)ConsoleWindow.instance))
{
Object.Instantiate<GameObject>(Resources.Load<GameObject>("Prefabs/UI/ConsoleWindow")).GetComponent<ConsoleWindow>();
}
Debug.Log((object)"Loaded Plugins:");
foreach (KeyValuePair<string, PluginInfo> pluginInfo in Chainloader.PluginInfos)
{
Debug.Log((object)((object)pluginInfo.Value).ToString());
}
orig.Invoke(self, newDisplayData);
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "com.riskofresources.ModList";
public const string PLUGIN_NAME = "ModList";
public const string PLUGIN_VERSION = "1.0.0";
}
}