Decompiled source of MedievalPlus v1.0.2

MedievalPlus.dll

Decompiled 6 months ago
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using DM;
using FunctionMedPlus;
using HarmonyLib;
using Landfall.TABS;
using Landfall.TABS.AI.Components.Modifiers;
using Landfall.TABS.GameState;
using Landfall.TABS.UnitEditor;
using Landfall.TABS.Workshop;
using MedievalPlus;
using SLMA;
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("Expansionary")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("GeeztJeez")]
[assembly: AssemblyProduct("MedievalPlus")]
[assembly: AssemblyCopyright("Copyright ©  2021")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("7acfaef0-7669-4401-8bff-5a9a02e18c75")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace MedievalPlus
{
	public static class UManager
	{
		public class Utility : MonoBehaviour
		{
			public static class PrimitiveHelper
			{
				private static Dictionary<PrimitiveType, Mesh> primitiveMeshes;

				public static GameObject CreatePrimitive(PrimitiveType type, bool withCollider)
				{
					//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_0022: Unknown result type (might be due to invalid IL or missing references)
					//IL_002d: Unknown result type (might be due to invalid IL or missing references)
					//IL_0035: Expected O, but got Unknown
					//IL_0003: Unknown result type (might be due to invalid IL or missing references)
					if (withCollider)
					{
						return GameObject.CreatePrimitive(type);
					}
					GameObject val = new GameObject(((object)(PrimitiveType)(ref type)).ToString());
					val.AddComponent<MeshFilter>().sharedMesh = GetPrimitiveMesh(type);
					val.AddComponent<MeshRenderer>();
					return val;
				}

				public static Mesh GetPrimitiveMesh(PrimitiveType type)
				{
					//IL_0005: Unknown result type (might be due to invalid IL or missing references)
					//IL_0019: Unknown result type (might be due to invalid IL or missing references)
					//IL_000d: Unknown result type (might be due to invalid IL or missing references)
					if (!primitiveMeshes.ContainsKey(type))
					{
						CreatePrimitiveMesh(type);
					}
					return primitiveMeshes[type];
				}

				private static Mesh CreatePrimitiveMesh(PrimitiveType type)
				{
					//IL_0000: 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)
					GameObject obj = GameObject.CreatePrimitive(type);
					Mesh sharedMesh = obj.GetComponent<MeshFilter>().sharedMesh;
					Object.Destroy((Object)(object)obj);
					primitiveMeshes[type] = sharedMesh;
					return sharedMesh;
				}

				static PrimitiveHelper()
				{
					primitiveMeshes = new Dictionary<PrimitiveType, Mesh>();
				}
			}

			public static class ItemCategorizer
			{
				public static void SetTag(GameObject item, string categoryName = "FACTION_MEDIEVAL", TagType tagType = 0)
				{
					//IL_0018: Unknown result type (might be due to invalid IL or missing references)
					//IL_0020: Unknown result type (might be due to invalid IL or missing references)
					//IL_0021: Unknown result type (might be due to invalid IL or missing references)
					//IL_002e: Unknown result type (might be due to invalid IL or missing references)
					try
					{
						CharacterItem componentInChildren = item.GetComponentInChildren<CharacterItem>();
						if (Object.op_Implicit((Object)(object)componentInChildren))
						{
							componentInChildren.tags = new List<Tag>
							{
								new Tag
								{
									tagType = tagType,
									value = categoryName
								}
							};
						}
					}
					catch (Exception ex)
					{
						Debug.Log((object)ex);
					}
				}
			}

			public static Sprite LoadBundleTextureToSprite(string name)
			{
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Expected O, but got Unknown
				//IL_0031: Unknown result type (might be due to invalid IL or missing references)
				//IL_0040: Unknown result type (might be due to invalid IL or missing references)
				Texture2D val = (Texture2D)bundle.LoadAsset(name);
				((Texture)val).filterMode = (FilterMode)0;
				return Sprite.Create(val, new Rect(0f, 0f, (float)((Texture)val).width, (float)((Texture)val).height), new Vector2(0.5f, 0.5f));
			}

			public static GameObject LoadBundleGameObject(string name)
			{
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Expected O, but got Unknown
				return (GameObject)bundle.LoadAsset(name);
			}

			public static AudioClip LoadBundleAudioClip(string name)
			{
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Expected O, but got Unknown
				return (AudioClip)bundle.LoadAsset(name);
			}

			public static Material LoadBundleMaterial(string name)
			{
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Expected O, but got Unknown
				return (Material)bundle.LoadAsset(name);
			}

			public static RuntimeAnimatorController LoadBundleController(string name)
			{
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Expected O, but got Unknown
				return (RuntimeAnimatorController)bundle.LoadAsset(name);
			}
		}

		public static string comment;

		public static AssetBundle bundle;

		public static void Init(LandfallContentDatabase db)
		{
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Expected O, but got Unknown
			//IL_0060: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Expected O, but got Unknown
			//IL_01a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ae: Expected O, but got Unknown
			//IL_01ce: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d9: Expected O, but got Unknown
			//IL_0433: Unknown result type (might be due to invalid IL or missing references)
			//IL_0447: Expected O, but got Unknown
			//IL_065f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0673: Expected O, but got Unknown
			//IL_06a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_06b5: Expected O, but got Unknown
			//IL_06e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_06f7: Expected O, but got Unknown
			//IL_0725: Unknown result type (might be due to invalid IL or missing references)
			//IL_0739: Expected O, but got Unknown
			//IL_07e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_07f5: Expected O, but got Unknown
			//IL_0823: Unknown result type (might be due to invalid IL or missing references)
			//IL_0837: Expected O, but got Unknown
			//IL_0865: Unknown result type (might be due to invalid IL or missing references)
			//IL_0879: Expected O, but got Unknown
			//IL_08a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_08bb: Expected O, but got Unknown
			LoadBundle("medievalplusbundle");
			Sprite val = (Sprite)SLMALoader.SDic["sprites"]["Icons_128x128_Swordsman2"];
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Customizing Faction";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Faction val2 = (Faction)SLMALoader.SDic["factions"]["Medieval"];
			s.SetField<Faction>(val2, "m_isSecret", (object)true);
			s.SetField<Faction>(val2, "m_lockSecrets", (object)true);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Units";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "--------- Medieval++ ----------";
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Scavenger", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_scavenger")), val2, 4);
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Pavise Crossbowman", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_pavisecrossbowman")), val2, 5);
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Battering Ram", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_batteringram")), val2, 8);
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Winged Hussar", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_wingedhussar")), val2, 10);
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Hunter Knight", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_hunterknight")), val2, 11);
			SLMATool.AddUnitToFaction(SLMATool.CreateUnit("Subjugator", (UnitBlueprint)null, (Faction)null, Utility.LoadBundleTextureToSprite("icon_subjugator")), val2, 12);
			SLMATool.CreateUnit("Militum Ex Deus", (UnitBlueprint)null, val2, Utility.LoadBundleTextureToSprite("icon_militumexeeus"));
			comment = "--------- Subunits ----------";
			SLMATool.CreateUnit("Battering Ram Rider", (UnitBlueprint)null, (Faction)SLMALoader.SDic["factions"]["Subunits"], val);
			SLMATool.CreateUnit("Winged Hussar Rider", (UnitBlueprint)null, (Faction)SLMALoader.SDic["factions"]["Subunits"], val);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Weapons";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("MantisScythe", Utility.LoadBundleGameObject("MantisScythe"), true, (HideFlags)52, val, 75425324, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("PaviseCrossbow", Utility.LoadBundleGameObject("PaviseCrossbow"), true, (HideFlags)52, val, 5234123, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("WingedHussarLance", Utility.LoadBundleGameObject("WingedHussarLance"), true, (HideFlags)52, val, 64532423, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("GunAxe", Utility.LoadBundleGameObject("GunAxe"), true, (HideFlags)52, val, 766546345, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("SubjugatorTitanShield", Utility.LoadBundleGameObject("SubjugatorTitanShield"), true, (HideFlags)52, val, 5342342, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("SubjugatorSword", Utility.LoadBundleGameObject("SubjugatorSword"), true, (HideFlags)52, val, 4563543, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("TemplarMetalSpear", Utility.LoadBundleGameObject("TemplarMetalSpear"), true, (HideFlags)52, val, 6345453, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("TemplarMetalSword", Utility.LoadBundleGameObject("TemplarMetalSword"), true, (HideFlags)52, val, 63454234, true), "FACTION_MEDIEVAL", (TagType)0);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Abilities";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_Scavenge", Utility.LoadBundleGameObject("Move_Scavenge"), true, (HideFlags)52, val, 643523432, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_Pavise", Utility.LoadBundleGameObject("Move_Pavise"), true, (HideFlags)52, val, 42343212, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_SubjugationDeath", Utility.LoadBundleGameObject("Move_SubjugationDeath"), true, (HideFlags)52, val, 5234312, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_DeterminantLaugh", (GameObject)SLMALoader.SDic["moves"]["Head_up"], true, (HideFlags)52, val, 64535234, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_QuickSlash", Utility.LoadBundleGameObject("Move_QuickSlash"), true, (HideFlags)52, val, 64523423, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_SuspenseAura", Utility.LoadBundleGameObject("Move_SuspenseAura"), true, (HideFlags)52, val, 6234323, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_BrutalParry", Utility.LoadBundleGameObject("Move_BrutalParry"), true, (HideFlags)52, val, 35242343, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_BackShield", Utility.LoadBundleGameObject("Move_BackShield"), true, (HideFlags)52, val, 64353533, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_CloudyWarfield", Utility.LoadBundleGameObject("Move_CloudyWarfield"), true, (HideFlags)52, val, 8545364, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_AfterImage", Utility.LoadBundleGameObject("Move_AfterImage"), true, (HideFlags)52, val, 7554532, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_MasterfulParry", Utility.LoadBundleGameObject("Move_MasterfulParry"), true, (HideFlags)52, val, 6343243, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Move_WarDynamicMovement", Utility.LoadBundleGameObject("Move_WarDynamicMovement"), true, (HideFlags)52, val, 75442532, true), "FACTION_MEDIEVAL", (TagType)0);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Unit Bases";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("ScavengerUnitBase", Utility.LoadBundleGameObject("ScavengerUnitBase"), true, (HideFlags)52, val, 635243423, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("BatteringRam_Base", Utility.LoadBundleGameObject("BatteringRam_Base"), true, (HideFlags)52, val, 75523423, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("HussarHorse_Base", (GameObject)SLMALoader.SDic["bases"]["Horse"], true, (HideFlags)52, val, 67243232, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("HunterKnight_Base", (GameObject)SLMALoader.SDic["bases"]["Humanoid"], true, (HideFlags)52, val, 74564534, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Subjugator_Base", (GameObject)SLMALoader.SDic["bases"]["Stiffy"], true, (HideFlags)52, val, 52422340, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("MilitumExDeus_Base", (GameObject)SLMALoader.SDic["bases"]["Humanoid"], true, (HideFlags)52, val, 85634534, true), "FACTION_MEDIEVAL", (TagType)0);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Clothing";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("WhiteClothCape", Utility.LoadBundleGameObject("WhiteClothCape"), true, (HideFlags)52, val, 635334234, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("WhiteClothSkirt", Utility.LoadBundleGameObject("WhiteClothSkirt"), true, (HideFlags)52, val, 643543234, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("HunterKnight_Helmet", (GameObject)SLMALoader.SDic["clothes"]["Misc_Mask001"], true, (HideFlags)52, val, 34243333, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("LeperKing_Mask", (GameObject)SLMALoader.SDic["clothes"]["Misc_Mask001"], true, (HideFlags)52, val, 64573423, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Subjugator_ShoulderCover", (GameObject)SLMALoader.SDic["clothes"]["Ancient_ShoulderPad001"], true, (HideFlags)52, val, 523432213, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Subjugator_Helmet", (GameObject)SLMALoader.SDic["clothes"]["Misc_Mask001"], true, (HideFlags)52, val, 64535344, true), "FACTION_MEDIEVAL", (TagType)0);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Projectiles";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("P_SilverBullet", Utility.LoadBundleGameObject("P_PaviseCrossbow"), true, (HideFlags)52, val, 75524344, true), "FACTION_MEDIEVAL", (TagType)0);
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("P_PaviseCrossbow", Utility.LoadBundleGameObject("P_PaviseCrossbow"), true, (HideFlags)52, val, 643524323, true), "FACTION_MEDIEVAL", (TagType)0);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Effect";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("Eff_AttackBuff", Utility.LoadBundleGameObject("Eff_AttackBuff"), true, (HideFlags)52, (Sprite)null, 0, true), "FACTION_MEDIEVAL", (TagType)0);
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			comment = "Custom Explosions";
			comment = "----------------------------------------------------------------------------------------------------------------------------";
			Utility.ItemCategorizer.SetTag(UPool.MyPool.AddObject("E_SubjugationDeath", Utility.LoadBundleGameObject("E_SubjugationDeath"), true, (HideFlags)52, (Sprite)null, 0, true), "FACTION_MEDIEVAL", (TagType)0);
		}

		public static void SetBlueprint(UnitBlueprint unit, LandfallContentDatabase db)
		{
			//IL_011f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0125: Expected O, but got Unknown
			//IL_0140: Unknown result type (might be due to invalid IL or missing references)
			//IL_0146: Expected O, but got Unknown
			//IL_0161: Unknown result type (might be due to invalid IL or missing references)
			//IL_0167: Expected O, but got Unknown
			//IL_0182: Unknown result type (might be due to invalid IL or missing references)
			//IL_0188: Expected O, but got Unknown
			//IL_01a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a9: Expected O, but got Unknown
			//IL_01c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ca: Expected O, but got Unknown
			//IL_01e5: Unknown result type (might be due to invalid IL or missing references)
			//IL_01eb: Expected O, but got Unknown
			//IL_0206: Unknown result type (might be due to invalid IL or missing references)
			//IL_020c: Expected O, but got Unknown
			//IL_0227: Unknown result type (might be due to invalid IL or missing references)
			//IL_022d: Expected O, but got Unknown
			//IL_0249: Unknown result type (might be due to invalid IL or missing references)
			//IL_024f: Expected O, but got Unknown
			//IL_025e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0265: Expected O, but got Unknown
			//IL_029b: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_02b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_02bb: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_02cc: Expected O, but got Unknown
			//IL_02fc: Unknown result type (might be due to invalid IL or missing references)
			//IL_0301: Unknown result type (might be due to invalid IL or missing references)
			//IL_0317: Unknown result type (might be due to invalid IL or missing references)
			//IL_031c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0326: Unknown result type (might be due to invalid IL or missing references)
			//IL_032d: Expected O, but got Unknown
			//IL_0362: Unknown result type (might be due to invalid IL or missing references)
			//IL_0367: 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_0382: Unknown result type (might be due to invalid IL or missing references)
			//IL_038c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0393: Expected O, but got Unknown
			//IL_03c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_03c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_03de: Unknown result type (might be due to invalid IL or missing references)
			//IL_03e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_03ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_03f4: Expected O, but got Unknown
			//IL_0429: Unknown result type (might be due to invalid IL or missing references)
			//IL_042e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0444: Unknown result type (might be due to invalid IL or missing references)
			//IL_0449: Unknown result type (might be due to invalid IL or missing references)
			//IL_0453: Unknown result type (might be due to invalid IL or missing references)
			//IL_045a: Expected O, but got Unknown
			//IL_048a: Unknown result type (might be due to invalid IL or missing references)
			//IL_048f: Unknown result type (might be due to invalid IL or missing references)
			//IL_04a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_04aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_04b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_04bb: Expected O, but got Unknown
			//IL_04f1: Unknown result type (might be due to invalid IL or missing references)
			//IL_04f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_050c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0511: Unknown result type (might be due to invalid IL or missing references)
			//IL_051b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0522: Expected O, but got Unknown
			//IL_0552: Unknown result type (might be due to invalid IL or missing references)
			//IL_0557: Unknown result type (might be due to invalid IL or missing references)
			//IL_056d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0572: Unknown result type (might be due to invalid IL or missing references)
			//IL_057c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0582: Expected O, but got Unknown
			//IL_05b5: Unknown result type (might be due to invalid IL or missing references)
			//IL_05ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_05cf: Unknown result type (might be due to invalid IL or missing references)
			//IL_05d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_05e0: Unknown result type (might be due to invalid IL or missing references)
			//IL_05e7: Expected O, but got Unknown
			//IL_0617: Unknown result type (might be due to invalid IL or missing references)
			//IL_061c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0632: Unknown result type (might be due to invalid IL or missing references)
			//IL_0637: Unknown result type (might be due to invalid IL or missing references)
			//IL_064f: 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_0769: Unknown result type (might be due to invalid IL or missing references)
			//IL_076f: Expected O, but got Unknown
			//IL_078a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0790: Expected O, but got Unknown
			//IL_07ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_07b1: Expected O, but got Unknown
			//IL_07cc: Unknown result type (might be due to invalid IL or missing references)
			//IL_07d2: Expected O, but got Unknown
			//IL_07ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_07f3: Expected O, but got Unknown
			//IL_080e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0814: Expected O, but got Unknown
			//IL_082f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0835: Expected O, but got Unknown
			//IL_0850: Unknown result type (might be due to invalid IL or missing references)
			//IL_0856: Expected O, but got Unknown
			//IL_0871: Unknown result type (might be due to invalid IL or missing references)
			//IL_0877: Expected O, but got Unknown
			//IL_0893: Unknown result type (might be due to invalid IL or missing references)
			//IL_0899: Expected O, but got Unknown
			//IL_08b5: Unknown result type (might be due to invalid IL or missing references)
			//IL_08bb: Expected O, but got Unknown
			//IL_08cc: Unknown result type (might be due to invalid IL or missing references)
			//IL_08d3: Expected O, but got Unknown
			//IL_0909: Unknown result type (might be due to invalid IL or missing references)
			//IL_090e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0924: Unknown result type (might be due to invalid IL or missing references)
			//IL_0929: Unknown result type (might be due to invalid IL or missing references)
			//IL_0934: Unknown result type (might be due to invalid IL or missing references)
			//IL_093b: Expected O, but got Unknown
			//IL_0979: Unknown result type (might be due to invalid IL or missing references)
			//IL_097e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0994: Unknown result type (might be due to invalid IL or missing references)
			//IL_0999: Unknown result type (might be due to invalid IL or missing references)
			//IL_09a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_09af: Expected O, but got Unknown
			//IL_09ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_09f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a09: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a0e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a1d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a24: Expected O, but got Unknown
			//IL_0a5d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a62: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a78: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a7d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a8c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a93: Expected O, but got Unknown
			//IL_0ac8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0acd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ae3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ae8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0af3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0afa: Expected O, but got Unknown
			//IL_0b33: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b38: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b4e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b53: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b62: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b69: Expected O, but got Unknown
			//IL_0ba6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bab: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bc1: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bc6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bd5: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bdc: Expected O, but got Unknown
			//IL_0c0c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c11: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c27: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c2c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c37: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c3e: Expected O, but got Unknown
			//IL_0c6d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c72: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c88: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c8d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c99: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ca0: Expected O, but got Unknown
			//IL_0cdf: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ce4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cfa: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cff: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d0f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d16: Expected O, but got Unknown
			//IL_0d4c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d51: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d67: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d6c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e39: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e43: Expected O, but got Unknown
			//IL_0e65: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e6b: Expected O, but got Unknown
			//IL_0e86: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e8c: Expected O, but got Unknown
			//IL_0ea7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ead: Expected O, but got Unknown
			//IL_0ec8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ece: Expected O, but got Unknown
			//IL_0ee9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0eef: Expected O, but got Unknown
			//IL_0f0a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f10: Expected O, but got Unknown
			//IL_0f2b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f31: Expected O, but got Unknown
			//IL_0f41: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f48: Expected O, but got Unknown
			//IL_0f78: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f7d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f93: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f98: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fa3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0faa: Expected O, but got Unknown
			//IL_0fe8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fed: Unknown result type (might be due to invalid IL or missing references)
			//IL_1003: Unknown result type (might be due to invalid IL or missing references)
			//IL_1008: Unknown result type (might be due to invalid IL or missing references)
			//IL_1013: Unknown result type (might be due to invalid IL or missing references)
			//IL_101a: Expected O, but got Unknown
			//IL_1059: Unknown result type (might be due to invalid IL or missing references)
			//IL_105e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1074: Unknown result type (might be due to invalid IL or missing references)
			//IL_1079: Unknown result type (might be due to invalid IL or missing references)
			//IL_1088: Unknown result type (might be due to invalid IL or missing references)
			//IL_108f: Expected O, but got Unknown
			//IL_10c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_10c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_10df: Unknown result type (might be due to invalid IL or missing references)
			//IL_10e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_10ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_10f6: Expected O, but got Unknown
			//IL_1125: Unknown result type (might be due to invalid IL or missing references)
			//IL_112a: Unknown result type (might be due to invalid IL or missing references)
			//IL_1140: Unknown result type (might be due to invalid IL or missing references)
			//IL_1145: Unknown result type (might be due to invalid IL or missing references)
			//IL_1150: Unknown result type (might be due to invalid IL or missing references)
			//IL_1157: Expected O, but got Unknown
			//IL_1187: Unknown result type (might be due to invalid IL or missing references)
			//IL_118c: Unknown result type (might be due to invalid IL or missing references)
			//IL_11a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_11a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_11b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_11b9: Expected O, but got Unknown
			//IL_11f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_11fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_1213: Unknown result type (might be due to invalid IL or missing references)
			//IL_1218: Unknown result type (might be due to invalid IL or missing references)
			//IL_12f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_12f8: Expected O, but got Unknown
			//IL_1309: Unknown result type (might be due to invalid IL or missing references)
			//IL_130f: Expected O, but got Unknown
			//IL_1320: Unknown result type (might be due to invalid IL or missing references)
			//IL_1326: Expected O, but got Unknown
			//IL_13eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_13f5: Expected O, but got Unknown
			//IL_1418: Unknown result type (might be due to invalid IL or missing references)
			//IL_141e: Expected O, but got Unknown
			//IL_1439: Unknown result type (might be due to invalid IL or missing references)
			//IL_143f: Expected O, but got Unknown
			//IL_145a: Unknown result type (might be due to invalid IL or missing references)
			//IL_1460: Expected O, but got Unknown
			//IL_147b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1481: Expected O, but got Unknown
			//IL_149c: Unknown result type (might be due to invalid IL or missing references)
			//IL_14a2: Expected O, but got Unknown
			//IL_14bd: Unknown result type (might be due to invalid IL or missing references)
			//IL_14c3: Expected O, but got Unknown
			//IL_14de: Unknown result type (might be due to invalid IL or missing references)
			//IL_14e4: Expected O, but got Unknown
			//IL_14ff: Unknown result type (might be due to invalid IL or missing references)
			//IL_1505: Expected O, but got Unknown
			//IL_1520: Unknown result type (might be due to invalid IL or missing references)
			//IL_1526: Expected O, but got Unknown
			//IL_1542: Unknown result type (might be due to invalid IL or missing references)
			//IL_1548: Expected O, but got Unknown
			//IL_1564: Unknown result type (might be due to invalid IL or missing references)
			//IL_156a: Expected O, but got Unknown
			//IL_157b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1582: Expected O, but got Unknown
			//IL_15b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_15bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_15d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_15d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_15e2: Unknown result type (might be due to invalid IL or missing references)
			//IL_15e9: Expected O, but got Unknown
			//IL_161f: Unknown result type (might be due to invalid IL or missing references)
			//IL_1624: Unknown result type (might be due to invalid IL or missing references)
			//IL_163a: Unknown result type (might be due to invalid IL or missing references)
			//IL_163f: Unknown result type (might be due to invalid IL or missing references)
			//IL_164a: Unknown result type (might be due to invalid IL or missing references)
			//IL_1651: Expected O, but got Unknown
			//IL_1680: Unknown result type (might be due to invalid IL or missing references)
			//IL_1685: Unknown result type (might be due to invalid IL or missing references)
			//IL_169b: Unknown result type (might be due to invalid IL or missing references)
			//IL_16a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_16ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_16b2: Expected O, but got Unknown
			//IL_16e6: Unknown result type (might be due to invalid IL or missing references)
			//IL_16eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_1701: Unknown result type (might be due to invalid IL or missing references)
			//IL_1706: Unknown result type (might be due to invalid IL or missing references)
			//IL_1711: Unknown result type (might be due to invalid IL or missing references)
			//IL_1718: Expected O, but got Unknown
			//IL_1748: Unknown result type (might be due to invalid IL or missing references)
			//IL_174d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1763: Unknown result type (might be due to invalid IL or missing references)
			//IL_1768: Unknown result type (might be due to invalid IL or missing references)
			//IL_1773: Unknown result type (might be due to invalid IL or missing references)
			//IL_177a: Expected O, but got Unknown
			//IL_17b9: Unknown result type (might be due to invalid IL or missing references)
			//IL_17be: Unknown result type (might be due to invalid IL or missing references)
			//IL_17d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_17d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_17e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_17ef: Expected O, but got Unknown
			//IL_181f: Unknown result type (might be due to invalid IL or missing references)
			//IL_1824: Unknown result type (might be due to invalid IL or missing references)
			//IL_183a: Unknown result type (might be due to invalid IL or missing references)
			//IL_183f: Unknown result type (might be due to invalid IL or missing references)
			//IL_184a: Unknown result type (might be due to invalid IL or missing references)
			//IL_1851: Expected O, but got Unknown
			//IL_1887: Unknown result type (might be due to invalid IL or missing references)
			//IL_188c: Unknown result type (might be due to invalid IL or missing references)
			//IL_18a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_18a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_18b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_18b9: Expected O, but got Unknown
			//IL_18ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_18f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_1908: Unknown result type (might be due to invalid IL or missing references)
			//IL_190d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1919: Unknown result type (might be due to invalid IL or missing references)
			//IL_1920: Expected O, but got Unknown
			//IL_1950: Unknown result type (might be due to invalid IL or missing references)
			//IL_1955: Unknown result type (might be due to invalid IL or missing references)
			//IL_196b: Unknown result type (might be due to invalid IL or missing references)
			//IL_1970: Unknown result type (might be due to invalid IL or missing references)
			//IL_197c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1983: Expected O, but got Unknown
			//IL_19b9: Unknown result type (might be due to invalid IL or missing references)
			//IL_19be: Unknown result type (might be due to invalid IL or missing references)
			//IL_19d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_19d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_1adc: Unknown result type (might be due to invalid IL or missing references)
			//IL_1ae2: Expected O, but got Unknown
			//IL_1afd: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b03: Expected O, but got Unknown
			//IL_1b1e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b24: Expected O, but got Unknown
			//IL_1b3f: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b45: Expected O, but got Unknown
			//IL_1b60: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b66: Expected O, but got Unknown
			//IL_1b74: Unknown result type (might be due to invalid IL or missing references)
			//IL_1b7b: Expected O, but got Unknown
			//IL_1bb5: Unknown result type (might be due to invalid IL or missing references)
			//IL_1bba: Unknown result type (might be due to invalid IL or missing references)
			//IL_1bd0: Unknown result type (might be due to invalid IL or missing references)
			//IL_1bd5: Unknown result type (might be due to invalid IL or missing references)
			//IL_1bdf: Unknown result type (might be due to invalid IL or missing references)
			//IL_1be6: Expected O, but got Unknown
			//IL_1c1c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c21: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c37: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c3c: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c46: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c4d: Expected O, but got Unknown
			//IL_1c7d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c82: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c98: Unknown result type (might be due to invalid IL or missing references)
			//IL_1c9d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1ca7: Unknown result type (might be due to invalid IL or missing references)
			//IL_1cae: Expected O, but got Unknown
			//IL_1cdd: Unknown result type (might be due to invalid IL or missing references)
			//IL_1ce2: Unknown result type (might be due to invalid IL or missing references)
			//IL_1cf8: Unknown result type (might be due to invalid IL or missing references)
			//IL_1cfd: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d07: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d0e: Expected O, but got Unknown
			//IL_1d43: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d48: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d5e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d63: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d92: Unknown result type (might be due to invalid IL or missing references)
			//IL_1d98: Expected O, but got Unknown
			//IL_1db3: Unknown result type (might be due to invalid IL or missing references)
			//IL_1db9: Expected O, but got Unknown
			//IL_1dd4: Unknown result type (might be due to invalid IL or missing references)
			//IL_1dda: Expected O, but got Unknown
			//IL_1dfc: Unknown result type (might be due to invalid IL or missing references)
			//IL_1e02: Expected O, but got Unknown
			//IL_1f25: Unknown result type (might be due to invalid IL or missing references)
			//IL_1f2b: Expected O, but got Unknown
			//IL_1f46: Unknown result type (might be due to invalid IL or missing references)
			//IL_1f4c: Expected O, but got Unknown
			//IL_1f67: Unknown result type (might be due to invalid IL or missing references)
			//IL_1f6d: Expected O, but got Unknown
			//IL_1f88: Unknown result type (might be due to invalid IL or missing references)
			//IL_1f8e: Expected O, but got Unknown
			//IL_1fa9: Unknown result type (might be due to invalid IL or missing references)
			//IL_1faf: Expected O, but got Unknown
			//IL_1fca: Unknown result type (might be due to invalid IL or missing references)
			//IL_1fd0: Expected O, but got Unknown
			//IL_1feb: Unknown result type (might be due to invalid IL or missing references)
			//IL_1ff1: Expected O, but got Unknown
			//IL_200c: Unknown result type (might be due to invalid IL or missing references)
			//IL_2012: Expected O, but got Unknown
			//IL_202d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2033: Expected O, but got Unknown
			//IL_204f: Unknown result type (might be due to invalid IL or missing references)
			//IL_2055: Expected O, but got Unknown
			//IL_2071: Unknown result type (might be due to invalid IL or missing references)
			//IL_2077: Expected O, but got Unknown
			//IL_2093: Unknown result type (might be due to invalid IL or missing references)
			//IL_2099: Expected O, but got Unknown
			//IL_20b5: Unknown result type (might be due to invalid IL or missing references)
			//IL_20bb: Expected O, but got Unknown
			//IL_20d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_20dd: Expected O, but got Unknown
			//IL_2101: Unknown result type (might be due to invalid IL or missing references)
			//IL_2108: Expected O, but got Unknown
			//IL_213d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2142: Unknown result type (might be due to invalid IL or missing references)
			//IL_2158: Unknown result type (might be due to invalid IL or missing references)
			//IL_215d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2168: Unknown result type (might be due to invalid IL or missing references)
			//IL_216f: Expected O, but got Unknown
			//IL_219f: Unknown result type (might be due to invalid IL or missing references)
			//IL_21a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_21ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_21bf: Unknown result type (might be due to invalid IL or missing references)
			//IL_21ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_21d1: Expected O, but got Unknown
			//IL_2207: Unknown result type (might be due to invalid IL or missing references)
			//IL_220c: Unknown result type (might be due to invalid IL or missing references)
			//IL_2222: Unknown result type (might be due to invalid IL or missing references)
			//IL_2227: Unknown result type (might be due to invalid IL or missing references)
			//IL_2232: Unknown result type (might be due to invalid IL or missing references)
			//IL_2239: Expected O, but got Unknown
			//IL_226e: Unknown result type (might be due to invalid IL or missing references)
			//IL_2273: Unknown result type (might be due to invalid IL or missing references)
			//IL_2289: Unknown result type (might be due to invalid IL or missing references)
			//IL_228e: Unknown result type (might be due to invalid IL or missing references)
			//IL_2299: Unknown result type (might be due to invalid IL or missing references)
			//IL_22a0: Expected O, but got Unknown
			//IL_22da: Unknown result type (might be due to invalid IL or missing references)
			//IL_22df: Unknown result type (might be due to invalid IL or missing references)
			//IL_22f5: Unknown result type (might be due to invalid IL or missing references)
			//IL_22fa: Unknown result type (might be due to invalid IL or missing references)
			//IL_2305: Unknown result type (might be due to invalid IL or missing references)
			//IL_230c: Expected O, but got Unknown
			//IL_234b: Unknown result type (might be due to invalid IL or missing references)
			//IL_2350: Unknown result type (might be due to invalid IL or missing references)
			//IL_2366: Unknown result type (might be due to invalid IL or missing references)
			//IL_236b: Unknown result type (might be due to invalid IL or missing references)
			//IL_237a: Unknown result type (might be due to invalid IL or missing references)
			//IL_2381: Expected O, but got Unknown
			//IL_23b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_23bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_23d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_23d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_23e2: Unknown result type (might be due to invalid IL or missing references)
			//IL_23e9: Expected O, but got Unknown
			//IL_241f: Unknown result type (might be due to invalid IL or missing references)
			//IL_2424: Unknown result type (might be due to invalid IL or missing references)
			//IL_243a: Unknown result type (might be due to invalid IL or missing references)
			//IL_243f: Unknown result type (might be due to invalid IL or missing references)
			//IL_244a: Unknown result type (might be due to invalid IL or missing references)
			//IL_2451: Expected O, but got Unknown
			//IL_2486: Unknown result type (might be due to invalid IL or missing references)
			//IL_248b: Unknown result type (might be due to invalid IL or missing references)
			//IL_24a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_24a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_24b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_24b9: Expected O, but got Unknown
			//IL_24fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_2502: Unknown result type (might be due to invalid IL or missing references)
			//IL_2518: Unknown result type (might be due to invalid IL or missing references)
			//IL_251d: Unknown result type (might be due to invalid IL or missing references)
			//IL_252d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2534: Expected O, but got Unknown
			//IL_256a: Unknown result type (might be due to invalid IL or missing references)
			//IL_256f: Unknown result type (might be due to invalid IL or missing references)
			//IL_2585: Unknown result type (might be due to invalid IL or missing references)
			//IL_258a: Unknown result type (might be due to invalid IL or missing references)
			//IL_2596: Unknown result type (might be due to invalid IL or missing references)
			//IL_259d: Expected O, but got Unknown
			//IL_25d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_25d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_25ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_25f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_25fe: Unknown result type (might be due to invalid IL or missing references)
			//IL_2605: Expected O, but got Unknown
			//IL_263e: Unknown result type (might be due to invalid IL or missing references)
			//IL_2643: Unknown result type (might be due to invalid IL or missing references)
			//IL_2659: Unknown result type (might be due to invalid IL or missing references)
			//IL_265e: Unknown result type (might be due to invalid IL or missing references)
			//IL_266e: Unknown result type (might be due to invalid IL or missing references)
			//IL_2675: Expected O, but got Unknown
			//IL_26aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_26af: Unknown result type (might be due to invalid IL or missing references)
			//IL_26c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_26ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_26fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_2703: Expected O, but got Unknown
			//IL_271e: Unknown result type (might be due to invalid IL or missing references)
			//IL_2724: Expected O, but got Unknown
			//IL_273f: Unknown result type (might be due to invalid IL or missing references)
			//IL_2745: Expected O, but got Unknown
			//IL_2760: Unknown result type (might be due to invalid IL or missing references)
			//IL_2766: Expected O, but got Unknown
			//IL_2781: Unknown result type (might be due to invalid IL or missing references)
			//IL_2787: Expected O, but got Unknown
			//IL_27a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_27a8: Expected O, but got Unknown
			//IL_27c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_27c9: Expected O, but got Unknown
			//IL_27e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_27ea: Expected O, but got Unknown
			//IL_2805: Unknown result type (might be due to invalid IL or missing references)
			//IL_280b: Expected O, but got Unknown
			//IL_2827: Unknown result type (might be due to invalid IL or missing references)
			//IL_282d: Expected O, but got Unknown
			//IL_2849: Unknown result type (might be due to invalid IL or missing references)
			//IL_284f: Expected O, but got Unknown
			//IL_286b: Unknown result type (might be due to invalid IL or missing references)
			//IL_2871: Expected O, but got Unknown
			//IL_2988: Unknown result type (might be due to invalid IL or missing references)
			//IL_298e: Expected O, but got Unknown
			//IL_29a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_29af: Expected O, but got Unknown
			//IL_29ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_29d0: Expected O, but got Unknown
			//IL_29eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_29f1: Expected O, but got Unknown
			//IL_2a0c: Unknown result type (might be due to invalid IL or missing references)
			//IL_2a12: Expected O, but got Unknown
			//IL_2a2d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2a33: Expected O, but got Unknown
			//IL_2a4e: Unknown result type (might be due to invalid IL or missing references)
			//IL_2a54: Expected O, but got Unknown
			//IL_2a6f: Unknown result type (might be due to invalid IL or missing references)
			//IL_2a75: Expected O, but got Unknown
			//IL_2a90: Unknown result type (might be due to invalid IL or missing references)
			//IL_2a96: Expected O, but got Unknown
			//IL_2ab2: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ab8: Expected O, but got Unknown
			//IL_2aef: Unknown result type (might be due to invalid IL or missing references)
			//IL_2af6: Expected O, but got Unknown
			//IL_2b2b: Unknown result type (might be due to invalid IL or missing references)
			//IL_2b30: Unknown result type (might be due to invalid IL or missing references)
			//IL_2b46: Unknown result type (might be due to invalid IL or missing references)
			//IL_2b4b: Unknown result type (might be due to invalid IL or missing references)
			//IL_2b56: Unknown result type (might be due to invalid IL or missing references)
			//IL_2b5d: Expected O, but got Unknown
			//IL_2b93: Unknown result type (might be due to invalid IL or missing references)
			//IL_2b98: Unknown result type (might be due to invalid IL or missing references)
			//IL_2bae: Unknown result type (might be due to invalid IL or missing references)
			//IL_2bb3: Unknown result type (might be due to invalid IL or missing references)
			//IL_2bbe: Unknown result type (might be due to invalid IL or missing references)
			//IL_2bc5: Expected O, but got Unknown
			//IL_2bfa: Unknown result type (might be due to invalid IL or missing references)
			//IL_2bff: Unknown result type (might be due to invalid IL or missing references)
			//IL_2c15: Unknown result type (might be due to invalid IL or missing references)
			//IL_2c1a: Unknown result type (might be due to invalid IL or missing references)
			//IL_2c25: Unknown result type (might be due to invalid IL or missing references)
			//IL_2c2c: Expected O, but got Unknown
			//IL_2c62: Unknown result type (might be due to invalid IL or missing references)
			//IL_2c67: Unknown result type (might be due to invalid IL or missing references)
			//IL_2c7d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2c82: Unknown result type (might be due to invalid IL or missing references)
			//IL_2c8d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2c94: Expected O, but got Unknown
			//IL_2cc9: Unknown result type (might be due to invalid IL or missing references)
			//IL_2cce: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ce4: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ce9: Unknown result type (might be due to invalid IL or missing references)
			//IL_2cf4: Unknown result type (might be due to invalid IL or missing references)
			//IL_2cfb: Expected O, but got Unknown
			//IL_2d30: Unknown result type (might be due to invalid IL or missing references)
			//IL_2d35: Unknown result type (might be due to invalid IL or missing references)
			//IL_2d4b: Unknown result type (might be due to invalid IL or missing references)
			//IL_2d50: Unknown result type (might be due to invalid IL or missing references)
			//IL_2d5b: Unknown result type (might be due to invalid IL or missing references)
			//IL_2d62: Expected O, but got Unknown
			//IL_2d92: Unknown result type (might be due to invalid IL or missing references)
			//IL_2d97: Unknown result type (might be due to invalid IL or missing references)
			//IL_2dad: Unknown result type (might be due to invalid IL or missing references)
			//IL_2db2: Unknown result type (might be due to invalid IL or missing references)
			//IL_2dbd: Unknown result type (might be due to invalid IL or missing references)
			//IL_2dc4: Expected O, but got Unknown
			//IL_2e02: Unknown result type (might be due to invalid IL or missing references)
			//IL_2e07: Unknown result type (might be due to invalid IL or missing references)
			//IL_2e1d: Unknown result type (might be due to invalid IL or missing references)
			//IL_2e22: Unknown result type (might be due to invalid IL or missing references)
			//IL_2e31: Unknown result type (might be due to invalid IL or missing references)
			//IL_2e38: Expected O, but got Unknown
			//IL_2e6e: Unknown result type (might be due to invalid IL or missing references)
			//IL_2e73: Unknown result type (might be due to invalid IL or missing references)
			//IL_2e89: Unknown result type (might be due to invalid IL or missing references)
			//IL_2e8e: Unknown result type (might be due to invalid IL or missing references)
			//IL_2e9a: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ea1: Expected O, but got Unknown
			//IL_2ed1: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ed6: Unknown result type (might be due to invalid IL or missing references)
			//IL_2eec: Unknown result type (might be due to invalid IL or missing references)
			//IL_2ef1: Unknown result type (might be due to invalid IL or missing references)
			//IL_2f23: Unknown result type (might be due to invalid IL or missing references)
			//IL_2f29: Expected O, but got Unknown
			//IL_2fbc: Unknown result type (might be due to invalid IL or missing references)
			//IL_30f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_30fc: Expected O, but got Unknown
			//IL_3117: Unknown result type (might be due to invalid IL or missing references)
			//IL_311d: Expected O, but got Unknown
			//IL_3138: Unknown result type (might be due to invalid IL or missing references)
			//IL_313e: Expected O, but got Unknown
			//IL_3159: Unknown result type (might be due to invalid IL or missing references)
			//IL_315f: Expected O, but got Unknown
			//IL_317a: Unknown result type (might be due to invalid IL or missing references)
			//IL_3180: Expected O, but got Unknown
			//IL_319b: Unknown result type (might be due to invalid IL or missing references)
			//IL_31a1: Expected O, but got Unknown
			//IL_31bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_31c2: Expected O, but got Unknown
			//IL_31dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_31e3: Expected O, but got Unknown
			//IL_31fe: Unknown result type (might be due to invalid IL or missing references)
			//IL_3204: Expected O, but got Unknown
			//IL_3220: Unknown result type (might be due to invalid IL or missing references)
			//IL_3226: Expected O, but got Unknown
			//IL_3242: Unknown result type (might be due to invalid IL or missing references)
			//IL_3248: Expected O, but got Unknown
			//IL_3264: Unknown result type (might be due to invalid IL or missing references)
			//IL_326a: Expected O, but got Unknown
			//IL_3286: Unknown result type (might be due to invalid IL or missing references)
			//IL_328c: Expected O, but got Unknown
			//IL_32a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_32ae: Expected O, but got Unknown
			//IL_32ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_32d0: Expected O, but got Unknown
			//IL_32ec: Unknown result type (might be due to invalid IL or missing references)
			//IL_32f2: Expected O, but got Unknown
			//IL_330e: Unknown result type (might be due to invalid IL or missing references)
			//IL_3314: Expected O, but got Unknown
			//IL_3330: Unknown result type (might be due to invalid IL or missing references)
			//IL_3336: Expected O, but got Unknown
			//IL_3352: Unknown result type (might be due to invalid IL or missing references)
			//IL_3358: Expected O, but got Unknown
			//IL_3374: Unknown result type (might be due to invalid IL or missing references)
			//IL_337a: Expected O, but got Unknown
			//IL_3396: Unknown result type (might be due to invalid IL or missing references)
			//IL_339c: Expected O, but got Unknown
			//IL_33d3: Unknown result type (might be due to invalid IL or missing references)
			//IL_33da: Expected O, but got Unknown
			//IL_3410: Unknown result type (might be due to invalid IL or missing references)
			//IL_3415: Unknown result type (might be due to invalid IL or missing references)
			//IL_342b: Unknown result type (might be due to invalid IL or missing references)
			//IL_3430: Unknown result type (might be due to invalid IL or missing references)
			//IL_343b: Unknown result type (might be due to invalid IL or missing references)
			//IL_3442: Expected O, but got Unknown
			//IL_347b: Unknown result type (might be due to invalid IL or missing references)
			//IL_3480: Unknown result type (might be due to invalid IL or missing references)
			//IL_3496: Unknown result type (might be due to invalid IL or missing references)
			//IL_349b: Unknown result type (might be due to invalid IL or missing references)
			//IL_34aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_34b1: Expected O, but got Unknown
			//IL_34e6: Unknown result type (might be due to invalid IL or missing references)
			//IL_34eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_3501: Unknown result type (might be due to invalid IL or missing references)
			//IL_3506: Unknown result type (might be due to invalid IL or missing references)
			//IL_3511: Unknown result type (might be due to invalid IL or missing references)
			//IL_3518: Expected O, but got Unknown
			//IL_354e: Unknown result type (might be due to invalid IL or missing references)
			//IL_3553: Unknown result type (might be due to invalid IL or missing references)
			//IL_3569: Unknown result type (might be due to invalid IL or missing references)
			//IL_356e: Unknown result type (might be due to invalid IL or missing references)
			//IL_3579: Unknown result type (might be due to invalid IL or missing references)
			//IL_3580: Expected O, but got Unknown
			//IL_35b0: Unknown result type (might be due to invalid IL or missing references)
			//IL_35b5: Unknown result type (might be due to invalid IL or missing references)
			//IL_35cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_35d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_35db: Unknown result type (might be due to invalid IL or missing references)
			//IL_35e2: Expected O, but got Unknown
			//IL_3618: Unknown result type (might be due to invalid IL or missing references)
			//IL_361d: Unknown result type (might be due to invalid IL or missing references)
			//IL_3633: Unknown result type (might be due to invalid IL or missing references)
			//IL_3638: Unknown result type (might be due to invalid IL or missing references)
			//IL_3643: Unknown result type (might be due to invalid IL or missing references)
			//IL_364a: Expected O, but got Unknown
			//IL_3680: Unknown result type (might be due to invalid IL or missing references)
			//IL_3685: Unknown result type (might be due to invalid IL or missing references)
			//IL_369b: Unknown result type (might be due to invalid IL or missing references)
			//IL_36a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_36ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_36b2: Expected O, but got Unknown
			//IL_36e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_36ec: Unknown result type (might be due to invalid IL or missing references)
			//IL_3702: Unknown result type (might be due to invalid IL or missing references)
			//IL_3707: Unknown result type (might be due to invalid IL or missing references)
			//IL_3712: Unknown result type (might be due to invalid IL or missing references)
			//IL_3719: Expected O, but got Unknown
			//IL_374c: Unknown result type (might be due to invalid IL or missing references)
			//IL_3751: Unknown result type (might be due to invalid IL or missing references)
			//IL_3767: Unknown result type (might be due to invalid IL or missing references)
			//IL_376c: Unknown result type (might be due to invalid IL or missing references)
			//IL_3778: Unknown result type (might be due to invalid IL or missing references)
			//IL_377f: Expected O, but got Unknown
			//IL_37b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_37b9: Unknown result type (might be due to invalid IL or missing references)
			//IL_37cf: Unknown result type (might be due to invalid IL or missing references)
			//IL_37d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_37e0: Unknown result type (might be due to invalid IL or missing references)
			//IL_37e7: Expected O, but got Unknown
			//IL_3817: Unknown result type (might be due to invalid IL or missing references)
			//IL_381c: Unknown result type (might be due to invalid IL or missing references)
			//IL_3832: Unknown result type (might be due to invalid IL or missing references)
			//IL_3837: Unknown result type (might be due to invalid IL or missing references)
			//IL_3843: Unknown result type (might be due to invalid IL or missing references)
			//IL_384a: Expected O, but got Unknown
			//IL_387a: Unknown result type (might be due to invalid IL or missing references)
			//IL_387f: Unknown result type (might be due to invalid IL or missing references)
			//IL_3895: Unknown result type (might be due to invalid IL or missing references)
			//IL_389a: Unknown result type (might be due to invalid IL or missing references)
			//IL_38a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_38ad: Expected O, but got Unknown
			//IL_38e2: Unknown result type (might be due to invalid IL or missing references)
			//IL_38e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_38fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_3902: Unknown result type (might be due to invalid IL or missing references)
			//IL_390e: Unknown result type (might be due to invalid IL or missing references)
			//IL_3915: Expected O, but got Unknown
			//IL_3945: Unknown result type (might be due to invalid IL or missing references)
			//IL_394a: Unknown result type (might be due to invalid IL or missing references)
			//IL_3960: Unknown result type (might be due to invalid IL or missing references)
			//IL_3965: Unknown result type (might be due to invalid IL or missing references)
			//IL_3971: Unknown result type (might be due to invalid IL or missing references)
			//IL_3978: Expected O, but got Unknown
			//IL_39ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_39b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_39c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_39ce: Unknown result type (might be due to invalid IL or missing references)
			//IL_39da: Unknown result type (might be due to invalid IL or missing references)
			//IL_39e1: Expected O, but got Unknown
			//IL_3a16: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a1b: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a31: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a36: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a42: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a49: Expected O, but got Unknown
			//IL_3a7f: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a84: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a9a: Unknown result type (might be due to invalid IL or missing references)
			//IL_3a9f: Unknown result type (might be due to invalid IL or missing references)
			//IL_3aab: Unknown result type (might be due to invalid IL or missing references)
			//IL_3ab2: Expected O, but got Unknown
			//IL_3ae7: Unknown result type (might be due to invalid IL or missing references)
			//IL_3aec: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b02: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b07: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b13: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b1a: Expected O, but got Unknown
			//IL_3b4f: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b54: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b6a: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b6f: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b7b: Unknown result type (might be due to invalid IL or missing references)
			//IL_3b82: Expected O, but got Unknown
			//IL_3bb7: Unknown result type (might be due to invalid IL or missing references)
			//IL_3bbc: Unknown result type (might be due to invalid IL or missing references)
			//IL_3bd2: Unknown result type (might be due to invalid IL or missing references)
			//IL_3bd7: Unknown result type (might be due to invalid IL or missing references)
			//IL_3be3: Unknown result type (might be due to invalid IL or missing references)
			//IL_3bea: Expected O, but got Unknown
			//IL_3c1a: Unknown result type (might be due to invalid IL or missing references)
			//IL_3c1f: Unknown result type (might be due to invalid IL or missing references)
			//IL_3c35: Unknown result type (might be due to invalid IL or missing references)
			//IL_3c3a: Unknown result type (might be due to invalid IL or missing references)
			//IL_3c53: Unknown result type (might be due to invalid IL or missing references)
			//IL_3c59: Unknown result type (might be due to invalid IL or missing references)
			//IL_3c8d: Unknown result type (might be due to invalid IL or missing references)
			//IL_3c93: Expected O, but got Unknown
			//IL_3cae: Unknown result type (might be due to invalid IL or missing references)
			//IL_3cb4: Expected O, but got Unknown
			//IL_3ccf: Unknown result type (might be due to invalid IL or missing references)
			//IL_3cd5: Expected O, but got Unknown
			//IL_3cf0: Unknown result type (might be due to invalid IL or missing references)
			//IL_3cf6: Expected O, but got Unknown
			//IL_3d11: Unknown result type (might be due to invalid IL or missing references)
			//IL_3d17: Expected O, but got Unknown
			//IL_3d32: Unknown result type (might be due to invalid IL or missing references)
			//IL_3d38: Expected O, but got Unknown
			//IL_3d53: Unknown result type (might be due to invalid IL or missing references)
			//IL_3d59: Expected O, but got Unknown
			//IL_3d74: Unknown result type (might be due to invalid IL or missing references)
			//IL_3d7a: Expected O, but got Unknown
			//IL_3d95: Unknown result type (might be due to invalid IL or missing references)
			//IL_3d9b: Expected O, but got Unknown
			//IL_3db7: Unknown result type (might be due to invalid IL or missing references)
			//IL_3dbd: Expected O, but got Unknown
			comment = "------------------------------------------";
			comment = "Medieval+";
			comment = "------------------------------------------";
			if (unit.Entity.Name == "Scavenger")
			{
				SLMATool.UnitCost(unit, 250);
				unit.UnitBase = UPool.MyPool.GetObject("ScavengerUnitBase");
				s.SetField<UnitBlueprint>(unit, "VocalRef", (object)"Farmer Death Vocals/Pitchfork");
				s.SetField<UnitBlueprint>(unit, "DeathRef", (object)"Farmer Death Vocals/Pitchfork");
				s.SetField<UnitBlueprint>(unit, "VoicePitch", (object)0.75f);
				unit.health = 150f;
				unit.maxSizeRandom = 1f;
				unit.minSizeRandom = 1f;
				unit.sizeMultiplier = 1f;
				unit.massMultiplier = 0.5f;
				unit.movementSpeedMuiltiplier = 1.25f;
				unit.LeftWeapon = UPool.MyPool.GetObject("MantisScythe");
				unit.RightWeapon = UPool.MyPool.GetObject("MantisScythe");
				unit.m_props = (GameObject[])(object)new GameObject[10]
				{
					(GameObject)SLMALoader.SDic["clothes"]["SpawnEyes_DarkPeasant"],
					(GameObject)SLMALoader.SDic["clothes"]["Hood001"],
					(GameObject)SLMALoader.SDic["clothes"]["SkeletonMask002"],
					(GameObject)SLMALoader.SDic["clothes"]["halloween_Death_hood001"],
					(GameObject)SLMALoader.SDic["clothes"]["Spidermage_coat001"],
					(GameObject)SLMALoader.SDic["clothes"]["Farmer_Hat004"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_Boots002"],
					(GameObject)SLMALoader.SDic["clothes"]["MummySuit001"],
					(GameObject)SLMALoader.SDic["clothes"]["Pirate_Jacket001"],
					(GameObject)SLMALoader.SDic["clothes"]["legacy_darkpeasant_pants001"]
				};
				PropItemData[] array = (PropItemData[])(object)new PropItemData[10];
				PropItemData val = new PropItemData();
				val.m_colors = new int[4] { 49, 73, 49, 49 };
				val.m_isTeamColor = new bool[4];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[0] = val;
				val = new PropItemData();
				val.m_colors = new int[1] { 53 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[1] = val;
				val = new PropItemData();
				val.m_colors = new int[2] { 49, 49 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[2] = val;
				val = new PropItemData();
				val.m_colors = new int[1] { 53 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[3] = val;
				val = new PropItemData();
				val.m_colors = new int[2] { 74, 53 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[4] = val;
				val = new PropItemData();
				val.m_colors = new int[1] { 53 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[5] = val;
				val = new PropItemData();
				val.m_colors = new int[4] { -1, -1, 53, -1 };
				val.m_isTeamColor = new bool[4];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[6] = val;
				val = new PropItemData();
				val.m_colors = new int[1] { 53 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[7] = val;
				int num = 8;
				PropItemData val2 = new PropItemData();
				val2.m_colors = new int[2] { 53, 0 };
				val2.m_isTeamColor = new bool[2] { false, true };
				val2.m_positionOffset = new Vector3(0f, 0f, 0f);
				val2.m_scale = new Vector3(1f, 1f, 1f);
				array[num] = val2;
				val = new PropItemData();
				val.m_colors = new int[1] { 52 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array[9] = val;
				unit.m_propData = array;
				unit.MovementComponents = new List<IMovementComponent> { (IMovementComponent)(object)default(NeverStopRunning) };
				unit.objectsToSpawnAsChildren = (GameObject[])(object)new GameObject[1] { UPool.MyPool.GetObject("Move_Scavenge") };
			}
			if (unit.Entity.Name == "Pavise Crossbowman")
			{
				SLMATool.UnitCost(unit, 500);
				s.SetField<UnitBlueprint>(unit, "VocalRef", (object)"Reinassance Attack Vocals/Musket");
				s.SetField<UnitBlueprint>(unit, "DeathRef", (object)"Reinassance Death Vocals/Musket");
				s.SetField<UnitBlueprint>(unit, "VoicePitch", (object)0.7f);
				unit.health = 120f;
				unit.maxSizeRandom = 1.1f;
				unit.minSizeRandom = 1.1f;
				unit.sizeMultiplier = 1.1f;
				unit.massMultiplier = 2.4f;
				unit.balanceMultiplier = 100f;
				unit.removeCloseRangeMiss = true;
				unit.holdinigWithTwoHands = true;
				unit.RightWeapon = UPool.MyPool.GetObject("PaviseCrossbow");
				unit.m_props = (GameObject[])(object)new GameObject[11]
				{
					(GameObject)SLMALoader.SDic["clothes"]["Ancient_Arrowtube001"],
					(GameObject)SLMALoader.SDic["clothes"]["asia_chukonu_quiver001"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_Archer_Belt"],
					(GameObject)SLMALoader.SDic["clothes"]["Ancient_Shirt001"],
					(GameObject)SLMALoader.SDic["clothes"]["evil_firewhip_pants001"],
					(GameObject)SLMALoader.SDic["clothes"]["Farmer_Belt001"],
					(GameObject)SLMALoader.SDic["clothes"]["evil_cleric_gloves001"],
					(GameObject)SLMALoader.SDic["clothes"]["legacy_pharao_Upperwristband001"],
					(GameObject)SLMALoader.SDic["clothes"]["ottomanian_scarf001"],
					(GameObject)SLMALoader.SDic["clothes"]["legacy_flagbearer_hat002"],
					(GameObject)SLMALoader.SDic["clothes"]["MCHelmet002"]
				};
				PropItemData[] array2 = (PropItemData[])(object)new PropItemData[11];
				PropItemData val = new PropItemData();
				val.m_colors = new int[3] { 53, 53, 53 };
				val.m_isTeamColor = new bool[3];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array2[0] = val;
				int num2 = 1;
				PropItemData val3 = new PropItemData();
				val3.m_colors = new int[3] { 51, 0, 53 };
				val3.m_isTeamColor = new bool[3] { false, true, false };
				val3.m_positionOffset = new Vector3(0f, 0f, 0f);
				val3.m_scale = new Vector3(1f, 1f, 1f);
				array2[num2] = val3;
				int num3 = 2;
				val3 = new PropItemData();
				val3.m_colors = new int[6] { 74, 53, 53, 0, 51, 53 };
				val3.m_isTeamColor = new bool[6] { false, false, false, true, false, false };
				val3.m_positionOffset = new Vector3(0f, 0f, 0f);
				val3.m_scale = new Vector3(1f, 1f, 1f);
				array2[num3] = val3;
				int num4 = 3;
				val3 = new PropItemData();
				val3.m_colors = new int[2] { 0, 52 };
				val3.m_isTeamColor = new bool[2] { true, false };
				val3.m_positionOffset = new Vector3(0f, 0f, 0f);
				val3.m_scale = new Vector3(1f, 1f, 1f);
				array2[num4] = val3;
				val = new PropItemData();
				val.m_colors = new int[2] { 51, 75 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array2[4] = val;
				int num5 = 5;
				val3 = new PropItemData();
				val3.m_colors = new int[2] { 0, 75 };
				val3.m_isTeamColor = new bool[2] { true, false };
				val3.m_positionOffset = new Vector3(0f, 0f, 0f);
				val3.m_scale = new Vector3(1f, 1f, 1f);
				array2[num5] = val3;
				int num6 = 6;
				val3 = new PropItemData();
				val3.m_colors = new int[3] { 52, 0, 0 };
				val3.m_isTeamColor = new bool[3] { false, true, true };
				val3.m_positionOffset = new Vector3(0f, 0f, 0f);
				val3.m_scale = new Vector3(1f, 1f, 1f);
				array2[num6] = val3;
				val = new PropItemData();
				val.m_colors = new int[1] { 76 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array2[7] = val;
				val = new PropItemData();
				val.m_colors = new int[1];
				val.m_isTeamColor = new bool[1] { true };
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array2[8] = val;
				int num7 = 9;
				val3 = new PropItemData();
				val3.m_colors = new int[3] { 76, 6, 76 };
				val3.m_isTeamColor = new bool[3] { false, true, false };
				val3.m_positionOffset = new Vector3(0f, 0f, 0f);
				val3.m_scale = new Vector3(1f, 1f, 1f);
				array2[num7] = val3;
				val = new PropItemData();
				val.m_colors = new int[3] { 76, 76, 76 };
				val.m_isTeamColor = new bool[3];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array2[10] = val;
				unit.m_propData = array2;
				unit.objectsToSpawnAsChildren = (GameObject[])(object)new GameObject[1] { UPool.MyPool.GetObject("Move_Pavise") };
			}
			if (unit.Entity.Name == "Battering Ram Rider")
			{
				unit.health = 250f;
				s.SetField<UnitBlueprint>(unit, "VocalRef", (object)"Misc Attack Vocals/Poacher");
				s.SetField<UnitBlueprint>(unit, "DeathRef", (object)"Misc Death Vocals/Poacher");
				s.SetField<UnitBlueprint>(unit, "VoicePitch", (object)1.2f);
				unit.maxSizeRandom = 1f;
				unit.minSizeRandom = 1f;
				unit.sizeMultiplier = 1f;
				unit.holdinigWithTwoHands = true;
				unit.RightWeapon = (GameObject)SLMALoader.SDic["weapons"]["ShortBow"];
				unit.m_props = (GameObject[])(object)new GameObject[7]
				{
					(GameObject)SLMALoader.SDic["clothes"]["Renaissance_Helmet002"],
					(GameObject)SLMALoader.SDic["clothes"]["Pirate_Shirt002"],
					(GameObject)SLMALoader.SDic["clothes"]["CowboyPants001"],
					(GameObject)SLMALoader.SDic["clothes"]["Crusader_HandGuard001"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_Shirt002"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_Shoes001"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_ElbowArmor002_L"]
				};
				PropItemData[] array3 = (PropItemData[])(object)new PropItemData[7];
				PropItemData val = new PropItemData();
				val.m_colors = new int[1] { 74 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array3[0] = val;
				val = new PropItemData();
				val.m_colors = new int[3] { 2, 54, 6 };
				val.m_isTeamColor = new bool[3] { true, false, true };
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array3[1] = val;
				int num8 = 2;
				PropItemData val4 = new PropItemData();
				val4.m_colors = new int[4] { 0, 53, 76, 52 };
				val4.m_isTeamColor = new bool[4] { true, false, false, false };
				val4.m_positionOffset = new Vector3(0f, 0f, 0f);
				val4.m_scale = new Vector3(1f, 1f, 1f);
				array3[num8] = val4;
				val = new PropItemData();
				val.m_colors = new int[2] { 74, 53 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array3[3] = val;
				val = new PropItemData();
				val.m_colors = new int[1];
				val.m_isTeamColor = new bool[1] { true };
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array3[4] = val;
				val = new PropItemData();
				val.m_colors = new int[1] { 74 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array3[5] = val;
				int num9 = 6;
				val4 = new PropItemData();
				val4.m_colors = new int[4] { 53, 2, 74, 76 };
				val4.m_isTeamColor = new bool[4] { false, true, false, false };
				val4.m_positionOffset = new Vector3(0f, 0f, 0f);
				val4.m_scale = new Vector3(1f, 1f, 1f);
				array3[num9] = val4;
				unit.m_propData = array3;
			}
			if (unit.Entity.Name == "Battering Ram")
			{
				SLMATool.UnitCost(unit, 1200);
				unit.UnitBase = UPool.MyPool.GetObject("BatteringRam_Base");
				s.SetField<UnitBlueprint>(unit, "VocalRef", (object)"Reinassance Attack Vocals/Musket");
				s.SetField<UnitBlueprint>(unit, "DeathRef", (object)"Reinassance Death Vocals/Musket");
				s.SetField<UnitBlueprint>(unit, "VoicePitch", (object)0.7f);
				unit.health = 1300f;
				unit.maxSizeRandom = 1f;
				unit.minSizeRandom = 1f;
				unit.sizeMultiplier = 1f;
				unit.massMultiplier = 25f;
				s.SetField<UnitBlueprint>(unit, "Riders", (object)new UnitBlueprint[3]
				{
					(UnitBlueprint)SLMATool.SLMADic["Battering Ram Rider"],
					(UnitBlueprint)SLMATool.SLMADic["Battering Ram Rider"],
					(UnitBlueprint)SLMATool.SLMADic["Battering Ram Rider"]
				});
			}
			if (unit.Entity.Name == "Winged Hussar Rider")
			{
				unit.health = 200f;
				s.SetField<UnitBlueprint>(unit, "VocalRef", (object)"Reinassance Attack Vocals/Jouster");
				s.SetField<UnitBlueprint>(unit, "DeathRef", (object)"Reinassance Death Vocals/Jouster");
				s.SetField<UnitBlueprint>(unit, "VoicePitch", (object)0.7f);
				unit.maxSizeRandom = 1.2f;
				unit.minSizeRandom = 1.2f;
				unit.sizeMultiplier = 1.2f;
				unit.massMultiplier = 10f;
				unit.holdinigWithTwoHands = false;
				unit.RightWeapon = UPool.MyPool.GetObject("WingedHussarLance");
				unit.LeftWeapon = (GameObject)SLMALoader.SDic["weapons"]["Aztec_Shield_02"];
				unit.m_props = (GameObject[])(object)new GameObject[11]
				{
					(GameObject)SLMALoader.SDic["clothes"]["wingedhussar_helmet001"],
					(GameObject)SLMALoader.SDic["clothes"]["wingedhussar_armor001"],
					(GameObject)SLMALoader.SDic["clothes"]["Western_shoes002"],
					(GameObject)SLMALoader.SDic["clothes"]["good_glaive_pants001"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_Shirt002"],
					(GameObject)SLMALoader.SDic["clothes"]["good_skirt001"],
					(GameObject)SLMALoader.SDic["clothes"]["Western_gloves001"],
					(GameObject)SLMALoader.SDic["clothes"]["Asia_ShoulderPad001"],
					(GameObject)SLMALoader.SDic["clothes"]["Crusader_Knight_ShoulderPad"],
					(GameObject)SLMALoader.SDic["clothes"]["western_beard007"],
					(GameObject)SLMALoader.SDic["clothes"]["evil_cleric_gloves001"]
				};
				PropItemData[] array4 = (PropItemData[])(object)new PropItemData[11];
				PropItemData val = new PropItemData();
				val.m_colors = new int[2] { 67, 76 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array4[0] = val;
				val = new PropItemData();
				val.m_colors = new int[6] { 68, 76, 52, -1, 76, 67 };
				val.m_isTeamColor = new bool[6];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array4[1] = val;
				val = new PropItemData();
				val.m_colors = new int[1] { -1 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array4[2] = val;
				val = new PropItemData();
				val.m_colors = new int[2] { 53, -1 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array4[3] = val;
				val = new PropItemData();
				val.m_colors = new int[1] { 53 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array4[4] = val;
				int num10 = 5;
				PropItemData val5 = new PropItemData();
				val5.m_colors = new int[3] { 53, 76, 0 };
				val5.m_isTeamColor = new bool[3] { false, false, true };
				val5.m_positionOffset = new Vector3(0f, 0f, 0f);
				val5.m_scale = new Vector3(1f, 1f, 1f);
				array4[num10] = val5;
				val = new PropItemData();
				val.m_colors = new int[1] { 76 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array4[6] = val;
				val = new PropItemData();
				val.m_colors = new int[3] { 51, 67, 76 };
				val.m_isTeamColor = new bool[3];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array4[7] = val;
				val = new PropItemData();
				val.m_colors = new int[2] { 67, -1 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array4[8] = val;
				val = new PropItemData();
				val.m_colors = new int[1] { 49 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array4[9] = val;
				val = new PropItemData();
				val.m_colors = new int[3] { 76, 76, 76 };
				val.m_isTeamColor = new bool[3];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array4[10] = val;
				unit.m_propData = array4;
			}
			if (unit.Entity.Name == "Winged Hussar")
			{
				SLMATool.UnitCost(unit, 1600);
				unit.UnitBase = UPool.MyPool.GetObject("HussarHorse_Base");
				s.SetField<UnitBlueprint>(unit, "VocalRef", (object)"Reinassance Attack Vocals/Jouster");
				s.SetField<UnitBlueprint>(unit, "DeathRef", (object)"Reinassance Death Vocals/Jouster");
				s.SetField<UnitBlueprint>(unit, "VoicePitch", (object)0.7f);
				unit.health = 500f;
				unit.turnSpeed *= 0.5f;
				unit.maxSizeRandom = 0.9f;
				unit.minSizeRandom = 0.9f;
				unit.sizeMultiplier = 0.9f;
				unit.massMultiplier = 15f;
				unit.movementSpeedMuiltiplier = 3.5f;
				unit.damageMultiplier = 1.2f;
				unit.m_props = (GameObject[])(object)new GameObject[5]
				{
					(GameObject)SLMALoader.SDic["clothes"]["Crusader_Horse_Armor_Head"],
					(GameObject)SLMALoader.SDic["clothes"]["Crusader_Horse_Armor_Neck"],
					(GameObject)SLMALoader.SDic["clothes"]["Crusader_Horse_Brittle"],
					(GameObject)SLMALoader.SDic["clothes"]["Horse_Mane_Pinto"],
					(GameObject)SLMALoader.SDic["clothes"]["Horse_saddleblanket001"]
				};
				PropItemData[] array5 = new PropItemData[5];
				PropItemData val = new PropItemData();
				val.m_colors = new int[3] { 76, 67, 1 };
				val.m_isTeamColor = new bool[3] { false, false, true };
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array5[0] = val;
				val = new PropItemData();
				val.m_colors = new int[3] { -1, 72, 67 };
				val.m_isTeamColor = new bool[3];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array5[1] = val;
				val = new PropItemData();
				val.m_colors = new int[1] { 47 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array5[2] = val;
				val = new PropItemData();
				val.m_colors = new int[1];
				val.m_isTeamColor = new bool[1] { true };
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array5[3] = val;
				val = new PropItemData();
				val.m_colors = new int[2] { 76, 67 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array5[4] = val;
				unit.m_propData = (PropItemData[])(object)array5;
				unit.objectsToSpawnAsChildren = (GameObject[])(object)new GameObject[3]
				{
					(GameObject)SLMALoader.SDic["moves"]["Small_Hover"],
					(GameObject)SLMALoader.SDic["moves"]["CavalryCharge"],
					(GameObject)SLMALoader.SDic["moves"]["Move_SpeedExplosions_Cavalry"]
				};
				s.SetField<UnitBlueprint>(unit, "Riders", (object)new UnitBlueprint[1] { (UnitBlueprint)SLMATool.SLMADic["Winged Hussar Rider"] });
			}
			if (unit.Entity.Name == "Hunter Knight")
			{
				SLMATool.UnitCost(unit, 1750);
				unit.UnitBase = UPool.MyPool.GetObject("HunterKnight_Base");
				s.SetField<UnitBlueprint>(unit, "VocalRef", (object)"Medieval Attack Vocals/Knight");
				s.SetField<UnitBlueprint>(unit, "DeathRef", (object)"Medieval Death Vocals/Knight");
				s.SetField<UnitBlueprint>(unit, "footRef", (object)"Footsteps/Big");
				s.SetField<UnitBlueprint>(unit, "VoicePitch", (object)0.75f);
				unit.health = 950f;
				unit.maxSizeRandom = 1f;
				unit.minSizeRandom = 1f;
				unit.sizeMultiplier = 1f;
				unit.massMultiplier = 10f;
				unit.stepMultiplier = 2f;
				unit.movementSpeedMuiltiplier = 2f;
				unit.RightWeapon = UPool.MyPool.GetObject("GunAxe");
				unit.LeftWeapon = UPool.MyPool.GetObject("GunAxe");
				unit.m_props = (GameObject[])(object)new GameObject[15]
				{
					(GameObject)SLMALoader.SDic["clothes"]["SkeletonMask002"],
					(GameObject)SLMALoader.SDic["clothes"]["MummySuit001"],
					(GameObject)SLMALoader.SDic["clothes"]["Pirate_Belt007"],
					(GameObject)SLMALoader.SDic["clothes"]["western_ammobelt001"],
					(GameObject)SLMALoader.SDic["clothes"]["Evil_DarkKingTorso002"],
					(GameObject)SLMALoader.SDic["clothes"]["Crusader_Knight_Boots"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_ThighArmor002"],
					(GameObject)SLMALoader.SDic["clothes"]["Crusader_Knight_KneeArmor"],
					(GameObject)SLMALoader.SDic["clothes"]["Crusader_KneeArmor001"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_ElbowArmor_Both"],
					(GameObject)SLMALoader.SDic["clothes"]["Asia_WristArmor003"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_HandGuard001"],
					(GameObject)SLMALoader.SDic["clothes"]["Medieval_Cape002"],
					(GameObject)SLMALoader.SDic["clothes"]["Crusader_Knight_ShoulderPad"],
					UPool.MyPool.GetObject("HunterKnight_Helmet")
				};
				PropItemData[] array6 = (PropItemData[])(object)new PropItemData[14];
				PropItemData val = new PropItemData();
				val.m_colors = new int[2] { 49, 49 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array6[0] = val;
				val = new PropItemData();
				val.m_colors = new int[1] { 46 };
				val.m_isTeamColor = new bool[1];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array6[1] = val;
				val = new PropItemData();
				val.m_colors = new int[3] { 53, 56, 49 };
				val.m_isTeamColor = new bool[3];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array6[2] = val;
				val = new PropItemData();
				val.m_colors = new int[2] { 53, 73 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array6[3] = val;
				val = new PropItemData();
				val.m_colors = new int[5] { 73, 76, 75, 47, 0 };
				val.m_isTeamColor = new bool[5] { false, false, false, false, true };
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array6[4] = val;
				int num11 = 5;
				PropItemData val6 = new PropItemData();
				val6.m_colors = new int[4] { 0, 73, 76, 53 };
				val6.m_isTeamColor = new bool[4] { true, false, false, false };
				val6.m_positionOffset = new Vector3(0f, 0f, 0f);
				val6.m_scale = new Vector3(1f, 1f, 1f);
				array6[num11] = val6;
				val = new PropItemData();
				val.m_colors = new int[3] { 76, 53, 73 };
				val.m_isTeamColor = new bool[3];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array6[6] = val;
				val = new PropItemData();
				val.m_colors = new int[3] { 53, 76, 73 };
				val.m_isTeamColor = new bool[3];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array6[7] = val;
				val = new PropItemData();
				val.m_colors = new int[2] { 53, 76 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array6[8] = val;
				int num12 = 9;
				val6 = new PropItemData();
				val6.m_colors = new int[8] { 0, 53, 73, 76, 0, 53, 73, 76 };
				val6.m_isTeamColor = new bool[8] { true, false, false, false, true, false, false, false };
				val6.m_positionOffset = new Vector3(0f, 0f, 0f);
				val6.m_scale = new Vector3(1f, 1f, 1f);
				array6[num12] = val6;
				val = new PropItemData();
				val.m_colors = new int[3] { 53, 76, 73 };
				val.m_isTeamColor = new bool[3];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array6[10] = val;
				val = new PropItemData();
				val.m_colors = new int[2] { 73, 53 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array6[11] = val;
				int num13 = 12;
				val6 = new PropItemData();
				val6.m_colors = new int[2] { 0, 73 };
				val6.m_isTeamColor = new bool[2] { true, false };
				val6.m_positionOffset = new Vector3(0f, 0f, 0f);
				val6.m_scale = new Vector3(1f, 1f, 1f);
				array6[num13] = val6;
				val = new PropItemData();
				val.m_colors = new int[2] { 76, 63 };
				val.m_isTeamColor = new bool[2];
				val.m_positionOffset = new Vector3(0f, 0f, 0f);
				val.m_scale = new Vector3(1f, 1f, 1f);
				array6[13] = val;
				unit.m_propData