using System;
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.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using Steamworks;
[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("murderminemurder, murderminer")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("adds to SteamViewPlayers")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("RecentlyPlayedWith")]
[assembly: AssemblyTitle("adds to SteamViewPlayers")]
[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 retardcrusher
{
[BepInPlugin("murderminemurderer.RecentlyPlayedWith", "RecentlyPlayedWith", "1.0.0")]
[BepInProcess("MageArena.exe")]
public class euthanizetheretarded : BaseUnityPlugin
{
public static ManualLogSource Logger;
public static bool debug = false;
public const string guid = "murderminemurderer.RecentlyPlayedWith";
public static string modsync = "client";
internal void Awake()
{
//IL_0021: Unknown result type (might be due to invalid IL or missing references)
Logger = ((BaseUnityPlugin)this).Logger;
Logger.LogInfo((object)"RecentlyPlayedWith loaded");
new Harmony("murderminemurderer.RecentlyPlayedWith").PatchAll();
}
}
[HarmonyPatch]
public class blood
{
[HarmonyPatch(typeof(BootstrapManager), "OnLobbyChatUpdate")]
[HarmonyPrefix]
private static void maniac(LobbyChatUpdate_t callback)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_0008: Unknown result type (might be due to invalid IL or missing references)
//IL_000a: Invalid comparison between Unknown and I4
//IL_0011: Unknown result type (might be due to invalid IL or missing references)
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
//IL_001d: Unknown result type (might be due to invalid IL or missing references)
EChatMemberStateChange val = (EChatMemberStateChange)callback.m_rgfChatMemberStateChange;
if ((int)val == 1)
{
CSteamID playedWith = (CSteamID)callback.m_ulSteamIDUserChanged;
SteamFriends.SetPlayedWith(playedWith);
}
}
[HarmonyPatch(typeof(BootstrapManager), "OnLobbyEntered")]
[HarmonyPostfix]
private static void antiantianti(LobbyEnter_t callback)
{
//IL_002e: Unknown result type (might be due to invalid IL or missing references)
//IL_0013: Unknown result type (might be due to invalid IL or missing references)
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
CSteamID val = default(CSteamID);
((CSteamID)(ref val))..ctor(BootstrapManager.CurrentLobbyID);
for (int i = 0; i < SteamMatchmaking.GetNumLobbyMembers(val); i++)
{
try
{
SteamFriends.SetPlayedWith(SteamMatchmaking.GetLobbyMemberByIndex(val, i));
}
catch (Exception)
{
}
}
}
}
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "RecentlyPlayedWith";
public const string PLUGIN_NAME = "RecentlyPlayedWith";
public const string PLUGIN_VERSION = "1.0.0";
}
}