using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using InControl; using Jotunn.Utils; using Microsoft.CodeAnalysis; using ModdingUtils.Utils; using SandboxImprovements.Utilities; using TMPro; using UnboundLib; using UnboundLib.GameModes; using UnboundLib.Utils; using UnboundLib.Utils.UI; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.Events; using UnityEngine.SceneManagement; using UnityEngine.UI; using UnityEngine.UI.ProceduralImage; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETFramework,Version=v4.7.1", FrameworkDisplayName = ".NET Framework 4.7.1")] [assembly: AssemblyVersion("0.0.0.0")] [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 SandboxImprovements { internal class aiToggle { internal static bool aiEnabled = true; internal static void ToggleAI() { aiEnabled = !aiEnabled; foreach (Player player in PlayerManager.instance.players) { PlayerAI componentInChildren = ((Component)player).GetComponentInChildren(); if ((Object)(object)componentInChildren != (Object)null) { ((Behaviour)componentInChildren).enabled = aiEnabled; } PlayerAIPhilip componentInChildren2 = ((Component)player).GetComponentInChildren(); if ((Object)(object)componentInChildren2 != (Object)null) { ((Behaviour)componentInChildren2).enabled = aiEnabled; } } } } [HarmonyPatch(typeof(PlayerAI))] public class PlayerAIPatch { [HarmonyPatch("Start")] [HarmonyPostfix] private static void Start(PlayerAI __instance) { ((Behaviour)__instance).enabled = aiToggle.aiEnabled; } } internal class PlayerButton : MonoBehaviour { public int playerID; public void SelectPlayer() { if (playerID == -1) { CardSpawnMenuHandler.instance.selectedPlayers.Clear(); { foreach (GameObject value in CardSpawnMenuHandler.instance.playerButtons.Values) { ((Component)value.transform.GetChild(0)).gameObject.SetActive(false); } return; } } if (CardSpawnMenuHandler.instance.selectedPlayers.Contains(playerID)) { ((Component)((Component)this).transform.GetChild(0)).gameObject.SetActive(false); CardSpawnMenuHandler.instance.selectedPlayers.Remove(playerID); } else { ((Component)((Component)this).transform.GetChild(0)).gameObject.SetActive(true); CardSpawnMenuHandler.instance.selectedPlayers.Add(playerID); } } } [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("com.rsmind.rounds.sandboximprovements", "Sandbox Improvements", "1.1.2")] [BepInProcess("Rounds.exe")] public class SandboxImprovements : BaseUnityPlugin { [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static UnityAction <>9__15_0; public static UnityAction <>9__16_0; public static UnityAction <>9__16_1; public static UnityAction <>9__24_0; internal void b__15_0() { } internal void b__16_0() { MapSelectMenuHandler.instance.mapMenuCanvas.SetActive(true); MapSelectMenuHandler.instance.UpdateEnabledMaps(); Animator[] componentsInChildren = ((Component)MapSelectMenuHandler.CategoryContent).GetComponentsInChildren(); foreach (Animator val in componentsInChildren) { val.SetTrigger(((Component)MapSelectMenuHandler.ScrollViews[((Object)((Component)((Component)val).gameObject.GetComponentInParent