Decompiled source of BoardSwapPlugin v1.1.0

BoardSwapPlugin.dll

Decompiled 9 months ago
using System;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security.Cryptography;
using System.Text;
using BepInEx;
using BepInEx.Configuration;
using Bounce.Singletons;
using TMPro;
using UnityEngine;
using UnityEngine.SceneManagement;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("BoardSwapPlugin")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BoardSwapPlugin")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("BoardSwapPlugin")]
[assembly: ComVisible(false)]
[assembly: Guid("c303405d-e66c-4316-9cdb-4e3ca15c6360")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.1.0.0")]
namespace LordAshes;

[BepInPlugin("org.lordashes.plugins.boardswap", "Board Swap Plug-In", "1.1.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class BoardSwapPlugin : BaseUnityPlugin
{
	public static class Utility
	{
		public static bool isBoardLoaded()
		{
			return SimpleSingletonBehaviour<CameraController>.HasInstance && SingletonStateMBehaviour<BoardSessionManager, State<BoardSessionManager>>.HasInstance && !BoardSessionManager.IsLoading;
		}

		public static bool StrictKeyCheck(KeyboardShortcut check)
		{
			//IL_002e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0031: Unknown result type (might be due to invalid IL or missing references)
			//IL_003f: Unknown result type (might be due to invalid IL or missing references)
			if (!((KeyboardShortcut)(ref check)).IsUp())
			{
				return false;
			}
			KeyCode[] array = new KeyCode[6];
			RuntimeHelpers.InitializeArray(array, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/);
			KeyCode[] array2 = (KeyCode[])(object)array;
			foreach (KeyCode val in array2)
			{
				if (Input.GetKey(val) != ((KeyboardShortcut)(ref check)).Modifiers.Contains(val))
				{
					return false;
				}
			}
			return true;
		}

		public static Guid GuidFromString(string input)
		{
			using MD5 mD = MD5.Create();
			byte[] b = mD.ComputeHash(Encoding.Default.GetBytes(input));
			return new Guid(b);
		}

		public static string GetCreatureName(string nameBlock)
		{
			if (nameBlock == null)
			{
				return "(Unknown)";
			}
			if (!nameBlock.Contains("<size=0>"))
			{
				return nameBlock;
			}
			return nameBlock.Substring(0, nameBlock.IndexOf("<size=0>")).Trim();
		}

		public static void PostOnMainPage(MemberInfo plugin)
		{
			SceneManager.sceneLoaded += delegate(Scene scene, LoadSceneMode mode)
			{
				//IL_0072: Unknown result type (might be due to invalid IL or missing references)
				//IL_0079: Expected O, but got Unknown
				try
				{
					if (((Scene)(ref scene)).name == "UI")
					{
						TextMeshProUGUI uITextByName = GetUITextByName("BETA");
						if (Object.op_Implicit((Object)(object)uITextByName))
						{
							((TMP_Text)uITextByName).text = "INJECTED BUILD - unstable mods";
						}
					}
					else
					{
						TextMeshProUGUI uITextByName2 = GetUITextByName("TextMeshPro Text");
						if (Object.op_Implicit((Object)(object)uITextByName2))
						{
							BepInPlugin val = (BepInPlugin)Attribute.GetCustomAttribute(plugin, typeof(BepInPlugin));
							if (((TMP_Text)uITextByName2).text.EndsWith("</size>"))
							{
								((TMP_Text)uITextByName2).text = ((TMP_Text)uITextByName2).text + "\n\nMods Currently Installed:\n";
							}
							TextMeshProUGUI val2 = uITextByName2;
							((TMP_Text)val2).text = ((TMP_Text)val2).text + "\nPlugin Masters' " + val.Name + " - " + val.Version;
						}
					}
				}
				catch (Exception ex)
				{
					Debug.Log((object)ex);
				}
			};
		}

		private static TextMeshProUGUI GetUITextByName(string name)
		{
			TextMeshProUGUI[] array = Object.FindObjectsOfType<TextMeshProUGUI>();
			for (int i = 0; i < array.Length; i++)
			{
				if (((Object)array[i]).name == name)
				{
					return array[i];
				}
			}
			return null;
		}
	}

	public const string Name = "Board Swap Plug-In";

	public const string Guid = "org.lordashes.plugins.boardswap";

	public const string Version = "1.1.0.0";

	private ConfigEntry<KeyboardShortcut>[] triggerKeys;

	private ConfigEntry<string>[] triggerBoardNames;

	private void Awake()
	{
		//IL_0079: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
		//IL_00df: Unknown result type (might be due to invalid IL or missing references)
		//IL_0112: Unknown result type (might be due to invalid IL or missing references)
		//IL_0145: Unknown result type (might be due to invalid IL or missing references)
		//IL_0178: Unknown result type (might be due to invalid IL or missing references)
		//IL_01ab: Unknown result type (might be due to invalid IL or missing references)
		//IL_01de: Unknown result type (might be due to invalid IL or missing references)
		//IL_0211: Unknown result type (might be due to invalid IL or missing references)
		//IL_0245: Unknown result type (might be due to invalid IL or missing references)
		//IL_0279: Unknown result type (might be due to invalid IL or missing references)
		//IL_02ad: Unknown result type (might be due to invalid IL or missing references)
		//IL_02e1: Unknown result type (might be due to invalid IL or missing references)
		//IL_0315: Unknown result type (might be due to invalid IL or missing references)
		//IL_0349: Unknown result type (might be due to invalid IL or missing references)
		//IL_037d: Unknown result type (might be due to invalid IL or missing references)
		//IL_03b1: Unknown result type (might be due to invalid IL or missing references)
		//IL_03e5: Unknown result type (might be due to invalid IL or missing references)
		//IL_0419: Unknown result type (might be due to invalid IL or missing references)
		//IL_044d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0481: Unknown result type (might be due to invalid IL or missing references)
		//IL_04b5: Unknown result type (might be due to invalid IL or missing references)
		//IL_04e9: Unknown result type (might be due to invalid IL or missing references)
		//IL_051d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0551: Unknown result type (might be due to invalid IL or missing references)
		//IL_0585: Unknown result type (might be due to invalid IL or missing references)
		//IL_05b9: Unknown result type (might be due to invalid IL or missing references)
		//IL_05ed: Unknown result type (might be due to invalid IL or missing references)
		//IL_0621: Unknown result type (might be due to invalid IL or missing references)
		//IL_0655: Unknown result type (might be due to invalid IL or missing references)
		//IL_0683: Unknown result type (might be due to invalid IL or missing references)
		//IL_06b1: Unknown result type (might be due to invalid IL or missing references)
		Debug.Log((object)("Board Swap Plugin: " + ((object)this).GetType().AssemblyQualifiedName + " Active."));
		AssetDataPlugin.Subscribe("org.lordashes.plugins.boardswap", (Action<DatumChange>)SwapBoard);
		triggerKeys = new ConfigEntry<KeyboardShortcut>[32];
		triggerBoardNames = new ConfigEntry<string>[32];
		triggerKeys[0] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 01", new KeyboardShortcut((KeyCode)49, (KeyCode[])(object)new KeyCode[1] { (KeyCode)307 }), (ConfigDescription)null);
		triggerKeys[1] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 02", new KeyboardShortcut((KeyCode)50, (KeyCode[])(object)new KeyCode[1] { (KeyCode)307 }), (ConfigDescription)null);
		triggerKeys[2] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 03", new KeyboardShortcut((KeyCode)51, (KeyCode[])(object)new KeyCode[1] { (KeyCode)307 }), (ConfigDescription)null);
		triggerKeys[3] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 04", new KeyboardShortcut((KeyCode)52, (KeyCode[])(object)new KeyCode[1] { (KeyCode)307 }), (ConfigDescription)null);
		triggerKeys[4] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 05", new KeyboardShortcut((KeyCode)53, (KeyCode[])(object)new KeyCode[1] { (KeyCode)307 }), (ConfigDescription)null);
		triggerKeys[5] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 06", new KeyboardShortcut((KeyCode)54, (KeyCode[])(object)new KeyCode[1] { (KeyCode)307 }), (ConfigDescription)null);
		triggerKeys[6] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 07", new KeyboardShortcut((KeyCode)55, (KeyCode[])(object)new KeyCode[1] { (KeyCode)307 }), (ConfigDescription)null);
		triggerKeys[7] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 08", new KeyboardShortcut((KeyCode)56, (KeyCode[])(object)new KeyCode[1] { (KeyCode)307 }), (ConfigDescription)null);
		triggerKeys[8] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 09", new KeyboardShortcut((KeyCode)57, (KeyCode[])(object)new KeyCode[1] { (KeyCode)307 }), (ConfigDescription)null);
		triggerKeys[9] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 10", new KeyboardShortcut((KeyCode)48, (KeyCode[])(object)new KeyCode[1] { (KeyCode)307 }), (ConfigDescription)null);
		triggerKeys[10] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 11", new KeyboardShortcut((KeyCode)49, (KeyCode[])(object)new KeyCode[1] { (KeyCode)305 }), (ConfigDescription)null);
		triggerKeys[11] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 12", new KeyboardShortcut((KeyCode)50, (KeyCode[])(object)new KeyCode[1] { (KeyCode)305 }), (ConfigDescription)null);
		triggerKeys[12] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 13", new KeyboardShortcut((KeyCode)51, (KeyCode[])(object)new KeyCode[1] { (KeyCode)305 }), (ConfigDescription)null);
		triggerKeys[13] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 14", new KeyboardShortcut((KeyCode)52, (KeyCode[])(object)new KeyCode[1] { (KeyCode)305 }), (ConfigDescription)null);
		triggerKeys[14] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 15", new KeyboardShortcut((KeyCode)53, (KeyCode[])(object)new KeyCode[1] { (KeyCode)305 }), (ConfigDescription)null);
		triggerKeys[15] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 16", new KeyboardShortcut((KeyCode)54, (KeyCode[])(object)new KeyCode[1] { (KeyCode)305 }), (ConfigDescription)null);
		triggerKeys[16] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 17", new KeyboardShortcut((KeyCode)55, (KeyCode[])(object)new KeyCode[1] { (KeyCode)305 }), (ConfigDescription)null);
		triggerKeys[17] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 18", new KeyboardShortcut((KeyCode)56, (KeyCode[])(object)new KeyCode[1] { (KeyCode)305 }), (ConfigDescription)null);
		triggerKeys[18] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 19", new KeyboardShortcut((KeyCode)57, (KeyCode[])(object)new KeyCode[1] { (KeyCode)305 }), (ConfigDescription)null);
		triggerKeys[19] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 20", new KeyboardShortcut((KeyCode)48, (KeyCode[])(object)new KeyCode[1] { (KeyCode)305 }), (ConfigDescription)null);
		triggerKeys[20] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 21", new KeyboardShortcut((KeyCode)49, (KeyCode[])(object)new KeyCode[1] { (KeyCode)305 }), (ConfigDescription)null);
		triggerKeys[21] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 22", new KeyboardShortcut((KeyCode)50, (KeyCode[])(object)new KeyCode[1] { (KeyCode)303 }), (ConfigDescription)null);
		triggerKeys[22] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 23", new KeyboardShortcut((KeyCode)51, (KeyCode[])(object)new KeyCode[1] { (KeyCode)303 }), (ConfigDescription)null);
		triggerKeys[23] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 24", new KeyboardShortcut((KeyCode)52, (KeyCode[])(object)new KeyCode[1] { (KeyCode)303 }), (ConfigDescription)null);
		triggerKeys[24] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 25", new KeyboardShortcut((KeyCode)53, (KeyCode[])(object)new KeyCode[1] { (KeyCode)303 }), (ConfigDescription)null);
		triggerKeys[25] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 26", new KeyboardShortcut((KeyCode)54, (KeyCode[])(object)new KeyCode[1] { (KeyCode)303 }), (ConfigDescription)null);
		triggerKeys[26] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 27", new KeyboardShortcut((KeyCode)55, (KeyCode[])(object)new KeyCode[1] { (KeyCode)303 }), (ConfigDescription)null);
		triggerKeys[27] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 28", new KeyboardShortcut((KeyCode)56, (KeyCode[])(object)new KeyCode[1] { (KeyCode)303 }), (ConfigDescription)null);
		triggerKeys[28] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 29", new KeyboardShortcut((KeyCode)57, (KeyCode[])(object)new KeyCode[1] { (KeyCode)303 }), (ConfigDescription)null);
		triggerKeys[29] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 30", new KeyboardShortcut((KeyCode)48, (KeyCode[])(object)new KeyCode[1] { (KeyCode)303 }), (ConfigDescription)null);
		triggerKeys[30] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 31", new KeyboardShortcut((KeyCode)282, Array.Empty<KeyCode>()), (ConfigDescription)null);
		triggerKeys[31] = ((BaseUnityPlugin)this).Config.Bind<KeyboardShortcut>("Hotkeys", "Trigger To Select Board 32", new KeyboardShortcut((KeyCode)283, Array.Empty<KeyCode>()), (ConfigDescription)null);
		triggerBoardNames[0] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 01", "ABC", (ConfigDescription)null);
		triggerBoardNames[1] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 02", "DEF", (ConfigDescription)null);
		triggerBoardNames[2] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 03", "", (ConfigDescription)null);
		triggerBoardNames[3] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 04", "", (ConfigDescription)null);
		triggerBoardNames[4] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 05", "", (ConfigDescription)null);
		triggerBoardNames[5] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 06", "", (ConfigDescription)null);
		triggerBoardNames[6] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 07", "", (ConfigDescription)null);
		triggerBoardNames[7] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 08", "", (ConfigDescription)null);
		triggerBoardNames[8] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 09", "", (ConfigDescription)null);
		triggerBoardNames[9] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 10", "", (ConfigDescription)null);
		triggerBoardNames[10] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 11", "", (ConfigDescription)null);
		triggerBoardNames[11] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 12", "", (ConfigDescription)null);
		triggerBoardNames[12] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 13", "", (ConfigDescription)null);
		triggerBoardNames[13] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 14", "", (ConfigDescription)null);
		triggerBoardNames[14] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 15", "", (ConfigDescription)null);
		triggerBoardNames[15] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 16", "", (ConfigDescription)null);
		triggerBoardNames[16] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 17", "", (ConfigDescription)null);
		triggerBoardNames[17] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 18", "", (ConfigDescription)null);
		triggerBoardNames[18] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 19", "", (ConfigDescription)null);
		triggerBoardNames[19] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 20", "", (ConfigDescription)null);
		triggerBoardNames[20] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 21", "", (ConfigDescription)null);
		triggerBoardNames[21] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 22", "", (ConfigDescription)null);
		triggerBoardNames[22] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 23", "", (ConfigDescription)null);
		triggerBoardNames[23] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 24", "", (ConfigDescription)null);
		triggerBoardNames[24] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 25", "", (ConfigDescription)null);
		triggerBoardNames[25] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 26", "", (ConfigDescription)null);
		triggerBoardNames[26] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 27", "", (ConfigDescription)null);
		triggerBoardNames[27] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 28", "", (ConfigDescription)null);
		triggerBoardNames[28] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 29", "", (ConfigDescription)null);
		triggerBoardNames[29] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 30", "", (ConfigDescription)null);
		triggerBoardNames[30] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 31", "", (ConfigDescription)null);
		triggerBoardNames[31] = ((BaseUnityPlugin)this).Config.Bind<string>("Settings", "Name Of Board 32", "", (ConfigDescription)null);
		Utility.PostOnMainPage(((object)this).GetType());
	}

	private void Update()
	{
		//IL_000e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0031: Unknown result type (might be due to invalid IL or missing references)
		if (!Utility.isBoardLoaded() || !CampaignSessionManager.CanPlayerGm(LocalPlayer.Id))
		{
			return;
		}
		for (int i = 0; i < 32; i++)
		{
			try
			{
				if (Utility.StrictKeyCheck(triggerKeys[i].Value))
				{
					try
					{
						Debug.Log((object)("Board Swap Plugin: Requesting Board '" + triggerBoardNames[i].Value + "'"));
						AssetDataPlugin.SendInfo("org.lordashes.plugins.boardswap", triggerBoardNames[i].Value);
					}
					catch (Exception)
					{
						Debug.Log((object)("Board Swap Plugin: Failure To Obtain Board Name For Board " + i));
					}
				}
			}
			catch (Exception)
			{
				Debug.Log((object)("Board Swap Plugin: Failure To Check For Keybord Binding " + i));
			}
		}
	}

	private void SwapBoard(DatumChange request)
	{
		string boardName = request.value.ToString();
		Debug.Log((object)("Board Swap Plugin: Processing Board Swap Request For '" + boardName + "'"));
		CampaignSessionManager.FetchBoardInfoFromServer(0u, false, (Action<uint, BoardInfo[]>)delegate(uint uid, BoardInfo[] boards)
		{
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0024: Unknown result type (might be due to invalid IL or missing references)
			//IL_0025: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0043: Unknown result type (might be due to invalid IL or missing references)
			//IL_0044: Unknown result type (might be due to invalid IL or missing references)
			//IL_0049: Unknown result type (might be due to invalid IL or missing references)
			//IL_0063: Unknown result type (might be due to invalid IL or missing references)
			//IL_0074: Unknown result type (might be due to invalid IL or missing references)
			//IL_0086: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00be: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0109: Unknown result type (might be due to invalid IL or missing references)
			foreach (BoardInfo val in boards)
			{
				string[] obj = new string[8] { "Board Swap Plugin: ", null, null, null, null, null, null, null };
				CampaignGuid campaignId = val.CampaignId;
				obj[1] = ((object)(CampaignGuid)(ref campaignId)).ToString();
				obj[2] = " : ";
				BoardGuid id = val.Id;
				obj[3] = ((object)(BoardGuid)(ref id)).ToString();
				obj[4] = " : ";
				obj[5] = val.BoardName;
				obj[6] = " : ";
				obj[7] = val.Description;
				Debug.Log((object)string.Concat(obj));
				if (val.BoardName.ToUpper() == boardName.ToUpper())
				{
					string[] obj2 = new string[6] { "Board Swap Plugin: Loading ", null, null, null, null, null };
					campaignId = val.CampaignId;
					obj2[1] = ((object)(CampaignGuid)(ref campaignId)).ToString();
					obj2[2] = " : ";
					id = val.Id;
					obj2[3] = ((object)(BoardGuid)(ref id)).ToString();
					obj2[4] = " : ";
					obj2[5] = val.BoardName;
					Debug.Log((object)string.Concat(obj2));
					CampaignSessionManager.LoadBoard(val);
					break;
				}
			}
		}, (Action<uint>)null);
	}
}