using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BTD_Mod_Helper; using BTD_Mod_Helper.Api; using BTD_Mod_Helper.Api.Components; using BTD_Mod_Helper.Api.Data; using BTD_Mod_Helper.Api.Helpers; using BTD_Mod_Helper.Api.ModOptions; using BTD_Mod_Helper.Api.Towers; using BTD_Mod_Helper.Extensions; using HarmonyLib; using Il2Cpp; using Il2CppAssets.Scripts.Models; using Il2CppAssets.Scripts.Models.Audio; using Il2CppAssets.Scripts.Models.Behaviors; using Il2CppAssets.Scripts.Models.Bloons; using Il2CppAssets.Scripts.Models.Bloons.Behaviors; using Il2CppAssets.Scripts.Models.Condition; using Il2CppAssets.Scripts.Models.Effects; using Il2CppAssets.Scripts.Models.Entities; using Il2CppAssets.Scripts.Models.GenericBehaviors; using Il2CppAssets.Scripts.Models.Map; using Il2CppAssets.Scripts.Models.SimulationBehaviors; using Il2CppAssets.Scripts.Models.TowerSets; using Il2CppAssets.Scripts.Models.Towers; using Il2CppAssets.Scripts.Models.Towers.Behaviors; using Il2CppAssets.Scripts.Models.Towers.Behaviors.Abilities; using Il2CppAssets.Scripts.Models.Towers.Behaviors.Abilities.Behaviors; using Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack; using Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.Behaviors; using Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions; using Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.Behaviors; using Il2CppAssets.Scripts.Models.Towers.Behaviors.PlacementBehaviors; using Il2CppAssets.Scripts.Models.Towers.Filters; using Il2CppAssets.Scripts.Models.Towers.Mods; using Il2CppAssets.Scripts.Models.Towers.Mutators; using Il2CppAssets.Scripts.Models.Towers.Mutators.Conditions; using Il2CppAssets.Scripts.Models.Towers.Mutators.Conditions.Behaviors; using Il2CppAssets.Scripts.Models.Towers.PlacementBehaviors; using Il2CppAssets.Scripts.Models.Towers.Projectiles; using Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors; using Il2CppAssets.Scripts.Models.Towers.TowerFilters; using Il2CppAssets.Scripts.Models.Towers.Upgrades; using Il2CppAssets.Scripts.Models.Towers.Weapons; using Il2CppAssets.Scripts.Models.Towers.Weapons.Behaviors; using Il2CppAssets.Scripts.Simulation.Objects; using Il2CppAssets.Scripts.Simulation.SMath; using Il2CppAssets.Scripts.Simulation.Towers.Behaviors; using Il2CppAssets.Scripts.Simulation.Towers.Behaviors.Attack; using Il2CppAssets.Scripts.Simulation.Towers.Behaviors.Attack.Behaviors; using Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Behaviors; using Il2CppAssets.Scripts.Unity; using Il2CppAssets.Scripts.Unity.UI_New.InGame.TowerSelectionMenu; using Il2CppAssets.Scripts.Unity.UI_New.Popups; using Il2CppInterop.Runtime; using Il2CppInterop.Runtime.InteropTypes; using Il2CppInterop.Runtime.InteropTypes.Arrays; using Il2CppNinjaKiwi.Common; using Il2CppNinjaKiwi.Common.ResourceUtils; using Il2CppSystem; using Il2CppSystem.Collections; using Il2CppSystem.Collections.Generic; using Il2CppSystem.Reflection; using Il2CppSystem.Runtime.Serialization; using MelonLoader; using Microsoft.CodeAnalysis; using UltimateCrosspathing; using UltimateCrosspathing.Loaders; using UltimateCrosspathing.Merging; using UltimateCrosspathing.PostMergeFixes; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: MelonInfo(typeof(UltimateCrosspathingMod), "Ultimate Crosspathing", "1.8.3", "doombubbles", null)] [assembly: MelonGame("Ninja Kiwi", "BloonsTD6")] [assembly: MelonGame("Ninja Kiwi", "BloonsTD6-Epic")] [assembly: MelonPriority(-500)] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("UltimateCrosspathing")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+2e2712043c3f2bf27331dd0b63bfe15e7b1385a0")] [assembly: AssemblyProduct("UltimateCrosspathing")] [assembly: AssemblyTitle("UltimateCrosspathing")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace UltimateCrosspathing { public abstract class LoadInfo : ModContent { private static readonly Dictionary Cache = new Dictionary(); private ModSettingBool enabled = null; public bool? loaded = null; public virtual ModByteLoader Loader { get; } public bool Enabled { get { return ModSettingBool.op_Implicit(enabled); } set { ((ModSetting)enabled).SetValue((object)value); } } public virtual bool PowerPro => false; public virtual int TopPath => PowerPro ? 3 : 5; public virtual int MidPath => PowerPro ? 3 : 5; public virtual int BotPath => PowerPro ? 3 : 5; protected override int Order { get { int num = ((Il2CppArrayBase)(object)TowerType.towers).IndexOf(((ModContent)this).Name); return (num >= 0) ? num : 99; } } public override IEnumerable Load() { //IL_0003: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0041: Expected O, but got Unknown enabled = new ModSettingBool(true) { button = true, category = Settings.IndividualTowers, displayName = "[" + ((ModContent)this).Name + "]", requiresRestart = true }; base.mod.ModSettings[((ModContent)this).Name + "Enabled"] = (ModSetting)(object)enabled; return ((ModContent)this).Load(); } public sealed override void Register() { Cache[((ModContent)this).Name] = this; ((ModSetting)enabled).icon = Game.instance.model.GetTowerWithName(((ModContent)this).Name).icon.AssetGUID; } public static bool TryFind(string baseId, out LoadInfo loadInfo) { return Cache.TryGetValue(baseId, out loadInfo); } public static bool ShouldWork(string baseId) { LoadInfo loadInfo; return (!TryFind(baseId, out loadInfo)) ? (ModContent.Find(baseId) != null) : (loadInfo.Enabled && loadInfo.loaded != false); } } public class Alchemist : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class BananaFarm : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class BeastHandler : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class BombShooter : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class BoomerangMonkey : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class DartlingGunner : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class DartMonkey : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class Druid : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class EngineerMonkey : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class GlueGunner : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class Desperado : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class HeliPilot : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class IceMonkey : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class MonkeyAce : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class MonkeyBuccaneer : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class MonkeySub : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class MonkeyVillage : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class MortarMonkey : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class NinjaMonkey : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class SniperMonkey : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class SpikeFactory : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class SuperMonkey : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class TackShooter : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class WizardMonkey : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class Mermonkey : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class Skywarden : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); } public class PortableLakePro : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); public override bool PowerPro => true; } public class BananaFarmerPro : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); public override bool PowerPro => true; } public class SuperMonkeyBeacon : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); public override bool PowerPro => true; } public class TechBotPrime : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); public override bool PowerPro => true; } public class MonkeyBoostPro : LoadInfo { public override ModByteLoader Loader => ModContent.GetInstance(); public override bool PowerPro => true; } public static class ModHelperData { public const string WorksOnVersion = "56.0"; public const string Version = "1.8.3"; public const string Name = "Ultimate Crosspathing"; public const string Description = "Instead of your Towers being restricted to 5 Upgrades in one path and 2 in another, you can take your upgrades in any path, optionally up to all 15! Note for Mod Browser: This mod's dll is beefy, so if your internet isn't super fast you may need to go into your Mod Helper Settings and increase the 'Request Timeout' duration under Mod Browser Settings."; public const string RepoOwner = "doombubbles"; public const string PrevRepoName = "ultimate-crosspathing"; public const string RepoName = "UltimateCrosspathing"; } [HarmonyPatch(typeof(UpgradeObject), "CheckBlockedPath")] internal class UpgradeObject_CheckBlockedPath { [HarmonyPostfix] internal static void Postfix(UpgradeObject __instance, ref int __result, ref bool __runOriginal) { if (__instance.tts != null && LoadInfo.ShouldWork(((EntityModel)__instance.tts.Def).baseId) && __runOriginal) { int tier = __instance.tier; Il2CppStructArray tiers = __instance.tts.Def.tiers; int num = ((IEnumerable)tiers).Sum(); int num2 = ModSettingInt.op_Implicit(Settings.MaxTiers) - num; __result = tier + num2; if (__result > 5) { __result = 5; } } } } [HarmonyPatch(typeof(PowerProUpgradeObject), "CheckBlockedPath")] internal static class PowerProUpgradeObject_CheckBlockedPath { [HarmonyPostfix] internal static void Postfix(PowerProUpgradeObject __instance, ref int __result, ref bool __runOriginal) { if (((UpgradeObject)__instance).tts != null && LoadInfo.ShouldWork(((EntityModel)((UpgradeObject)__instance).tts.Def).baseId) && __runOriginal) { int tier = ((UpgradeObject)__instance).tier; Il2CppStructArray tiers = ((UpgradeObject)__instance).tts.Def.tiers; int num = ((IEnumerable)tiers).Sum(); int num2 = ModSettingInt.op_Implicit(Settings.MaxTiersPowersPro) - num; __result = tier + num2; if (__result > 3) { __result = 3; } } } } [HarmonyPatch(typeof(TowerSelectionMenu), "IsUpgradePathClosed")] internal class TowerSelectionMenu_IsUpgradePathClosed { [HarmonyPostfix] internal static void Postfix(TowerSelectionMenu __instance, int path, ref bool __result, ref bool __runOriginal) { if (__instance.selectedTower != null && __runOriginal) { TowerModel def = __instance.selectedTower.Def; bool flag = ((EntityModel)def).baseId == TowerType.BeastHandler && ((IEnumerable)def.tiers).Count((int t) => t > 0) >= 2 && ((Il2CppArrayBase)(object)def.tiers)[path] == 0; if (LoadInfo.ShouldWork(((EntityModel)def).baseId) && !flag) { __result &= ((IEnumerable)def.tiers).Sum() >= ModSettingInt.op_Implicit(__instance.powerProDetails.activeSelf ? Settings.MaxTiersPowersPro : Settings.MaxTiers); } } } } [HarmonyPatch(typeof(PowerProUpgradeObject), "CheckLocked")] internal static class PowerProUpgradeObject_CheckLocked { [HarmonyPostfix] internal static void Postfix(PowerProUpgradeObject __instance, ref bool __runOriginal) { if (((UpgradeObject)__instance).tts != null && __runOriginal) { TowerModel def = ((UpgradeObject)__instance).tts.Def; if (LoadInfo.ShouldWork(((EntityModel)def).baseId)) { bool activeSelf = ((UpgradeObject)__instance).locked.activeSelf; activeSelf &= ((IEnumerable)def.tiers).Sum() >= ModSettingInt.op_Implicit(Settings.MaxTiersPowersPro); ((UpgradeObject)__instance).locked.SetActive(activeSelf); } } } } [HarmonyPatch(typeof(UpgradeObject), "LoadUpgrades")] internal static class UpgradeObject_LoadUpgrades { [HarmonyPostfix] internal static void Postfix(UpgradeObject __instance) { __instance.UpdateVisuals(__instance.path, false); } } [HarmonyPatch(/*Could not decode attribute arguments.*/)] internal class Bank_Cash { [HarmonyPostfix] internal static void Postfix(Bank __instance) { if (__instance.bankModel.autoCollect && __instance.Cash >= __instance.bankModel.capacity) { __instance.Collect(); } } } [HarmonyPatch(typeof(Attack), "UpdateActiveTargetSupplier")] internal static class Attack_UpdateActiveTargetSupplier { [HarmonyPrefix] internal static void Prefix(Attack __instance) { TargetSupplier activeTargetSupplier = __instance.activeTargetSupplier; if (activeTargetSupplier != null && ((RootObject)activeTargetSupplier).IsDestroyed) { __instance.activeTargetSupplier = null; } } } public class Settings : ModSettings { public const int MaxTiersMin = 7; public const int MaxTiersMax = 15; public static readonly ModSettingInt MaxTiers; public static readonly ModSettingInt MaxTiersPowersPro; public static readonly ModSettingCategory IndividualTowers; protected override int Order => 1; static Settings() { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Expected O, but got Unknown //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Expected O, but got Unknown //IL_003b: 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) //IL_004d: Expected O, but got Unknown //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Expected O, but got Unknown //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Expected O, but got Unknown //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_0097: Expected O, but got Unknown ModSettingInt val = new ModSettingInt(15); ((ModSettingNumber)val).min = 7L; ((ModSettingNumber)val).max = 15L; ((ModSettingNumber)val).slider = true; ((ModSetting)val).description = "Controls the maximum number of upgrades that any one tower can have at once. Having this all the way to 15 will enable the complete Ultimate Crosspathing experience!"; MaxTiers = val; ModSettingInt val2 = new ModSettingInt(9); ((ModSettingNumber)val2).min = 3L; ((ModSettingNumber)val2).max = 9L; ((ModSettingNumber)val2).slider = true; ((ModSetting)val2).description = "Controls the maximum number of upgrades that any one por power can have at once. Having this all the way to 9 will enable the complete Ultimate Crosspathing experience!"; MaxTiersPowersPro = val2; IndividualTowers = new ModSettingCategory("Individual Towers") { modifyCategory = delegate(ModHelperCategory category) { //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Unknown result type (might be due to invalid IL or missing references) //IL_00f8: Unknown result type (might be due to invalid IL or missing references) ModHelperButton val3 = ((ModHelperComponent)category).AddButton(new Info("Enable All", 1000f, -100f, 562f, 200f, new Vector2(0.5f, 1f)), "Ui[GreenBtnLong]", Action.op_Implicit((Action)delegate { foreach (LoadInfo item in ModContent.GetContent()) { item.Enabled = true; } })); ((ModHelperComponent)val3).LayoutElement.ignoreLayout = true; ((ModHelperComponent)val3).AddText(new Info("Text", (InfoPreset)0), "Enable All", 80f); ModHelperButton val4 = ((ModHelperComponent)category).AddButton(new Info("Disable All", -1000f, -100f, 562f, 200f, new Vector2(0.5f, 1f)), "Ui[RedBtnLong]", Action.op_Implicit((Action)delegate { foreach (LoadInfo item2 in ModContent.GetContent()) { item2.Enabled = false; } })); ((ModHelperComponent)val4).LayoutElement.ignoreLayout = true; ((ModHelperComponent)val4).AddText(new Info("Text", (InfoPreset)0), "Disable All", 80f); } }; } } public static class Towers { public static readonly Dictionary PathPriorities = new Dictionary { { TowerType.DartMonkey, (0, 2, 1) }, { TowerType.TackShooter, (0, 1, 2) }, { TowerType.BoomerangMonkey, (1, 2, 0) }, { TowerType.BombShooter, (2, 1, 0) }, { TowerType.MonkeyBuccaneer, (0, 1, 2) }, { TowerType.NinjaMonkey, (0, 2, 1) }, { TowerType.SniperMonkey, (1, 2, 0) }, { TowerType.DartlingGunner, (2, 0, 1) }, { TowerType.IceMonkey, (2, 0, 1) }, { TowerType.SuperMonkey, (0, 1, 2) }, { TowerType.GlueGunner, (2, 0, 1) }, { TowerType.WizardMonkey, (0, 2, 1) }, { TowerType.BananaFarm, (1, 2, 0) }, { TowerType.SpikeFactory, (2, 1, 0) }, { TowerType.Mermonkey, (1, 2, 0) }, { TowerType.Skywarden, (0, 1, 2) }, { TowerType.BananaFarmerPro, (0, 1, 2) }, { TowerType.SuperMonkeyBeacon, (1, 2, 0) }, { "MonkeyBoostPro", (0, 1, 2) }, { TowerType.TechBotPrime, (2, 0, 1) }, { TowerType.PortableLakePro, (0, 1, 2) } }; private static bool GetTiersForMerging(LoadInfo loadInfo, int top, int mid, int bot, out int[] leftTiers, out int[] rightTiers) { string name = ((ModContent)loadInfo).Name; int num; int num2; int num3; if (PathPriorities.TryGetValue(name, out var value)) { (num, num2, num3) = value; } else { (num, num2, num3) = PathPriorities[TowerType.DartMonkey]; } int[] array = new int[3] { top, mid, bot }; leftTiers = new int[3] { top, mid, bot }; rightTiers = new int[3] { top, mid, bot }; int[] orderedTiers = array.OrderByDescending((int result) => result).ToArray(); if (loadInfo.PowerPro) { int num4 = array.ToList().IndexOf(0); if (num4 >= 0) { if (num4 == num) { leftTiers[num3] = 0; rightTiers[num2] = 0; } else if (num4 == num2) { leftTiers[num3] = 0; rightTiers[num] = 0; } else if (num4 == num3) { leftTiers[num2] = 0; rightTiers[num] = 0; } return true; } } if (array.All((int i) => i == orderedTiers[0])) { leftTiers[num3] = 0; rightTiers[num2] = 0; } else if (orderedTiers[0] == orderedTiers[1] && orderedTiers[0] >= 3) { if (array[num3] == orderedTiers[2]) { leftTiers[num2] = Math.Min(2, leftTiers[num2]); rightTiers[num] = Math.Min(2, rightTiers[num]); } else if (array[num2] == orderedTiers[2]) { leftTiers[num3] = Math.Min(2, leftTiers[num3]); rightTiers[num] = Math.Min(2, rightTiers[num]); } else if (array[num] == orderedTiers[2]) { leftTiers[num3] = Math.Min(2, leftTiers[num3]); rightTiers[num2] = Math.Min(2, rightTiers[num2]); } } else if (array.Count((int t) => t > 0) == 3) { if (orderedTiers[1] == orderedTiers[2]) { if (orderedTiers[0] == array[num]) { leftTiers[num3] = 0; rightTiers[num2] = 0; } else if (orderedTiers[0] == array[num2]) { leftTiers[num3] = 0; rightTiers[num] = 0; } else if (orderedTiers[0] == array[num3]) { leftTiers[num2] = 0; rightTiers[num] = 0; } } else { for (int num5 = 0; num5 < 3; num5++) { if (array[num5] == orderedTiers[2]) { leftTiers[num5] = 0; break; } } for (int num6 = 2; num6 >= 0; num6--) { if (array[num6] == orderedTiers[1]) { rightTiers[num6] = 0; break; } } } } else { for (int num7 = 0; num7 < 3; num7++) { if (array[num7] == orderedTiers[1]) { leftTiers[num7] = Math.Min(2, leftTiers[num7]); break; } } for (int num8 = 2; num8 >= 0; num8--) { if (array[num8] == orderedTiers[0]) { rightTiers[num8] = Math.Min(2, rightTiers[num8]); break; } } } return true; } public static IEnumerable GetMergeInfo(LoadInfo loadInfo) { string baseId = ((ModContent)loadInfo).Name; Dictionary towers = Il2CppGenericIEnumerable.AsIEnumerable(Game.instance.model.GetTowersWithBaseId(baseId, false)).DistinctBy((TowerModel model) => ((Model)model).name).ToDictionary((TowerModel model) => ((Model)model).name); towers[baseId + "-000"] = towers[baseId]; for (int top = 0; top <= loadInfo.TopPath; top++) { for (int mid = 0; mid <= loadInfo.MidPath; mid++) { for (int bot = 0; bot <= loadInfo.BotPath; bot++) { string newTowerName = $"{baseId}-{top}{mid}{bot}"; int num = top + mid + bot; bool flag = ((num <= 0 || num > 15) ? true : false); if (!flag && !towers.ContainsKey(newTowerName) && GetTiersForMerging(loadInfo, top, mid, bot, out var leftTiers, out var rightTiers)) { int[] commonAncestorTiers = new int[3] { Math.Min(leftTiers[0], rightTiers[0]), Math.Min(leftTiers[1], rightTiers[1]), Math.Min(leftTiers[2], rightTiers[2]) }; string leftName = baseId + "-" + ArrayExt.Printed(leftTiers); string rightName = baseId + "-" + ArrayExt.Printed(rightTiers); string commonAncestorName = baseId + "-" + ArrayExt.Printed(commonAncestorTiers); if (towers.TryGetValue(leftName, out var leftTowerModel) && towers.TryGetValue(rightName, out var rightTowerModel) && towers.TryGetValue(commonAncestorName, out var commonAncestor)) { TowerModel result = ModelExt.Duplicate(leftTowerModel); TowerModel left = ModelExt.Duplicate(leftTowerModel); TowerModel right = ModelExt.Duplicate(rightTowerModel); ModHelper.Msg((object)$"Creating {newTowerName} from {leftName} and {rightName}"); yield return new MergeInfo(result, left, right, commonAncestor); leftTiers = null; rightTiers = null; leftTowerModel = null; rightTowerModel = null; commonAncestor = null; } } } } } } public static TowerModel NewMerge(MergeInfo mergeInfo) { MergeInfo mergeInfo2 = mergeInfo; mergeInfo2.Deconstruct(out var result, out var left, out var right, out var commonAncestor); TowerModel val = result; TowerModel val2 = left; TowerModel val3 = right; TowerModel ancestor = commonAncestor; for (int i = 0; i < 3; i++) { ((Il2CppArrayBase)(object)val.tiers)[i] = Math.Max(((Il2CppArrayBase)(object)val2.tiers)[i], ((Il2CppArrayBase)(object)val3.tiers)[i]); } val.tier = Math.Max(val2.tier, val3.tier); ((Model)val).name = $"{((EntityModel)val).baseId}-{((Il2CppArrayBase)(object)val.tiers)[0]}{((Il2CppArrayBase)(object)val.tiers)[1]}{((Il2CppArrayBase)(object)val.tiers)[2]}"; MergeUpgrades(val, val2, val3); FieldInfo field = Il2CppType.Of().GetField("range"); DeepMerging.MergeField((MemberInfo)(object)field, (Object)(object)val, (Object)(object)val3, (Object)(object)ancestor); FieldInfo field2 = Il2CppType.Of().GetField("mods"); DeepMerging.MergeField((MemberInfo)(object)field2, (Object)(object)val, (Object)(object)val3, (Object)(object)ancestor); FieldInfo field3 = Il2CppType.Of().GetField("behaviors"); DeepMerging.MergeField((MemberInfo)(object)field3, (Object)(object)val, (Object)(object)val3, (Object)(object)ancestor); return val; } private static void MergeUpgrades(TowerModel towerModel, TowerModel first, TowerModel second) { foreach (string item in (Il2CppArrayBase)(object)second.appliedUpgrades) { if (!((Il2CppArrayBase)(object)towerModel.appliedUpgrades).Contains(item)) { towerModel.appliedUpgrades = Il2CppStringArray.op_Implicit(CollectionExtensions.AddItem((IEnumerable)towerModel.appliedUpgrades, item).ToArray()); } } Dictionary dictionary = new Dictionary(); foreach (UpgradePathModel item2 in ((IEnumerable)first.upgrades).Concat((IEnumerable)second.upgrades)) { if (!((Il2CppArrayBase)(object)towerModel.appliedUpgrades).Contains(item2.upgrade)) { dictionary[item2.upgrade] = ((Il2CppObjectBase)((Object)item2).MemberwiseClone()).Cast(); } } foreach (UpgradePathModel value in dictionary.Values) { string text = value.tower.Split('-')[1]; int[] array = new int[3] { Math.Max(int.Parse(text[0].ToString()), ((Il2CppArrayBase)(object)towerModel.tiers)[0]), Math.Max(int.Parse(text[1].ToString()), ((Il2CppArrayBase)(object)towerModel.tiers)[1]), Math.Max(int.Parse(text[2].ToString()), ((Il2CppArrayBase)(object)towerModel.tiers)[2]) }; value.tower = ((array.Sum() <= 15) ? $"{((EntityModel)towerModel).baseId}-{array[0]}{array[1]}{array[2]}" : null); } towerModel.upgrades = IEnumerableExt.ToIl2CppReferenceArray(dictionary.Values.Where((UpgradePathModel u) => u.tower != null)); } public static void AddUpgradeToPrevs(TowerModel towerModel) { //IL_00e6: Unknown result type (might be due to invalid IL or missing references) //IL_00ed: Expected O, but got Unknown for (int i = 0; i < 3; i++) { int num = ((Il2CppArrayBase)(object)towerModel.tiers)[i]; if (num <= 0) { continue; } int[] array = ((IEnumerable)towerModel.tiers).ToArray(); array[i]--; string text = ((EntityModel)towerModel).baseId + "-" + ArrayExt.Printed(array); TowerModel prevTowerModel = Game.instance.model.GetTowerWithName(text); if (prevTowerModel != null) { string upgradeNeeded = ((IEnumerable)towerModel.appliedUpgrades).FirstOrDefault((string upgrade) => !((Il2CppArrayBase)(object)prevTowerModel.appliedUpgrades).Contains(upgrade)); if (upgradeNeeded != null && ((IEnumerable)prevTowerModel.upgrades).All((UpgradePathModel upm) => upm.upgrade != upgradeNeeded)) { UpgradePathModel val = new UpgradePathModel(upgradeNeeded, ((Model)towerModel).name); prevTowerModel.upgrades = Il2CppReferenceArrayExt.AddTo(prevTowerModel.upgrades, val); } } } } public static void PostMerge(TowerModel model) { foreach (PostMergeFix item in ModContent.GetContent()) { item.Apply(model); } } } public class UltimateCrosspathingMod : BloonsTD6Mod { private const string HelpUrl = "https://github.com/doombubbles/ultimate-crosspathing/blob/main/HELP.md"; public override void OnMainMenu() { int failedTowers = ModContent.GetContent().Count((LoadInfo info) => info.loaded != true && info.Enabled); if (failedTowers <= 0) { return; } TaskScheduler.ScheduleTask((Action)delegate { PopupScreen.instance.ShowPopup((Placement)2, "Crosspathing Issue", $"{failedTowers} tower(s) failed to Ultimately Crosspath. " + "An update to the mod, Mod Helper, or MelonLoader may be required. Press 'Help' to be taken to the common issues page.", ReturnCallback.op_Implicit((Action)delegate { ProcessHelper.OpenURL("https://github.com/doombubbles/ultimate-crosspathing/blob/main/HELP.md"); }), "Help", (ReturnCallback)null, "Cancel", (TransitionAnim)1, (BackGround)1, false, false); }, (Func)(() => (Object)(object)PopupScreen.instance != (Object)null && !PopupScreen.instance.IsPopupActive())); } } } namespace UltimateCrosspathing.Tasks { public class Loading : ModLoadTask { public override string DisplayName => "Ultimately Crosspathing..."; public override bool ShowProgressBar => true; public override IEnumerator Coroutine() { List loadInfos = (from info in ModContent.GetContent() where info.Enabled select info).ToList(); Dictionary> validInfosTowers = new Dictionary>(); foreach (LoadInfo loadInfo in loadInfos) { try { List towers = (from model in (IEnumerable)((EntityModel)loadInfo.Loader.LoadResult()).behaviors where model != null select ((Il2CppObjectBase)model).TryCast()).ToList(); validInfosTowers[loadInfo] = towers; } catch (Exception ex) { ModHelper.Warning((object)ex); ModHelper.Warning((object)("Failed loading " + ((ModContent)loadInfo).Name + "s :(")); loadInfo.loaded = false; } yield return null; } int i = 0; foreach (var (loadInfo3, towers2) in validInfosTowers) { ((ModLoadTask)this).Progress = (float)i++ / (float)validInfosTowers.Count; try { foreach (TowerModel towerModel in towers2) { Towers.PostMerge(towerModel); } } catch (Exception ex2) { ModHelper.Warning((object)ex2); ModHelper.Warning((object)("Failed loading " + ((ModContent)loadInfo3).Name + "s :(")); loadInfo3.loaded = false; continue; } yield return null; GameModelExt.AddTowersToGame(Game.instance.model, (IEnumerable)towers2); yield return null; try { foreach (TowerModel towerModel2 in towers2) { Towers.AddUpgradeToPrevs(towerModel2); } } catch (Exception ex3) { ModHelper.Warning((object)ex3); ModHelper.Warning((object)("Failed loading " + ((ModContent)loadInfo3).Name + "s :(")); loadInfo3.loaded = false; continue; } yield return null; loadInfo3.loaded = true; ModHelper.Msg((object)("Finished loading " + ((ModContent)loadInfo3).Name + "s!")); ((ModLoadTask)this).Description = StringExt.Spaced(((ModContent)loadInfo3).Name) + "s"; loadInfo3.Loader.Dispose(); } ((ModLoadTask)this).Description = "Done!"; } } } namespace UltimateCrosspathing.PostMergeFixes { public class FixAbilities : PostMergeFix { public override void Apply(TowerModel model) { foreach (AbilityModel item in TowerModelExt.GetAbilities(model).Where(delegate(AbilityModel abilityModel) { string displayName = abilityModel.displayName; return (displayName == "Supply Drop" || displayName == "Bomb Blitz") ? true : false; })) { ActivateAttackModel descendant = ((Model)item).GetDescendant(); if (descendant != null) { descendant.isOneShot = true; } } if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Elite Sniper")) { TowerModelBehaviorExt.RemoveBehavior(model); } } } public class FixAdvancedIntel : PostMergeFix { public override void Apply(TowerModel model) { if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Advanced Intel")) { Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(TargetFirstSharedRangeModel m) { m.isSharedRangeEnabled = true; }); Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(TargetLastSharedRangeModel m) { m.isSharedRangeEnabled = true; }); Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(TargetCloseSharedRangeModel m) { m.isSharedRangeEnabled = true; }); Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(TargetStrongSharedRangeModel m) { m.isSharedRangeEnabled = true; }); } } } public class FixAircraftCarriers : PostMergeFix { public override void Apply(TowerModel model) { if (!((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Buccaneer-Aircraft Carrier")) { return; } if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Buccaneer-Monkey Pirates")) { AttackModelBehaviorExt.RemoveBehavior(((Model)TowerModelExt.GetAbility(model)).GetDescendant()); } Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(WeaponModel weaponModel) { CreateTowerModel descendant = ((Model)weaponModel).GetDescendant(); SubTowerFilterModel descendant2 = ((Model)weaponModel).GetDescendant(); if (descendant != null && descendant2 != null) { descendant2.baseSubTowerId = ((EntityModel)descendant.tower).baseId; descendant2.baseSubTowerIds = Il2CppStringArray.op_Implicit(new string[1] { descendant2.baseSubTowerId }); } }); TowerModelExt.GetAttackModels(model).ForEach(delegate(AttackModel attackModel) { //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Expected O, but got Unknown Il2CppGenericIEnumerable.ForEach(((Model)attackModel).GetDescendants(), (Action)delegate(RotateToTargetModel targetModel) { targetModel.rotateTower = false; }); Il2CppGenericIEnumerable.ForEach(((Model)attackModel).GetDescendants(), (Action)delegate(EmissionModel emissionModel) { //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Expected O, but got Unknown //IL_010a: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown if (emissionModel.behaviors != null) { List list = Il2CppReferenceArrayExt.ToList(emissionModel.behaviors); foreach (EmissionRotationOffTowerDirectionModel emission in Il2CppReferenceArrayExt.GetItemsOfType(emissionModel.behaviors)) { list.RemoveAll((EmissionBehaviorModel behaviorModel) => ((Model)behaviorModel).name == ((Model)emission).name); ((Model)emissionModel).RemoveChildDependant(emission); EmissionRotationOffDisplayModel val = new EmissionRotationOffDisplayModel("EmissionRotationOffDisplayModel_", emission.offsetRotation); list.Add((EmissionBehaviorModel)(object)val); ((Model)emissionModel).AddChildDependant(val); } foreach (EmissionArcRotationOffTowerDirectionModel emission2 in Il2CppReferenceArrayExt.GetItemsOfType(emissionModel.behaviors)) { list.RemoveAll((EmissionBehaviorModel behaviorModel) => ((Model)behaviorModel).name == ((Model)emission2).name); ((Model)emissionModel).RemoveChildDependant(emission2); EmissionArcRotationOffDisplayDirectionModel val2 = new EmissionArcRotationOffDisplayDirectionModel("EmissionArcRotationOffDisplayDirectionModel_", emission2.offsetRotation); list.Add((EmissionBehaviorModel)(object)val2); ((Model)emissionModel).AddChildDependant(val2); } emissionModel.behaviors = ListExt.ToIl2CppReferenceArray(list); } }); if (!AttackModelBehaviorExt.HasBehavior(attackModel)) { AttackModelBehaviorExt.AddBehavior(attackModel, new DisplayModel("DisplayModel_AttackDisplay", ModContent.CreatePrefabReference(""), 0, (DisplayCategory)1, default(Vector3), 1f, false, 0f, false)); } }); } } public class FixAutoCollectings : PostMergeFix { public override void Apply(TowerModel model) { if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Banana Salvage")) { Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(BankModel bankModel) { bankModel.autoCollect = true; }); } } } public class FixBananas : PostMergeFix { public override void Apply(TowerModel model) { if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Marketplace") || ((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Monkey Bank")) { ProjectileModelBehaviorExt.RemoveBehaviors(TowerModelExt.GetWeapon(model).projectile); ProjectileModelBehaviorExt.RemoveBehaviors(TowerModelExt.GetWeapon(model).projectile); ProjectileModelBehaviorExt.RemoveBehaviors(TowerModelExt.GetWeapon(model).projectile); AgeModel behavior = ProjectileModelBehaviorExt.GetBehavior(TowerModelExt.GetWeapon(model).projectile); if (behavior != null) { behavior.Lifespan = 0f; } CreateTextEffectModel descendant = ((Model)model).GetDescendant(); if (descendant != null) { descendant.useTowerPosition = true; } } } } public class FixBehaviorNames : PostMergeFix { public override void Apply(TowerModel model) { List list = ((IEnumerable)((EntityModel)model).behaviors).ToList(); for (int i = 0; i < list.Count; i++) { Model behavior = list[i]; if (list.Take(i).Any((Model b) => b.name == behavior.name)) { Model obj = behavior; obj.name += i; } } } } public class FixCannonShips : PostMergeFix { public override void Apply(TowerModel model) { if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Buccaneer-Cannon Ship")) { if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Buccaneer-Aircraft Carrier")) { } if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Buccaneer-Destroyer")) { WeaponModel weapon = TowerModelExt.GetWeapon(model, 4); weapon.Rate /= 5f; WeaponModel weapon2 = TowerModelExt.GetWeapon(model, 5); weapon2.Rate /= 5f; } } } } public class FixClusterMauling : PostMergeFix { public override void Apply(TowerModel model) { if (!((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("MOAB Mauler")) { return; } List source = Il2CppGenericIEnumerableExt.ToList(((Model)model).GetDescendants()); DamageModifierForTagModel val = ((IEnumerable)source).FirstOrDefault((Func)((DamageModifierForTagModel m) => m.tag == "Moabs")); DamageModifierForTagModel val2 = ((IEnumerable)source).FirstOrDefault((Func)((DamageModifierForTagModel m) => m.tag == "Ceramic")); foreach (ProjectileModel item in from p in Il2CppGenericIEnumerableExt.ToList(((Model)model).GetDescendants()) where p.id == "Explosion" select p) { ProjectileModelBehaviorExt.RemoveBehaviors(item); if (val != null) { ProjectileModelBehaviorExt.AddBehavior(item, ModelExt.Duplicate(val)); } if (val2 != null) { ProjectileModelBehaviorExt.AddBehavior(item, ModelExt.Duplicate(val2)); } } } } public class FixCrowsNest : PostMergeFix { public override void Apply(TowerModel model) { if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Buccaneer-Crow's Nest")) { Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(FilterInvisibleModel filter) { filter.isActive = false; }); } } } public class FixGlueOverriding : PostMergeFix { public override void Apply(TowerModel model) { if (!((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("MOAB Glue")) { return; } Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(ProjectileModel projectileModel) { List list = Il2CppReferenceArrayExt.ToList(projectileModel.behaviors); list.RemoveAll((Model m) => m.name == "SlowModifierForTagModel_"); projectileModel.behaviors = ListExt.ToIl2CppReferenceArray(list); }); float lifeSpan = 0f; Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(SlowForBloonModel m) { lifeSpan = Math.Max(lifeSpan, ((SlowModel)m).Lifespan); }); Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(SlowModel m) { lifeSpan = Math.Max(lifeSpan, m.Lifespan); }); Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(AddBehaviorToBloonModel m) { lifeSpan = Math.Max(lifeSpan, m.lifespan); }); Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(SlowForBloonModel m) { ((SlowModel)m).Lifespan = lifeSpan; }); Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(SlowModel m) { m.Lifespan = lifeSpan; }); Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(AddBehaviorToBloonModel m) { m.lifespan = lifeSpan; }); Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(AttackFilterModel filterModel) { List list = Il2CppReferenceArrayExt.ToList(filterModel.filters); list.RemoveAll((FilterModel m) => Il2CppSystemObjectExt.IsType((Object)(object)m)); filterModel.filters = ListExt.ToIl2CppReferenceArray(list); }); Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(ProjectileFilterModel filterModel) { List list = Il2CppReferenceArrayExt.ToList(filterModel.filters); list.RemoveAll((FilterModel m) => Il2CppSystemObjectExt.IsType((Object)(object)m)); filterModel.filters = ListExt.ToIl2CppReferenceArray(list); }); } } public class FixHomingProjectiles : PostMergeFix { public override void Apply(TowerModel model) { Enumerator enumerator = Il2CppGenerics.Where(Il2CppGenericIEnumerableExt.ToIl2CppList(((Model)model).GetDescendants()), (Func)((ProjectileModel projectileModel) => ProjectileModelBehaviorExt.GetBehavior(projectileModel) != null)).GetEnumerator(); while (enumerator.MoveNext()) { ProjectileModel current = enumerator.Current; ProjectileModelBehaviorExt.RemoveBehavior(current); } } } public class FixIceMonkeyRange : PostMergeFix { public override void Apply(TowerModel model) { SlowBloonsZoneModel val = default(SlowBloonsZoneModel); if (Il2CppSystemObjectExt.IsType((Object)(object)((Model)model).GetDescendant(), ref val)) { val.zoneRadius = model.range + 5f; } } } public class FixLifespans : PostMergeFix { public override void Apply(TowerModel model) { Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(AgeModel ageModel) { ageModel.Lifespan = Math.Max(ageModel.Lifespan, (float)ageModel.lifespanFrames / 60f); }); } } public class FixMermonkey : PostMergeFix { public override void Apply(TowerModel model) { if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Symphonic Resonance")) { model.towerSelectionMenuThemeId = "MermonkeyTrance"; if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("UpgradeType.SymphonicResonance")) { AttackModel val = ((Il2CppArrayBase)(object)((Model)model).GetDescendant().attacks)[0]; AttackModelBehaviorExt.RemoveBehavior(val); ((Model)val).RemoveChildDependant(val.targetProvider); val.targetProvider = null; } } } } public class FixPlasmaBeams : PostMergeFix { public override void Apply(TowerModel model) { if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Plasma Accelerator")) { TowerModelExt.GetWeapon(model).projectile.radius = 2f; } List list = (from attackModel in TowerModelExt.GetAttackModels(model) where Il2CppReferenceArray.Any(attackModel.weapons, (Func)((WeaponModel weaponModel) => Il2CppSystemObjectExt.IsType((Object)(object)weaponModel.emission))) select attackModel).ToList(); if (list.Count <= 1) { return; } List list2 = ((IEnumerable)((EntityModel)model).behaviors).ToList(); AttackModel val = default(AttackModel); list2.RemoveAll((Model m) => Il2CppSystemObjectExt.IsType((Object)(object)m, ref val) && Il2CppReferenceArray.Any(val.weapons, (Func)((WeaponModel weaponModel) => Il2CppSystemObjectExt.IsType((Object)(object)weaponModel.emission)))); list2.Add((Model)(object)list[0]); ((EntityModel)model).behaviors = ListExt.ToIl2CppReferenceArray(list2); } } public class FixPowersPro : PostMergeFix { public override void Apply(TowerModel model) { //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown if (string.IsNullOrEmpty(model.powerName)) { return; } TowerModelBehaviorExt.RemoveBehaviors(model); TowerModelBehaviorExt.AddBehavior(model, new PowerProTowerModel(((Model)model).name, model.powerName)); if (((EntityModel)model).baseId == TowerType.SuperMonkeyBeacon) { ((Model)model).GetDescendant().Lifespan = (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Reverberation") ? 3.05f : (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Storm Tremors") ? 2.05f : 0f)); foreach (WeaponModel item in Il2CppGenericIEnumerable.AsIEnumerable(((Model)model).GetDescendants())) { if (((Model)item).name.Contains("FollowUp")) { item.customStartCooldown = 2f; } else if (((Model)item).name.Contains("Third")) { item.customStartCooldown = 3f; } } } if (((EntityModel)model).baseId == "MonkeyBoostPro") { AbilityModel ability = TowerModelExt.GetAbility(model); if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Resistance")) { ability.Cooldown = 60f; } int lifespan = (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("NoQuit") ? 30 : (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("HighReps") ? 20 : 15)); Il2CppGenericIEnumerable.ForEach(((Model)ability).GetDescendants(), (Action)delegate(ActivateRateSupportZoneModel m) { m.lifespan = lifespan; }); Il2CppGenericIEnumerable.ForEach(((Model)ability).GetDescendants(), (Action)delegate(ActivateRangeSupportZoneModel m) { m.lifespan = lifespan; }); Il2CppGenericIEnumerable.ForEach(((Model)ability).GetDescendants(), (Action)delegate(ActivateVisibilitySupportZoneModel m) { m.lifespan = lifespan; }); Il2CppGenericIEnumerable.ForEach(((Model)ability).GetDescendants(), (Action)delegate(ActivateAttackCollisionSupportZoneModel m) { m.lifespan = lifespan; }); Il2CppGenericIEnumerable.ForEach(((Model)ability).GetDescendants(), (Action)delegate(ActivateSpreadSupportZoneModel m) { m.lifespan = lifespan; }); Il2CppGenericIEnumerable.ForEach(((Model)ability).GetDescendants(), (Action)delegate(ActivateIgnoreStunSupportZoneModel m) { m.lifespan = lifespan; }); } if (!(((EntityModel)model).baseId == TowerType.TechBotPrime)) { return; } if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("NEUR0MAP")) { Il2CppGenericIEnumerable.ForEach(((Model)model).GetDescendants(), (Action)delegate(TechBotLinkModel m) { m.activateInRadius = true; }); } if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("DroneAmbusNetwork")) { TowerModelBehaviorExt.RemoveBehavior(model); TowerModelBehaviorExt.RemoveBehavior(model, "AmbushTechAbility"); model.UpdateTargetProviders(); } } } public class FixSmallRanges : PostMergeFix { public override void Apply(TowerModel model) { List attackModels = TowerModelExt.GetAttackModels(model); foreach (AttackModel item in attackModels.Where((AttackModel attackModel) => attackModel.range < model.range)) { item.range = model.range; } } } public class FixSpikeStorm : PostMergeFix { public override void Apply(TowerModel model) { if (((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Spike Storm")) { ProjectileModel realProjectile = TowerModelExt.GetWeapon(model).projectile; Il2CppReferenceArray.ForEach(AbilityModelBehaviorExt.GetBehavior(TowerModelExt.GetAbility(model)).attacks, (Action)delegate(AttackModel attackModel) { ProjectileModel projectile = ((Il2CppArrayBase)(object)attackModel.weapons)[0].projectile; AgeRandomModel val = ModelExt.Duplicate(ProjectileModelBehaviorExt.GetBehavior(projectile)); ProjectileModel val2 = ModelExt.Duplicate(realProjectile); ProjectileModelBehaviorExt.RemoveBehaviors(val2); ProjectileModelBehaviorExt.AddBehavior(val2, val); ((Il2CppArrayBase)(object)attackModel.weapons)[0].projectile = val2; }); } } } public class FixTemples : PostMergeFix { public override void Apply(TowerModel model) { if (!((Il2CppArrayBase)(object)model.appliedUpgrades).Contains("Sun Temple")) { return; } foreach (AttackModel attackModel in TowerModelExt.GetAttackModels(model)) { RotateToTargetModel behavior = AttackModelBehaviorExt.GetBehavior(attackModel); if (behavior != null) { behavior.rotateTower = false; } AttackModelBehaviorExt.RemoveBehaviors(attackModel); } } } public abstract class PostMergeFix : ModContent { protected override float RegistrationPriority => 0f; public override int RegisterPerFrame => 999; public sealed override void Register() { } public abstract void Apply(TowerModel model); } } namespace UltimateCrosspathing.Merging { public static class DeepMerging { public class History { public readonly Stack left; public readonly Stack right; public readonly Stack ancestor; public int depth; public History() { left = new Stack(); right = new Stack(); ancestor = new Stack(); depth = -1; } public void Push(Object l, Object r, Object a) { left.Push(l); right.Push(r); ancestor.Push(a); depth++; } public Object Pop() { Object result = left.Pop(); right.Pop(); ancestor.Pop(); depth--; return result; } public T GetLeft() where T : Object { return (from o in left where Il2CppSystemObjectExt.IsType(o) select ((Il2CppObjectBase)o).Cast()).FirstOrDefault(); } public T GetRight() where T : Object { return (from o in right where Il2CppSystemObjectExt.IsType(o) select ((Il2CppObjectBase)o).Cast()).FirstOrDefault(); } public T GetAncestor() where T : Object { return (from o in ancestor where Il2CppSystemObjectExt.IsType(o) select ((Il2CppObjectBase)o).Cast()).FirstOrDefault(); } } private static readonly HashSet DontMerge = new HashSet { "animation", "offsetX", "offsetY", "offsetZ", "ejectX", "ejectY", "ejectZ", "rate", "rateFrames", "isPowerTower", "isGeraldoItem", "isPowerProTower" }; private static readonly HashSet Multiplicative = new HashSet { "pierce", "range" }; private static readonly Dictionary StringOverrides = new Dictionary { { "fcddee8a92f5d2e4d8605a8924566620", "69bf8d5932f2bea4f9ce36f861240d2e" }, { "0ddd8752be0d3554cb0db6abe6686e8e", "69bf8d5932f2bea4f9ce36f861240d2e" } }; private static readonly Dictionary, bool> BetterBooleans = new Dictionary, bool> { { new Tuple("isActive", Il2CppType.Of()), false }, { new Tuple("ignoreBlockers", Il2CppType.Of()), true }, { new Tuple("isSharedRangeEnabled", Il2CppType.Of()), true } }; private static readonly string[] SharedAbilityNames = new string[2] { "Super Monkey Beacon", "Monkey Boost Pro" }; private static Object DeepMerge(Object left, Object right, Object ancestor, History history, bool shallow = false) { if (right == null) { return left; } if (left == null) { return right; } history.Push(left, right, ancestor); try { WeaponModel val = default(WeaponModel); WeaponModel val2 = default(WeaponModel); WeaponModel val3 = default(WeaponModel); if (Il2CppSystemObjectExt.IsType(left, ref val) && Il2CppSystemObjectExt.IsType(right, ref val2) && ancestor != null && Il2CppSystemObjectExt.IsType(ancestor, ref val3)) { WeaponModel obj = val; obj.Rate *= val2.Rate / val3.Rate; } Model leftModel = default(Model); Model rightModel = default(Model); if (Il2CppSystemObjectExt.IsType(left, ref leftModel) && Il2CppSystemObjectExt.IsType(right, ref rightModel) && !(ModelsAreTheSame(leftModel, rightModel, array: false, history) || shallow)) { return MergeDifferentModels(left, right, ancestor, history); } Il2CppReferenceArray fields = left.GetIl2CppType().GetFields(); foreach (FieldInfo item in (Il2CppArrayBase)(object)fields) { string fieldName = ((MemberInfo)item).Name; if (!DontMerge.Any((string s) => fieldName.Contains(s))) { MergeField((MemberInfo)(object)item, left, right, ancestor, history, shallow); } } Il2CppReferenceArray properties = left.GetIl2CppType().GetProperties(); foreach (PropertyInfo item2 in (Il2CppArrayBase)(object)properties) { string propertyName = ((MemberInfo)item2).Name; if (propertyName.ToUpper()[0] != propertyName[0] && !DontMerge.Any((string s) => propertyName.Contains(s))) { MergeField((MemberInfo)(object)item2, left, right, ancestor, history, shallow); } } return left; } finally { history.Pop(); } } public static void MergeField(MemberInfo memberInfo, Object left, Object right, Object ancestor, History history = null, bool shallow = false) { //IL_01c3: Unknown result type (might be due to invalid IL or missing references) //IL_01c8: Unknown result type (might be due to invalid IL or missing references) //IL_01cb: Unknown result type (might be due to invalid IL or missing references) //IL_01d0: Unknown result type (might be due to invalid IL or missing references) //IL_01d2: Unknown result type (might be due to invalid IL or missing references) //IL_01d4: Unknown result type (might be due to invalid IL or missing references) //IL_01d6: Unknown result type (might be due to invalid IL or missing references) //IL_01d9: Expected I4, but got Unknown Type val = memberInfo.Type(); Object value = memberInfo.GetValue(left); Object value2 = memberInfo.GetValue(right); if (history == null) { history = new History(); history.Push(left, right, ancestor); } Log(memberInfo.Name + " (" + ((MemberInfo)val).Name + ")", history.depth); Object val2 = null; if (ancestor != null && ((Il2CppArrayBase)(object)ancestor.GetIl2CppType().GetMember(memberInfo.Name)).Length > 0) { val2 = memberInfo.GetValue(ancestor); } if (value == null && value2 == null) { return; } if (val.IsArray) { memberInfo.SetValue(left, MergeArray(memberInfo, value, value2, val2, history, shallow)); } else if (val.IsType()) { memberInfo.SetValue(left, MergeFloat(memberInfo, value, value2, val2)); } else if (val.IsType()) { memberInfo.SetValue(left, MergeInt(memberInfo, value, value2, val2)); } else if (val.IsType()) { memberInfo.SetValue(left, MergeBool(memberInfo, value, value2, history)); } else if (val.IsType()) { memberInfo.SetValue(left, DeepMerge(value, value2, val2, history)); } else if (val.IsType()) { FieldInfo val3 = ((Il2CppObjectBase)memberInfo).TryCast(); if (val3 == (FieldInfo)null || (!val3.IsLiteral && !val3.IsInitOnly)) { memberInfo.SetValue(left, MergeString(memberInfo, value, value2, val2)); } } else if (val.IsType()) { BloonProperties val4 = ((Il2CppObjectBase)value).Unbox(); BloonProperties val5 = ((Il2CppObjectBase)value2).Unbox(); int num = val4 & val5; memberInfo.SetValue(left, Il2CppSystemObjectExt.ToIl2Cpp(num)); } } private static Object MergeArray(MemberInfo memberInfo, Object left, Object right, Object ancestor, History history, bool shallow = false) { if (left == null && right != null) { return right; } if (right == null && left != null) { return left; } history.depth++; Type elementType = memberInfo.Type().GetElementType(); List list = new List(); List list2 = new List(); IEnumerator enumerator = ((Il2CppObjectBase)left).Cast().GetEnumerator(); try { while (enumerator.MoveNext()) { Object current = enumerator.Current; list2.Add(current); } } finally { if (enumerator is IDisposable disposable) { disposable.Dispose(); } } List list3 = new List(); IEnumerator enumerator2 = ((Il2CppObjectBase)right).Cast().GetEnumerator(); try { while (enumerator2.MoveNext()) { Object current2 = enumerator2.Current; list3.Add(current2); } } finally { if (enumerator2 is IDisposable disposable2) { disposable2.Dispose(); } } List list4 = new List(); if (ancestor != null) { IEnumerator enumerator3 = ((Il2CppObjectBase)ancestor).Cast().GetEnumerator(); try { while (enumerator3.MoveNext()) { Object current3 = enumerator3.Current; list4.Add(current3); } } finally { if (enumerator3 is IDisposable disposable3) { disposable3.Dispose(); } } } if (!elementType.IsType()) { list = ((memberInfo.Name == "collisionPasses") ? ((list3.Count > list2.Count) ? list3 : list2) : ((list2.Count != list4.Count || list3.Count == list4.Count) ? list2 : list3)); } else { AttackModel val2 = default(AttackModel); foreach (Object item in list2) { Model leftModel = ((Il2CppObjectBase)item).Cast(); Model val = list3.Select((Object rightThing) => ((Il2CppObjectBase)rightThing).Cast()).FirstOrDefault((Func)((Model model) => ModelsAreTheSame(leftModel, model, array: true, history))); if (val != null && !shallow) { Model ancestor2 = list4.Select((Object ancestorThing) => ((Il2CppObjectBase)ancestorThing).Cast()).FirstOrDefault((Func)((Model model) => ModelsAreTheSame(leftModel, model, array: true, history))); Log(leftModel.name + " (" + ((MemberInfo)((Object)leftModel).GetIl2CppType()).Name + ")", history.depth); DeepMerge((Object)(object)leftModel, (Object)(object)val, (Object)(object)ancestor2, history); } list.Add((Object)(object)leftModel); if (Il2CppSystemObjectExt.IsType((Object)(object)leftModel, ref val2)) { TowerModel left2 = history.GetLeft(); TowerModel right2 = history.GetRight(); if ((double)Math.Abs(right2.range - val2.range) < 10000000.0 && left2.range > right2.range) { val2.range = Math.Max(left2.range, val2.range); } } } Model val5 = default(Model); AttackModel val6 = default(AttackModel); foreach (Object item2 in list3) { Model rightModel = ((Il2CppObjectBase)item2).Cast(); Model val3 = list2.Select((Object leftThing) => ((Il2CppObjectBase)leftThing).Cast()).FirstOrDefault((Func)((Model model) => ModelsAreTheSame(model, rightModel, array: true, history))); if (val3 != null) { continue; } list.Add((Object)(object)rightModel); Object val4 = history.left.Peek(); if (val4 != null && Il2CppSystemObjectExt.IsType(val4, ref val5)) { val5.AddChildDependant(rightModel); } if (Il2CppSystemObjectExt.IsType((Object)(object)rightModel, ref val6)) { TowerModel left3 = history.GetLeft(); TowerModel right3 = history.GetRight(); if ((double)Math.Abs(right3.range - val6.range) < 10000000.0 && left3.range > right3.range) { val6.range = Math.Max(left3.range, val6.range); } } } } Array val7 = Array.CreateInstance(memberInfo.Type().GetElementType(), list.Count); for (int num = 0; num < list.Count; num++) { val7.SetValue(list[num], num); } history.depth--; return (Object)(object)val7; } private static Object MergeInt(MemberInfo memberInfo, Object leftValue, Object rightValue, Object ancestorValue) { if (leftValue == null) { return rightValue; } if (rightValue == null) { return leftValue; } int num = ((Il2CppObjectBase)leftValue).Unbox(); int num2 = ((Il2CppObjectBase)rightValue).Unbox(); if (ancestorValue != null && num != num2) { int num3 = ((Il2CppObjectBase)ancestorValue).Unbox(); num = ((!Multiplicative.Any((string s) => memberInfo.Name.Contains(s))) ? (num + (num2 - num3)) : (num * num2 / num3)); } return Il2CppSystemObjectExt.ToIl2Cpp(num); } private static Object MergeFloat(MemberInfo memberInfo, Object leftValue, Object rightValue, Object ancestorValue) { if (leftValue == null) { return rightValue; } if (rightValue == null) { return leftValue; } float num = ((Il2CppObjectBase)leftValue).Unbox(); float num2 = ((Il2CppObjectBase)rightValue).Unbox(); if (ancestorValue != null && (double)Math.Abs(num - num2) > 1E-07) { float num3 = ((Il2CppObjectBase)ancestorValue).Unbox(); num = ((!Multiplicative.Any((string s) => memberInfo.Name.Contains(s))) ? (num + (num2 - num3)) : (num * (num2 / num3))); } return Il2CppSystemObjectExt.ToIl2Cpp(num); } private static Object MergeBool(MemberInfo memberInfo, Object leftValue, Object rightValue, History history) { if (leftValue == null) { return rightValue; } if (rightValue == null) { return leftValue; } string name = memberInfo.Name; bool flag = ((Il2CppObjectBase)leftValue).Unbox(); bool flag2 = ((Il2CppObjectBase)rightValue).Unbox(); if (flag != flag2) { foreach (KeyValuePair, bool> betterBoolean in BetterBooleans) { betterBoolean.Deconstruct(out var key, out var value); key.Deconstruct(out var item, out var item2); string value2 = item; Type val = item2; bool flag3 = value; if (name.Contains(value2) && ((Object)history.GetLeft()).GetIl2CppType().IsSubclassOf(val)) { return Il2CppSystemObjectExt.ToIl2Cpp(flag3); } } } return Il2CppSystemObjectExt.ToIl2Cpp(flag); } private static Object MergeString(MemberInfo memberInfo, Object leftValue, Object rightValue, Object ancestorValue) { try { if (leftValue == null) { return rightValue; } if (rightValue == null) { return leftValue; } string text = leftValue.ToString(); string text2 = rightValue.ToString(); if (StringOverrides.ContainsKey(text) && StringOverrides[text] == text2) { return Object.op_Implicit(text); } if (StringOverrides.ContainsKey(text2) && StringOverrides[text2] == text) { return Object.op_Implicit(text2); } if (ancestorValue != null) { string text3 = ancestorValue.ToString(); if (text == text3 && text2 != text3) { return rightValue; } } } catch (Exception innerException) { throw new Exception("Failed to merge strings for " + memberInfo.Name, innerException); } return leftValue; } private static Object MergeDifferentModels(Object left, Object right, Object ancestor, History history) { Model val = ((Il2CppObjectBase)left).Cast(); Model val2 = ((Il2CppObjectBase)right).Cast(); Model val3 = null; if (ancestor != null) { val3 = ((Il2CppObjectBase)ancestor).Cast(); } EmissionModel emissionModel = default(EmissionModel); EmissionModel emissionModel2 = default(EmissionModel); if (Il2CppSystemObjectExt.IsType((Object)(object)val, ref emissionModel) && Il2CppSystemObjectExt.IsType((Object)(object)val2, ref emissionModel2)) { if (Il2CppSystemObjectExt.IsType((Object)(object)val2)) { return (Object)(object)val2; } int countForEmissionModel = GetCountForEmissionModel(left, emissionModel); int countForEmissionModel2 = GetCountForEmissionModel(right, emissionModel2); TowerModel left2 = history.GetLeft(); if (((left2 != null) ? TowerModelBehaviorExt.GetBehavior(left2) : null) != null) { WeaponModel left3 = history.GetLeft(); WeaponModel ancestor2 = history.GetAncestor(); if (left3 != null && ancestor2 != null) { int countForEmissionModel3 = GetCountForEmissionModel(ancestor, ((Il2CppObjectBase)val3).Cast()); ProjectileModelExt.GetDamageModel(left3.projectile).damage = (float)Math.Round(ProjectileModelExt.GetDamageModel(left3.projectile).damage * (float)countForEmissionModel2 / (float)countForEmissionModel3); TowerModelBehaviorExt.GetBehavior(history.GetLeft()).projectileModel = left3.projectile; } return (Object)(object)val; } return (Object)(object)((countForEmissionModel2 > countForEmissionModel) ? val2 : val); } ProjectileModel val4 = default(ProjectileModel); ProjectileModel val5 = default(ProjectileModel); ProjectileModel val6 = default(ProjectileModel); if (Il2CppSystemObjectExt.IsType((Object)(object)val, ref val4) && Il2CppSystemObjectExt.IsType((Object)(object)val2, ref val5) && Il2CppSystemObjectExt.IsType((Object)(object)val3, ref val6)) { return DeepMerge((Object)(object)val, (Object)(object)val2, ancestor, history, shallow: true); } return (Object)(object)val; } private static Object ShallowMerge(Object left, Object right, Object ancestor, History history) { Il2CppReferenceArray fields = left.GetIl2CppType().GetFields(); foreach (FieldInfo item in (Il2CppArrayBase)(object)fields) { Object value = item.GetValue(left); Object value2 = item.GetValue(right); string fieldName = ((MemberInfo)item).Name; if (!DontMerge.Any((string s) => fieldName.Contains(s))) { if (((MemberInfo)(object)item).Type().IsArray) { item.SetValue(left, MergeArray((MemberInfo)(object)item, value, value2, ancestor, history, shallow: true)); } else { MergeField((MemberInfo)(object)item, left, right, ancestor, history); } } } Il2CppReferenceArray properties = left.GetIl2CppType().GetProperties(); foreach (PropertyInfo item2 in (Il2CppArrayBase)(object)properties) { Object value3 = item2.GetValue(left); Object value4 = item2.GetValue(right); string propertyName = ((MemberInfo)item2).Name; if (propertyName.ToUpper()[0] != propertyName[0] && !DontMerge.Any((string s) => propertyName.Contains(s))) { if (((MemberInfo)(object)item2).Type().IsArray) { item2.SetValue(left, MergeArray((MemberInfo)(object)item2, left, right, ancestor, history, shallow: true)); } else { MergeField((MemberInfo)(object)item2, left, right, ancestor, history); } } } return left; } private static int GetCountForEmissionModel(Object methodInfo, EmissionModel emissionModel) { int result = 1; if (Il2CppSystemObjectExt.IsType((Object)(object)emissionModel)) { result = 10000; } PropertyInfo property = ((Object)emissionModel).GetIl2CppType().GetProperty("count"); if (property != (PropertyInfo)null) { Object value = property.GetValue(methodInfo); if (value != null) { result = ((Il2CppObjectBase)value).Unbox(); } } FieldInfo field = ((Object)emissionModel).GetIl2CppType().GetField("count"); if (field != (FieldInfo)null) { Object value2 = field.GetValue(methodInfo); if (value2 != null) { result = ((Il2CppObjectBase)value2).Unbox(); } } return result; } private static void Log(string msg, int depth) { for (int i = 0; i < depth; i++) { msg = "| " + msg; } } private static bool ModelsAreTheSame(Model leftModel, Model rightModel, bool array, History history) { AbilityModel leftAbility = default(AbilityModel); AbilityModel rightAbility = default(AbilityModel); if (Il2CppSystemObjectExt.IsType((Object)(object)leftModel, ref leftAbility) && Il2CppSystemObjectExt.IsType((Object)(object)rightModel, ref rightAbility)) { return leftAbility.displayName == rightAbility.displayName || ArrayExt.Any(SharedAbilityNames, (Func)((string name) => leftAbility.displayName.StartsWith(name) && rightAbility.displayName.StartsWith(name))); } if (Il2CppSystemObjectExt.IsType((Object)(object)leftModel) && Il2CppSystemObjectExt.IsType((Object)(object)rightModel) && leftModel.name.Contains("Create") && rightModel.name.Contains("Create") && leftModel.name.Contains("On") && rightModel.name.Contains("On") && ((MemberInfo)((Object)leftModel).GetIl2CppType()).Name == ((MemberInfo)((Object)rightModel).GetIl2CppType()).Name) { return true; } if (Il2CppSystemObjectExt.IsType((Object)(object)leftModel) && Il2CppSystemObjectExt.IsType((Object)(object)rightModel)) { ProjectileModel val = ((Il2CppObjectBase)leftModel).Cast(); ProjectileModel val2 = ((Il2CppObjectBase)rightModel).Cast(); return val.id == val2.id || array; } AttackModel val3 = default(AttackModel); AttackModel val4 = default(AttackModel); if (Il2CppSystemObjectExt.IsType((Object)(object)leftModel, ref val3) && Il2CppSystemObjectExt.IsType((Object)(object)rightModel, ref val4)) { bool flag = Il2CppReferenceArray.Any(val3.weapons, (Func)((WeaponModel weapon) => Il2CppSystemObjectExt.IsType((Object)(object)weapon.emission))); bool flag2 = Il2CppReferenceArray.Any(val4.weapons, (Func)((WeaponModel weapon) => Il2CppSystemObjectExt.IsType((Object)(object)weapon.emission))); if (flag2 != flag) { return false; } if (AttackModelBehaviorExt.HasBehavior(val3) != AttackModelBehaviorExt.HasBehavior(val4)) { return false; } DisplayModel behavior = AttackModelBehaviorExt.GetBehavior(val3); DisplayModel behavior2 = AttackModelBehaviorExt.GetBehavior(val4); if (behavior != null && behavior2 != null) { if (behavior.display != behavior2.display) { return false; } } else if (behavior != null || behavior2 != null) { return false; } } return rightModel.name == leftModel.name && ((MemberInfo)((Object)rightModel).GetIl2CppType()).Name == ((MemberInfo)((Object)leftModel).GetIl2CppType()).Name; } private static bool IsType(this Type typ) { if (typeof(T).IsEnum) { return typeof(T).FullName.EndsWith(typ.FullName); } Type val = Il2CppType.From(typeof(T)); return val.IsAssignableFrom(typ); } public static Type Type(this MemberInfo memberInfo) { if (((Object)memberInfo).GetIl2CppType().IsType()) { return ((Il2CppObjectBase)memberInfo).Cast().FieldType; } if (((Object)memberInfo).GetIl2CppType().IsType()) { return ((Il2CppObjectBase)memberInfo).Cast().PropertyType; } return null; } public static Object GetValue(this MemberInfo memberInfo, Object obj) { if (((Object)memberInfo).GetIl2CppType().IsType()) { return ((Il2CppObjectBase)memberInfo).Cast().GetValue(obj); } if (((Object)memberInfo).GetIl2CppType().IsType()) { return ((Il2CppObjectBase)memberInfo).Cast().GetValue(obj); } return null; } public static void SetValue(this MemberInfo memberInfo, Object obj, Object newValue) { if (((Object)memberInfo).GetIl2CppType().IsType()) { ((Il2CppObjectBase)memberInfo).Cast().SetValue(obj, newValue); } if (((Object)memberInfo).GetIl2CppType().IsType()) { ((Il2CppObjectBase)memberInfo).Cast().SetValue(obj, newValue, (Il2CppReferenceArray)null); } } } public struct MergeInfo { public TowerModel result; public TowerModel left; public TowerModel right; public TowerModel commonAncestor; public string SucessMessage => $"Successfully made {((Model)result).name} from {((Model)left).name} and {((Model)right).name}"; public MergeInfo(TowerModel result, TowerModel left, TowerModel right, TowerModel commonAncestor) { this.result = result; this.left = left; this.right = right; this.commonAncestor = commonAncestor; } public void Deconstruct(out TowerModel result, out TowerModel left, out TowerModel right, out TowerModel commonAncestor) { result = this.result; left = this.left; right = this.right; commonAncestor = this.commonAncestor; } } } namespace UltimateCrosspathing.Loaders { public class AlchemistLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "Alchemists.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Single_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadSingle(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void Read_String_v_Single_Dictionary() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Dictionary val = new Dictionary(num3); for (int j = 0; j < num3; j++) { string text = (br.ReadBoolean() ? null : br.ReadString()); float num4 = br.ReadSingle(); val[text] = num4; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_String_v_String_Dictionary() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Dictionary val = new Dictionary(num3); for (int j = 0; j < num3; j++) { string text = (br.ReadBoolean() ? null : br.ReadString()); string text2 = (br.ReadBoolean() ? null : br.ReadString()); val[text] = text2; } ((ModByteLoader)this).m[mIndex++] = val; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_TowerBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorBuffModel val = (TowerBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.isGlobalRange = br.ReadBoolean(); } } private void Set_v_CanBuffIndicatorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { CanBuffIndicatorModel val = (CanBuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.isDisabled = br.ReadBoolean(); } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionBehaviorModel val = (EmissionBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AcidPoolEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AcidPoolEmissionModel val = (AcidPoolEmissionModel)((ModByteLoader)this).m[i + start]; val.alwaysPoolOnCount = br.ReadInt32(); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_CreateProjectileOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustFractionModel val = (CreateProjectileOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.fraction = br.ReadSingle(); val.durationfraction = br.ReadSingle(); val.canCreateInBetweenRounds = br.ReadBoolean(); val.collideOnSubProjectile = br.ReadBoolean(); val.passOnCollidedWith = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AddBehaviorToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBehaviorToBloonModel val2 = (AddBehaviorToBloonModel)((ModByteLoader)this).m[i + start]; val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.layers = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isUnique = br.ReadBoolean(); val2.lastAppliesFirst = br.ReadBoolean(); val2.collideThisFrame = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.glueLevel = br.ReadInt32(); val2.applyOnlyIfDamaged = br.ReadBoolean(); val2.stackCount = br.ReadInt32(); val2.dontCopy = br.ReadBoolean(); val2.parentDamageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_BloonBehaviorModelWithTowerTracking_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModelWithTowerTracking val = (BloonBehaviorModelWithTowerTracking)((ModByteLoader)this).m[i + start]; } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageOverTimeModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); FieldInfo field2 = val.GetField("initialDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { DamageOverTimeModel val2 = (DamageOverTimeModel)((ModByteLoader)this).m[i + start]; val2.damage = br.ReadSingle(); val2.payloadCount = br.ReadInt32(); val2.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val2.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val2.displayLifetime = br.ReadSingle(); val2.triggerImmediate = br.ReadBoolean(); val2.rotateEffectWithBloon = br.ReadBoolean(); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.damageOnDestroy = br.ReadBoolean(); val2.overrideDistributionBlocker = br.ReadBoolean(); val2.distributeToChildren = br.ReadBoolean(); val2.damageModifierModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isFireBased = br.ReadBoolean(); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_IncreaseBloonWorthModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("duration", (BindingFlags)60); for (int i = 0; i < count; i++) { IncreaseBloonWorthModel val2 = (IncreaseBloonWorthModel)((ModByteLoader)this).m[i + start]; val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val2.cash = br.ReadSingle(); val2.cashMultiplier = br.ReadSingle(); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.charges = br.ReadInt32(); val2.bloonPropertiesToRemove = (BloonProperties)br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_FilterWithTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagModel val = (FilterWithTagModel)((ModByteLoader)this).m[i + start]; val.moabTag = br.ReadBoolean(); val.camoTag = br.ReadBoolean(); val.growTag = br.ReadBoolean(); val.fortifiedTag = br.ReadBoolean(); val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.inclusive = br.ReadBoolean(); val.hasMoabTag = br.ReadBoolean(); } } private void Set_v_IncreaseWorthTextEffectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { IncreaseWorthTextEffectModel val = (IncreaseWorthTextEffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.displayFullPayout = br.ReadBoolean(); } } private void Set_v_RemoveBloonModifiersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveBloonModifiersModel val = (RemoveBloonModifiersModel)((ModByteLoader)this).m[i + start]; val.cleanseRegen = br.ReadBoolean(); val.cleanseCamo = br.ReadBoolean(); val.cleanseLead = br.ReadBoolean(); val.cleanseFortified = br.ReadBoolean(); val.cleanseOnlyIfDamaged = br.ReadBoolean(); val.bloonTagExcludeList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonTagExplicitList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AcidPoolModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespanIfMisses", (BindingFlags)60); for (int i = 0; i < count; i++) { AcidPoolModel val2 = (AcidPoolModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.radiusIfMisses = br.ReadSingle(); val2.pierce = br.ReadSingle(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_ScaleProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ScaleProjectileModel val = (ScaleProjectileModel)((ModByteLoader)this).m[i + start]; val.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_Curve_Fields(int start, int count) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("samples", (BindingFlags)60); for (int i = 0; i < count; i++) { Curve val2 = (Curve)((ModByteLoader)this).m[i + start]; val2.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustFractionModel val = (CreateEffectOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.fraction = br.ReadSingle(); val.durationFraction = br.ReadSingle(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ArriveAtTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ArriveAtTargetModel val = (ArriveAtTargetModel)((ModByteLoader)this).m[i + start]; val.timeToTake = br.ReadSingle(); val.curveSamples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.filterCollisionWhileMoving = br.ReadBoolean(); val.expireOnArrival = br.ReadBoolean(); val.altSpeed = br.ReadSingle(); val.stopOnTargetReached = br.ReadBoolean(); val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; val.keepUpdatingTargetPos = br.ReadBoolean(); val.rotateToTarget = br.ReadBoolean(); val.maxTurnAngle = br.ReadSingle(); val.positionAboveMoabTypes = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetTrackOrDefaultAcidPoolModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetTrackOrDefaultAcidPoolModel val = (TargetTrackOrDefaultAcidPoolModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); val.useTowerRange = br.ReadBoolean(); val.isActive = br.ReadBoolean(); } } private void Set_v_SingleEmmisionTowardsTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmmisionTowardsTargetModel val = (SingleEmmisionTowardsTargetModel)((ModByteLoader)this).m[i + start]; val.offset = br.ReadSingle(); } } private void Set_v_FilterAllModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllModel val = (FilterAllModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterMoabModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterMoabModel val = (FilterMoabModel)((ModByteLoader)this).m[i + start]; val.flip = br.ReadBoolean(); } } private void Set_v_FilterMutatedTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterMutatedTargetModel val = (FilterMutatedTargetModel)((ModByteLoader)this).m[i + start]; val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.mutationIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.inverse = br.ReadBoolean(); } } private void Set_v_EmitOnPopModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); for (int i = 0; i < count; i++) { EmitOnPopModel val = (EmitOnPopModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.pierceOverride = br.ReadSingle(); val.ignoreSameFrameDegrade = br.ReadBoolean(); } } private void Set_v_UnstableConcoctionSplashModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_EmitOnPopModel_Fields(start, count); for (int i = 0; i < count; i++) { UnstableConcoctionSplashModel val = (UnstableConcoctionSplashModel)((ModByteLoader)this).m[i + start]; val.baseIdToBloonDmg = (Dictionary)((ModByteLoader)this).m[br.ReadInt32()]; val.defaultBloonDmg = br.ReadSingle(); val.baseIdToMoabDmg = (Dictionary)((ModByteLoader)this).m[br.ReadInt32()]; val.bossToMoabDmg = br.ReadSingle(); val.defaultMoabDmg = br.ReadSingle(); } } private void Set_v_DamageModifierUnstableConcoctionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierUnstableConcoctionModel val = (DamageModifierUnstableConcoctionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CollideExtraPierceReductionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CollideExtraPierceReductionModel val = (CollideExtraPierceReductionModel)((ModByteLoader)this).m[i + start]; val.bloonTag = (br.ReadBoolean() ? null : br.ReadString()); val.extraAmount = br.ReadInt32(); val.destroyProjectileIfPierceNotEnough = br.ReadBoolean(); } } private void Set_v_FilterOutTagModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutTagModel val = (FilterOutTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.disableWhenSupportMutatorIDs = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnProjectileExhaustModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileExhaustModel val = (CreateSoundOnProjectileExhaustModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_MorphBloonModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { MorphBloonModel val = (MorphBloonModel)((ModByteLoader)this).m[i + start]; val.bloonId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ParallelEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { ParallelEmissionModel val = (ParallelEmissionModel)((ModByteLoader)this).m[i + start]; val.spreadLength = br.ReadSingle(); val.yOffset = br.ReadSingle(); val.count = br.ReadInt32(); val.linear = br.ReadBoolean(); val.offsetStart = br.ReadSingle(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_SwitchDisplayModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { SwitchDisplayModel val2 = (SwitchDisplayModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.excludeSubTowers = br.ReadBoolean(); val2.createEffectOnSwitchBackModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.resetOnDefeatScreen = br.ReadBoolean(); val2.animationStateOnActivate = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_IncreaseRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { IncreaseRangeModel val = (IncreaseRangeModel)((ModByteLoader)this).m[i + start]; val.lifespanFrames = br.ReadInt32(); val.multiplier = br.ReadSingle(); val.addative = br.ReadSingle(); val.endOnDefeatScreen = br.ReadBoolean(); } } private void Set_v_MorphTowerModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_00b5: Unknown result type (might be due to invalid IL or missing references) //IL_00bf: Expected O, but got Unknown //IL_00d4: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Expected O, but got Unknown //IL_00f3: Unknown result type (might be due to invalid IL or missing references) //IL_00fd: Expected O, but got Unknown //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Expected O, but got Unknown //IL_018d: Unknown result type (might be due to invalid IL or missing references) //IL_0197: Expected O, but got Unknown //IL_01e2: Unknown result type (might be due to invalid IL or missing references) //IL_01ec: Expected O, but got Unknown //IL_023a: Unknown result type (might be due to invalid IL or missing references) //IL_0244: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("LinkedAbilityCooldowns", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); FieldInfo field3 = val.GetField("morphDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { MorphTowerModel val2 = (MorphTowerModel)((ModByteLoader)this).m[i + start]; val2.isUnique = br.ReadBoolean(); val2.priority = br.ReadInt32(); val2.mutateAll = br.ReadBoolean(); val2.mutateSelf = br.ReadBoolean(); val2.towerModel = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.secondaryTowerModel = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.effectOnTransitionBackModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.maxTier = br.ReadInt32(); val2.maxCost = br.ReadSingle(); val2.maxTowers = br.ReadInt32(); val2.affectList = (br.ReadBoolean() ? null : br.ReadString()); val2.affectListArray = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.resetOnDefeatScreen = br.ReadBoolean(); val2.ignoreWithMutators = (br.ReadBoolean() ? null : br.ReadString()); val2.ignoreWithMutatorsList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canTowerStillUpgrade = br.ReadBoolean(); val2.saveMutator = br.ReadBoolean(); val2.animationIndexDuringMorphDelay = br.ReadInt32(); val2.effectDuringMorphDelay = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; field.SetValue((Object)(object)val2, (Object)(object)(Dictionary)((ModByteLoader)this).m[br.ReadInt32()]); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CreateEffectOnAbilityEndModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { CreateEffectOnAbilityEndModel val2 = (CreateEffectOnAbilityEndModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_FilterAllExceptTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllExceptTargetModel val = (FilterAllExceptTargetModel)((ModByteLoader)this).m[i + start]; val.cantbePaused = br.ReadBoolean(); } } private void Set_v_AddAcidicMixtureToProjectileModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AddAcidicMixtureToProjectileModel val = (AddAcidicMixtureToProjectileModel)((ModByteLoader)this).m[i + start]; val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.cap = br.ReadInt32(); val.towerBehaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.weapBehaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.projBehaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreList = (br.ReadBoolean() ? null : br.ReadString()); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AcidicMixtureCheckModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AcidicMixtureCheckModel val = (AcidicMixtureCheckModel)((ModByteLoader)this).m[i + start]; val.maxCount = br.ReadInt32(); val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AcidicMixtureModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AcidicMixtureModel val = (AcidicMixtureModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DestroyIfTargetLostModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DestroyIfTargetLostModel val = (DestroyIfTargetLostModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetFriendlyModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFriendlyModel val = (TargetFriendlyModel)((ModByteLoader)this).m[i + start]; val.ignoreList = (br.ReadBoolean() ? null : br.ReadString()); val.isSelectable = br.ReadBoolean(); val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.mustHaveWeapon = br.ReadBoolean(); } } private void Set_v_AddBerserkerBrewToProjectileModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_016e: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Expected O, but got Unknown //IL_020e: Unknown result type (might be due to invalid IL or missing references) //IL_0218: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("rebuffBlockTime", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBerserkerBrewToProjectileModel val2 = (AddBerserkerBrewToProjectileModel)((ModByteLoader)this).m[i + start]; val2.cap = br.ReadInt32(); val2.ignoreList = (br.ReadBoolean() ? null : br.ReadString()); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.damageUp = br.ReadSingle(); val2.pierceUp = br.ReadSingle(); val2.rateUp = br.ReadSingle(); val2.rangeUp = br.ReadSingle(); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.weapBehaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.towerBehaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.ignoreMutationsByOrder = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.assetId = ModContent.CreatePrefabReference(br.ReadString()); val2.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val2.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val2.mutatorsToRemove = (br.ReadBoolean() ? null : br.ReadString()); val2.mutatorsToRemoveList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_BerserkerBrewModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BerserkerBrewModel val = (BerserkerBrewModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_BerserkerBrewCheckModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BerserkerBrewCheckModel val = (BerserkerBrewCheckModel)((ModByteLoader)this).m[i + start]; val.maxCount = br.ReadInt32(); val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_BrewTargettingModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { BrewTargettingModel val = (BrewTargettingModel)((ModByteLoader)this).m[i + start]; val.towerIgnoreList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreMutationsByOrder = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_CreateSoundOnProjectileExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileExpireModel val = (CreateSoundOnProjectileExpireModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.limiter = br.ReadInt32(); } } private void Set_v_LoadAlchemistBrewInfoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LoadAlchemistBrewInfoModel val = (LoadAlchemistBrewInfoModel)((ModByteLoader)this).m[i + start]; val.addBerserkerBrewToProjectileModel = (AddBerserkerBrewToProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.addAcidicMixtureToProjectileModel = (AddAcidicMixtureToProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RemovePermaBrewModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemovePermaBrewModel val = (RemovePermaBrewModel)((ModByteLoader)this).m[i + start]; } } protected override TowerModel Load(byte[] bytes) { //IL_0c4b: Unknown result type (might be due to invalid IL or missing references) //IL_0c52: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); Read_a_Single_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Read_String_v_Single_Dictionary(); Read_String_v_String_Dictionary(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CanBuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AcidPoolEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageOverTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_IncreaseBloonWorthModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_IncreaseWorthTextEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveBloonModifiersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AcidPoolModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ScaleProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Curve_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArriveAtTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetTrackOrDefaultAcidPoolModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmmisionTowardsTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterMoabModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterMutatedTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UnstableConcoctionSplashModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierUnstableConcoctionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CollideExtraPierceReductionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileExhaustModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MorphBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ParallelEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SwitchDisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_IncreaseRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MorphTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityEndModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllExceptTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddAcidicMixtureToProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AcidicMixtureCheckModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AcidicMixtureModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DestroyIfTargetLostModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFriendlyModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBerserkerBrewToProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BerserkerBrewModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BerserkerBrewCheckModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BrewTargettingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LoadAlchemistBrewInfoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemovePermaBrewModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class BananaFarmerProLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "BananaFarmerPros.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Single_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadSingle(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_PowerProTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PowerProTowerModel val = (PowerProTowerModel)((ModByteLoader)this).m[i + start]; val.powerId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CollectCashZoneModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CollectCashZoneModel val = (CollectCashZoneModel)((ModByteLoader)this).m[i + start]; val.attractRange = br.ReadSingle(); val.collectRange = br.ReadSingle(); val.lerpMultiplier = br.ReadSingle(); val.towerFilter = (br.ReadBoolean() ? null : br.ReadString()); val.useTowerRange = br.ReadBoolean(); val.countCollectedCash = br.ReadBoolean(); val.animateTower = br.ReadBoolean(); val.rotate = br.ReadBoolean(); val.onlyAttractsCamo = br.ReadBoolean(); val.minEmitWaitTime = br.ReadSingle(); val.minEmitWaitTimeFrames = br.ReadInt32(); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PlayAnimationIndexModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PlayAnimationIndexModel val = (PlayAnimationIndexModel)((ModByteLoader)this).m[i + start]; val.placeAnimation = br.ReadInt32(); val.upgradeAnimation = br.ReadInt32(); } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ShowCashIconInsteadModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ShowCashIconInsteadModel val = (ShowCashIconInsteadModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_BananaFarmerCamoBananasModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BananaFarmerCamoBananasModel val = (BananaFarmerCamoBananasModel)((ModByteLoader)this).m[i + start]; val.camoBananaWeaponModel = (WeaponModel)((ModByteLoader)this).m[br.ReadInt32()]; val.camoBananaFarmCount = br.ReadInt32(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmmisionTowardsTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmmisionTowardsTargetModel val = (SingleEmmisionTowardsTargetModel)((ModByteLoader)this).m[i + start]; val.offset = br.ReadSingle(); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_PickupModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("delay", (BindingFlags)60); for (int i = 0; i < count; i++) { PickupModel val2 = (PickupModel)((ModByteLoader)this).m[i + start]; val2.collectRadius = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.isCamoPickup = br.ReadBoolean(); } } private void Set_v_CashModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CashModel val = (CashModel)((ModByteLoader)this).m[i + start]; val.minimum = br.ReadSingle(); val.maximum = br.ReadSingle(); val.bonusMultiplier = br.ReadSingle(); val.salvage = br.ReadSingle(); val.noTransformCash = br.ReadBoolean(); val.distributeSalvage = br.ReadBoolean(); val.forceCreateProjectile = br.ReadBoolean(); val.isDoubleable = br.ReadBoolean(); val.distributeBonusIncome = br.ReadBoolean(); val.emittedByCashEarnedMultiplier = br.ReadSingle(); val.isPowerCash = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateTextEffectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateTextEffectModel val = (CreateTextEffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.useTowerPosition = br.ReadBoolean(); } } private void Set_v_ScaleProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ScaleProjectileModel val = (ScaleProjectileModel)((ModByteLoader)this).m[i + start]; val.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_Curve_Fields(int start, int count) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("samples", (BindingFlags)60); for (int i = 0; i < count; i++) { Curve val2 = (Curve)((ModByteLoader)this).m[i + start]; val2.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_ArriveAtTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ArriveAtTargetModel val = (ArriveAtTargetModel)((ModByteLoader)this).m[i + start]; val.timeToTake = br.ReadSingle(); val.curveSamples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.filterCollisionWhileMoving = br.ReadBoolean(); val.expireOnArrival = br.ReadBoolean(); val.altSpeed = br.ReadSingle(); val.stopOnTargetReached = br.ReadBoolean(); val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; val.keepUpdatingTargetPos = br.ReadBoolean(); val.rotateToTarget = br.ReadBoolean(); val.maxTurnAngle = br.ReadSingle(); val.positionAboveMoabTypes = br.ReadBoolean(); } } private void Set_v_HeightOffsetProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { HeightOffsetProjectileModel val = (HeightOffsetProjectileModel)((ModByteLoader)this).m[i + start]; val.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionsPerRoundFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionsPerRoundFilterModel val = (EmissionsPerRoundFilterModel)((ModByteLoader)this).m[i + start]; val.count = br.ReadInt32(); } } private void Set_v_WeaponRateMinModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponRateMinModel val = (WeaponRateMinModel)((ModByteLoader)this).m[i + start]; val.min = br.ReadSingle(); } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TowerBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorBuffModel val = (TowerBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.isGlobalRange = br.ReadBoolean(); } } private void Set_v_CashbackZoneModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { CashbackZoneModel val = (CashbackZoneModel)((ModByteLoader)this).m[i + start]; val.cashbackZoneMultiplier = br.ReadSingle(); val.cashbackMaxPercent = br.ReadSingle(); val.groupName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStacks = br.ReadInt32(); val.baseIds = (br.ReadBoolean() ? null : br.ReadString()); val.baseIdsArray = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DiscountZoneModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { DiscountZoneModel val = (DiscountZoneModel)((ModByteLoader)this).m[i + start]; val.discountMultiplier = br.ReadSingle(); val.stackLimit = br.ReadInt32(); val.stackName = (br.ReadBoolean() ? null : br.ReadString()); val.affectSelf = br.ReadBoolean(); val.tierCap = br.ReadInt32(); val.tierMin = br.ReadInt32(); val.towerBaseIds = (br.ReadBoolean() ? null : br.ReadString()); val.towerBaseIdList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.isBuffFromArea = br.ReadBoolean(); val.upgradeId = (br.ReadBoolean() ? null : br.ReadString()); val.dontAffectOthersInCoop = br.ReadBoolean(); val.isGlobal = br.ReadBoolean(); } } private void Set_v_MonkeyBankerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { MonkeyBankerModel val = (MonkeyBankerModel)((ModByteLoader)this).m[i + start]; val.bankIncomeMultiplierBase = br.ReadSingle(); val.bankIncomeMultiplierPerStack = br.ReadSingle(); val.bankIncomeMaxStacks = br.ReadInt32(); val.isBananaFinancier = br.ReadBoolean(); val.bankInstaDepositAmount = br.ReadSingle(); val.bankInstaDepositStackAmount = br.ReadSingle(); val.bankInstaDepositMaxStackAmount = br.ReadSingle(); val.bankCollectAnimation = br.ReadInt32(); } } private void Set_v_BananaFarmerRegrowBananasModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Expected O, but got Unknown //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { BananaFarmerRegrowBananasModel val = (BananaFarmerRegrowBananasModel)((ModByteLoader)this).m[i + start]; val.regrowBananaSkinModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.regrowPerBanana = br.ReadInt32(); val.selectionObjectPath = ModContent.CreatePrefabReference(br.ReadString()); val.isSelectableGameObject = ModContent.CreatePrefabReference(br.ReadString()); val.activateSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.confirmSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lineDisplayPath = ModContent.CreatePrefabReference(br.ReadString()); val.lineDotOffset = br.ReadSingle(); val.lineDotSpacing = br.ReadSingle(); val.isBananaIntelligenceBureau = br.ReadBoolean(); } } private void Set_v_BananaFarmerRegrowBananasWeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BananaFarmerRegrowBananasWeaponBehaviorModel val = (BananaFarmerRegrowBananasWeaponBehaviorModel)((ModByteLoader)this).m[i + start]; val.regrowBananaPeelModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.regrowPerBanana = br.ReadInt32(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ClearHitBloonsWhenNoLongerCollidingModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); for (int i = 0; i < count; i++) { ClearHitBloonsWhenNoLongerCollidingModel val2 = (ClearHitBloonsWhenNoLongerCollidingModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_RemoveBloonModifiersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveBloonModifiersModel val = (RemoveBloonModifiersModel)((ModByteLoader)this).m[i + start]; val.cleanseRegen = br.ReadBoolean(); val.cleanseCamo = br.ReadBoolean(); val.cleanseLead = br.ReadBoolean(); val.cleanseFortified = br.ReadBoolean(); val.cleanseOnlyIfDamaged = br.ReadBoolean(); val.bloonTagExcludeList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonTagExplicitList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_WindModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Expected O, but got Unknown //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); for (int i = 0; i < count; i++) { WindModel val = (WindModel)((ModByteLoader)this).m[i + start]; val.distanceMin = br.ReadSingle(); val.distanceMax = br.ReadSingle(); val.chance = br.ReadSingle(); val.affectMoab = br.ReadBoolean(); val.distanceScaleForTags = br.ReadSingle(); val.distanceScaleForTagsTags = (br.ReadBoolean() ? null : br.ReadString()); val.distanceScaleForTagsTagsList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.speedMultiplier = br.ReadSingle(); val.tagFilter = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.tagInclusive = br.ReadBoolean(); } } private void Set_v_BananaPeelLimitProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BananaPeelLimitProjectileModel val = (BananaPeelLimitProjectileModel)((ModByteLoader)this).m[i + start]; val.projectileId = (br.ReadBoolean() ? null : br.ReadString()); val.bananasRequired = br.ReadInt32(); } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetTrackModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetTrackModel val = (TargetTrackModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.maxOffset = br.ReadSingle(); val.onlyTargetPathsWithBloons = br.ReadBoolean(); } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } protected override TowerModel Load(byte[] bytes) { //IL_0722: Unknown result type (might be due to invalid IL or missing references) //IL_0729: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_Single_Array(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PowerProTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CollectCashZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PlayAnimationIndexModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ShowCashIconInsteadModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BananaFarmerCamoBananasModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmmisionTowardsTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PickupModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CashModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateTextEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ScaleProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Curve_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArriveAtTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_HeightOffsetProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionsPerRoundFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponRateMinModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CashbackZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DiscountZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MonkeyBankerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BananaFarmerRegrowBananasModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BananaFarmerRegrowBananasWeaponBehaviorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ClearHitBloonsWhenNoLongerCollidingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveBloonModifiersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WindModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BananaPeelLimitProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetTrackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class BananaFarmLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "BananaFarms.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Single_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadSingle(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RectangleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { RectangleFootprintModel val = (RectangleFootprintModel)((ModByteLoader)this).m[i + start]; val.xWidth = br.ReadSingle(); val.yWidth = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ShowCashIconInsteadModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ShowCashIconInsteadModel val = (ShowCashIconInsteadModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_BankModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BankModel val = (BankModel)((ModByteLoader)this).m[i + start]; val.capacity = br.ReadSingle(); val.interest = br.ReadSingle(); val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.fullBankAssetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.autoCollect = br.ReadBoolean(); val.collectAnimation = br.ReadInt32(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SendToBankModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SendToBankModel val = (SendToBankModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_CashModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CashModel val = (CashModel)((ModByteLoader)this).m[i + start]; val.minimum = br.ReadSingle(); val.maximum = br.ReadSingle(); val.bonusMultiplier = br.ReadSingle(); val.salvage = br.ReadSingle(); val.noTransformCash = br.ReadBoolean(); val.distributeSalvage = br.ReadBoolean(); val.forceCreateProjectile = br.ReadBoolean(); val.isDoubleable = br.ReadBoolean(); val.distributeBonusIncome = br.ReadBoolean(); val.emittedByCashEarnedMultiplier = br.ReadSingle(); val.isPowerCash = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateTextEffectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateTextEffectModel val = (CreateTextEffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.useTowerPosition = br.ReadBoolean(); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionsPerRoundFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionsPerRoundFilterModel val = (EmissionsPerRoundFilterModel)((ModByteLoader)this).m[i + start]; val.count = br.ReadInt32(); } } private void Set_v_WeaponRateMinModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponRateMinModel val = (WeaponRateMinModel)((ModByteLoader)this).m[i + start]; val.min = br.ReadSingle(); } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RandomPositionBasicModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomPositionBasicModel val = (RandomPositionBasicModel)((ModByteLoader)this).m[i + start]; val.minRadius = br.ReadSingle(); val.maxRadius = br.ReadSingle(); val.mapBorder = br.ReadSingle(); val.useTerrainHeight = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_SingleEmmisionTowardsTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmmisionTowardsTargetModel val = (SingleEmmisionTowardsTargetModel)((ModByteLoader)this).m[i + start]; val.offset = br.ReadSingle(); } } private void Set_v_TowerBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorBuffModel val = (TowerBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.isGlobalRange = br.ReadBoolean(); } } private void Set_v_CentralMarketBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { CentralMarketBuffModel val = (CentralMarketBuffModel)((ModByteLoader)this).m[i + start]; val.multiplier = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackCount = br.ReadInt32(); } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_PerRoundCashBonusTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PerRoundCashBonusTowerModel val = (PerRoundCashBonusTowerModel)((ModByteLoader)this).m[i + start]; val.cashPerRound = br.ReadSingle(); val.cashRoundBonusMultiplier = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.distributeCash = br.ReadBoolean(); } } private void Set_v_CollectCashZoneModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CollectCashZoneModel val = (CollectCashZoneModel)((ModByteLoader)this).m[i + start]; val.attractRange = br.ReadSingle(); val.collectRange = br.ReadSingle(); val.lerpMultiplier = br.ReadSingle(); val.towerFilter = (br.ReadBoolean() ? null : br.ReadString()); val.useTowerRange = br.ReadBoolean(); val.countCollectedCash = br.ReadBoolean(); val.animateTower = br.ReadBoolean(); val.rotate = br.ReadBoolean(); val.onlyAttractsCamo = br.ReadBoolean(); val.minEmitWaitTime = br.ReadSingle(); val.minEmitWaitTimeFrames = br.ReadInt32(); } } private void Set_v_BonusLivesPerRoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BonusLivesPerRoundModel val = (BonusLivesPerRoundModel)((ModByteLoader)this).m[i + start]; val.amount = br.ReadInt32(); val.lifespan = br.ReadSingle(); val.assetId = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ImfLoanModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ImfLoanModel val = (ImfLoanModel)((ModByteLoader)this).m[i + start]; val.amount = br.ReadSingle(); val.incomeRecoveryRate = br.ReadSingle(); val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.imfLoanCollection = (ImfLoanCollectionModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SimulationBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SimulationBehaviorModel val = (SimulationBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ImfLoanCollectionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SimulationBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ImfLoanCollectionModel val = (ImfLoanCollectionModel)((ModByteLoader)this).m[i + start]; val.collectionRate = br.ReadSingle(); val.amount = br.ReadSingle(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PickupModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("delay", (BindingFlags)60); for (int i = 0; i < count; i++) { PickupModel val2 = (PickupModel)((ModByteLoader)this).m[i + start]; val2.collectRadius = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.isCamoPickup = br.ReadBoolean(); } } private void Set_v_ScaleProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ScaleProjectileModel val = (ScaleProjectileModel)((ModByteLoader)this).m[i + start]; val.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_Curve_Fields(int start, int count) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("samples", (BindingFlags)60); for (int i = 0; i < count; i++) { Curve val2 = (Curve)((ModByteLoader)this).m[i + start]; val2.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_ArriveAtTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ArriveAtTargetModel val = (ArriveAtTargetModel)((ModByteLoader)this).m[i + start]; val.timeToTake = br.ReadSingle(); val.curveSamples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.filterCollisionWhileMoving = br.ReadBoolean(); val.expireOnArrival = br.ReadBoolean(); val.altSpeed = br.ReadSingle(); val.stopOnTargetReached = br.ReadBoolean(); val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; val.keepUpdatingTargetPos = br.ReadBoolean(); val.rotateToTarget = br.ReadBoolean(); val.maxTurnAngle = br.ReadSingle(); val.positionAboveMoabTypes = br.ReadBoolean(); } } private void Set_v_HeightOffsetProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { HeightOffsetProjectileModel val = (HeightOffsetProjectileModel)((ModByteLoader)this).m[i + start]; val.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_BananaCentralBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { BananaCentralBuffModel val = (BananaCentralBuffModel)((ModByteLoader)this).m[i + start]; val.multiplier = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); } } protected override TowerModel Load(byte[] bytes) { //IL_070c: Unknown result type (might be due to invalid IL or missing references) //IL_0713: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); CreateArraySet(); CreateArraySet(); Read_a_Single_Array(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RectangleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ShowCashIconInsteadModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BankModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SendToBankModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CashModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateTextEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionsPerRoundFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponRateMinModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomPositionBasicModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmmisionTowardsTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CentralMarketBuffModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PerRoundCashBonusTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CollectCashZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BonusLivesPerRoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ImfLoanModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ImfLoanCollectionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PickupModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ScaleProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Curve_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArriveAtTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_HeightOffsetProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BananaCentralBuffModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class BeastHandlerLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "BeastHandlers.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Single_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadSingle(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_SyncTargetPriorityWithSubTowersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0085: Expected O, but got Unknown //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SyncTargetPriorityWithSubTowersModel val = (SyncTargetPriorityWithSubTowersModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.targetTypeMustExist = br.ReadBoolean(); val.ignoreTowersList = (br.ReadBoolean() ? null : br.ReadString()); val.ignoreTowers = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.placeOnlyForTowersList = (br.ReadBoolean() ? null : br.ReadString()); val.placeOnlyForTowers = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_BeastHandlerLeashModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_0191: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Expected O, but got Unknown //IL_01af: Unknown result type (might be due to invalid IL or missing references) //IL_01b9: Expected O, but got Unknown //IL_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_01d7: Expected O, but got Unknown //IL_01eb: Unknown result type (might be due to invalid IL or missing references) //IL_01f5: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BeastHandlerLeashModel val = (BeastHandlerLeashModel)((ModByteLoader)this).m[i + start]; val.towerModel = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val.spawnerAttackModel = (AttackModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerModelSecond = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val.spawnerAttackModelSecond = (AttackModel)((ModByteLoader)this).m[br.ReadInt32()]; val.moveAnimationState = br.ReadInt32(); val.rotateToLeashedTower = br.ReadBoolean(); val.contributedToLineDisplayPath = ModContent.CreatePrefabReference(br.ReadString()); val.contributedFromLineDisplayPath = ModContent.CreatePrefabReference(br.ReadString()); val.contributionDotOffset = br.ReadSingle(); val.contributionDotSpacing = br.ReadSingle(); val.contributionDotSpeed = br.ReadSingle(); val.buffedTextDisplayPrefab = ModContent.CreatePrefabReference(br.ReadString()); val.mergedTextDisplayPrefab = ModContent.CreatePrefabReference(br.ReadString()); val.powerTextDisplayPrefab = ModContent.CreatePrefabReference(br.ReadString()); val.validMergeTargetObjectPath = ModContent.CreatePrefabReference(br.ReadString()); val.piranhaPetModel = (BeastHandlerPetModel)((ModByteLoader)this).m[br.ReadInt32()]; val.microraptorPetModel = (BeastHandlerPetModel)((ModByteLoader)this).m[br.ReadInt32()]; val.gyrfalconPetModel = (BeastHandlerPetModel)((ModByteLoader)this).m[br.ReadInt32()]; val.mergeSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PlayAnimationIndexModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PlayAnimationIndexModel val = (PlayAnimationIndexModel)((ModByteLoader)this).m[i + start]; val.placeAnimation = br.ReadInt32(); val.upgradeAnimation = br.ReadInt32(); } } private void Set_v_SavedSubTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SavedSubTowerModel val = (SavedSubTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreditPopsToParentTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreditPopsToParentTowerModel val = (CreditPopsToParentTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_TowerExpireOnParentDestroyedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerExpireOnParentDestroyedModel val = (TowerExpireOnParentDestroyedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_BeastHandlerPetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BeastHandlerPetModel val = (BeastHandlerPetModel)((ModByteLoader)this).m[i + start]; val.tier = br.ReadInt32(); val.path = br.ReadInt32(); val.requiredCount = br.ReadInt32(); val.canMove = br.ReadBoolean(); val.rotateWhenMoved = br.ReadBoolean(); val.basePower = br.ReadInt32(); val.maxPower = br.ReadInt32(); val.enableContribution = br.ReadBoolean(); val.cooldownScaleRange = br.ReadSingle(); val.pierceRange = br.ReadInt32(); val.damageRange = br.ReadInt32(); val.destroyTimeScaleRangePiranha = br.ReadSingle(); val.thrashKnockbackLifetimeRange = br.ReadSingle(); val.stunBonusDivideMicroraptor = br.ReadSingle(); val.damageRangeGrappleGyrfalcon = br.ReadInt32(); val.speedRangeGyrfalcon = br.ReadSingle(); val.displayStepModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.genericIcon = ModContent.CreateSpriteReference(br.ReadString()); } } private void Set_v_BeastHandlerPetDisplayStepModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BeastHandlerPetDisplayStepModel val = (BeastHandlerPetDisplayStepModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.projectileDisplay = ModContent.CreatePrefabReference(br.ReadString()); val.percent = br.ReadSingle(); } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_InstantDamageEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { InstantDamageEmissionModel val = (InstantDamageEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterAllExceptTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllExceptTargetModel val = (FilterAllExceptTargetModel)((ModByteLoader)this).m[i + start]; val.cantbePaused = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForBloonStateModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForBloonStateModel val = (DamageModifierForBloonStateModel)((ModByteLoader)this).m[i + start]; val.bloonState = (br.ReadBoolean() ? null : br.ReadString()); val.bloonStates = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAdditive = br.ReadSingle(); val.mustIncludeAllStates = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.mustBeModified = br.ReadBoolean(); } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateEffectOnContactModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnContactModel val = (CreateEffectOnContactModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CycleAnimationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CycleAnimationModel val = (CycleAnimationModel)((ModByteLoader)this).m[i + start]; val.minAnimationState = br.ReadInt32(); val.maxAnimationState = br.ReadInt32(); val.loopMode = (br.ReadBoolean() ? null : br.ReadString()); val.randomize = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AnimateOnBeastHandlerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AnimateOnBeastHandlerModel val = (AnimateOnBeastHandlerModel)((ModByteLoader)this).m[i + start]; val.animationStateMinParent = br.ReadInt32(); val.animationStateMaxParent = br.ReadInt32(); val.animationStateMinContributor = br.ReadInt32(); val.animationStateMaxContributor = br.ReadInt32(); } } private void Set_v_RandomPositionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomPositionModel val = (RandomPositionModel)((ModByteLoader)this).m[i + start]; val.minDistance = br.ReadSingle(); val.maxDistance = br.ReadSingle(); val.targetRadius = br.ReadSingle(); val.targetRadiusSquared = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); val.pointDistance = br.ReadSingle(); val.dontUseTowerPosition = br.ReadBoolean(); val.areaType = (br.ReadBoolean() ? null : br.ReadString()); val.useInverted = br.ReadBoolean(); val.ignoreTerrain = br.ReadBoolean(); val.idealDistanceWithinTrack = br.ReadSingle(); val.towerSet = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnAirUnitDestroyModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAirUnitDestroyModel val = (CreateEffectOnAirUnitDestroyModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.rotation = br.ReadSingle(); val.scale = br.ReadSingle(); } } private void Set_v_AttackAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_AttackModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackAirUnitModel val = (AttackAirUnitModel)((ModByteLoader)this).m[i + start]; val.displayAirUnitModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_GyrfalconPatternModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Expected O, but got Unknown //IL_00d1: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Expected O, but got Unknown //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00f9: Expected O, but got Unknown //IL_026d: Unknown result type (might be due to invalid IL or missing references) //IL_0277: Expected O, but got Unknown //IL_028b: Unknown result type (might be due to invalid IL or missing references) //IL_0295: Expected O, but got Unknown //IL_02a9: Unknown result type (might be due to invalid IL or missing references) //IL_02b3: Expected O, but got Unknown //IL_0333: Unknown result type (might be due to invalid IL or missing references) //IL_033d: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { GyrfalconPatternModel val = (GyrfalconPatternModel)((ModByteLoader)this).m[i + start]; val.maxSpeed = br.ReadSingle(); val.rotationSpeed = br.ReadSingle(); val.beginMovementAnimationState = br.ReadInt32(); val.hoverAnimationState = br.ReadInt32(); val.snapDistance = br.ReadSingle(); val.cooldown = br.ReadSingle(); val.cooldownFrames = br.ReadInt32(); val.initialDamageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val.grapplingDamageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val.grabProjectileModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.grappleDamageRate = br.ReadSingle(); val.grappleDamageRateFrames = br.ReadInt32(); val.selectPointDisplay = ModContent.CreatePrefabReference(br.ReadString()); val.selectPointDisplayInvalid = ModContent.CreatePrefabReference(br.ReadString()); val.leadPiercePenalty = br.ReadInt32(); val.ceramicPiercePenalty = br.ReadInt32(); val.moabPiercePenalty = br.ReadInt32(); val.bfbPiercePenalty = br.ReadInt32(); val.zomgPiercePenalty = br.ReadInt32(); val.ddtPiercePenalty = br.ReadInt32(); val.continuePickingUpBloons = br.ReadBoolean(); val.moabSpeedScale = br.ReadSingle(); val.enableAdjacentHover = br.ReadBoolean(); val.keepPickingUpBloons = br.ReadBoolean(); val.snatchHoverAnimationState = br.ReadInt32(); val.snatchFlyingAnimationState = br.ReadInt32(); val.handlerSendAnimationState = br.ReadInt32(); val.handlerHoverAnimationState = br.ReadInt32(); val.bloonTargetSpeedMultiplier = br.ReadSingle(); val.initialDamageMoabModifierModel = (DamageModifierForTagModel)((ModByteLoader)this).m[br.ReadInt32()]; val.grapplingDamageMoabModifierModel = (DamageModifierForTagModel)((ModByteLoader)this).m[br.ReadInt32()]; val.regrowDamageModifierModel = (DamageModifierForTagModel)((ModByteLoader)this).m[br.ReadInt32()]; val.idleMinTime = br.ReadSingle(); val.idleMinTimeFrames = br.ReadInt32(); val.idleMaxTime = br.ReadSingle(); val.idleMaxTimeFrames = br.ReadInt32(); val.initialYOffset = br.ReadSingle(); val.keepPickingBloonsRange = br.ReadSingle(); val.noGrabEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.grabRadius = br.ReadSingle(); val.grabAmount = br.ReadInt32(); val.extraGrabAmount = br.ReadSingle(); } } private void Set_v_FilterBloonIfDamageTypeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterBloonIfDamageTypeModel val = (FilterBloonIfDamageTypeModel)((ModByteLoader)this).m[i + start]; val.ifCantHitBloonProperties = (BloonProperties)br.ReadInt32(); val.damageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterOutTagModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutTagModel val = (FilterOutTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.disableWhenSupportMutatorIDs = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AirUnitModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AirUnitModel val = (AirUnitModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.displayScale = br.ReadSingle(); val.isAirUnitSelectable = br.ReadBoolean(); val.selectableRadius = br.ReadSingle(); val.blocksPlacement = br.ReadBoolean(); val.blockingRadius = br.ReadSingle(); } } private void Set_v_PathMovementModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PathMovementModel val = (PathMovementModel)((ModByteLoader)this).m[i + start]; val.speed = br.ReadSingle(); val.rotation = br.ReadSingle(); val.bankRotation = br.ReadSingle(); val.bankRotationMul = br.ReadSingle(); val.ignoreTargetType = br.ReadBoolean(); val.catchUpSpeed = br.ReadSingle(); val.takeOffTime = br.ReadSingle(); val.takeOffExponent = br.ReadSingle(); val.takeOffAnimTime = br.ReadSingle(); val.takeOffScale = br.ReadSingle(); val.takeOffScaleExponent = br.ReadSingle(); val.takeOffPitch = br.ReadSingle(); val.takeOffPitchExponent = br.ReadSingle(); val.fixedPathSupplierId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_BeastHandlerUpgradeLockModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BeastHandlerUpgradeLockModel val = (BeastHandlerUpgradeLockModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterOutBloonModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutBloonModel val = (FilterOutBloonModel)((ModByteLoader)this).m[i + start]; val.bloonId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_SlowModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("multiplier", (BindingFlags)60); for (int i = 0; i < count; i++) { SlowModel val2 = (SlowModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.layers = br.ReadInt32(); val2.overlayLayer = br.ReadInt32(); val2.glueLevel = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.dontRefreshDuration = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.removeMutatorIfNotMatching = br.ReadBoolean(); val2.matchLayersWithDamage = br.ReadBoolean(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.countGlueAchievement = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_SlowModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SlowModifierForTagModel val = (SlowModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.slowId = (br.ReadBoolean() ? null : br.ReadString()); val.slowMultiplier = br.ReadSingle(); val.resetToUnmodified = br.ReadBoolean(); val.preventMutation = br.ReadBoolean(); val.lifespanOverride = br.ReadSingle(); val.makeNotTag = br.ReadBoolean(); } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmmisionTowardsTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmmisionTowardsTargetModel val = (SingleEmmisionTowardsTargetModel)((ModByteLoader)this).m[i + start]; val.offset = br.ReadSingle(); } } private void Set_v_ScaleProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ScaleProjectileModel val = (ScaleProjectileModel)((ModByteLoader)this).m[i + start]; val.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_Curve_Fields(int start, int count) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("samples", (BindingFlags)60); for (int i = 0; i < count; i++) { Curve val2 = (Curve)((ModByteLoader)this).m[i + start]; val2.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ArriveAtTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ArriveAtTargetModel val = (ArriveAtTargetModel)((ModByteLoader)this).m[i + start]; val.timeToTake = br.ReadSingle(); val.curveSamples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.filterCollisionWhileMoving = br.ReadBoolean(); val.expireOnArrival = br.ReadBoolean(); val.altSpeed = br.ReadSingle(); val.stopOnTargetReached = br.ReadBoolean(); val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; val.keepUpdatingTargetPos = br.ReadBoolean(); val.rotateToTarget = br.ReadBoolean(); val.maxTurnAngle = br.ReadSingle(); val.positionAboveMoabTypes = br.ReadBoolean(); } } private void Set_v_CreateProjectileOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustFractionModel val = (CreateProjectileOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.fraction = br.ReadSingle(); val.durationfraction = br.ReadSingle(); val.canCreateInBetweenRounds = br.ReadBoolean(); val.collideOnSubProjectile = br.ReadBoolean(); val.passOnCollidedWith = br.ReadBoolean(); } } private void Set_v_CreateEffectOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustFractionModel val = (CreateEffectOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.fraction = br.ReadSingle(); val.durationFraction = br.ReadSingle(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_KnockbackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { KnockbackModel val2 = (KnockbackModel)((ModByteLoader)this).m[i + start]; val2.moabMultiplier = br.ReadSingle(); val2.heavyMultiplier = br.ReadSingle(); val2.lightMultiplier = br.ReadSingle(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_GreatWhiteDisplayStepModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { GreatWhiteDisplayStepModel val = (GreatWhiteDisplayStepModel)((ModByteLoader)this).m[i + start]; val.portalEffectDisplay = ModContent.CreatePrefabReference(br.ReadString()); val.noGrabEffectDisplay = ModContent.CreatePrefabReference(br.ReadString()); val.percent = br.ReadSingle(); } } private void Set_v_CreateGreatWhiteEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0081: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Expected O, but got Unknown //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_01a5: Unknown result type (might be due to invalid IL or missing references) //IL_01af: Expected O, but got Unknown //IL_01c3: Unknown result type (might be due to invalid IL or missing references) //IL_01cd: Expected O, but got Unknown //IL_01f3: Unknown result type (might be due to invalid IL or missing references) //IL_01fd: Expected O, but got Unknown //IL_0223: Unknown result type (might be due to invalid IL or missing references) //IL_022d: Expected O, but got Unknown //IL_0241: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateGreatWhiteEffectModel val = (CreateGreatWhiteEffectModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.bloonDestroyedDisplay = ModContent.CreatePrefabReference(br.ReadString()); val.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonDestroyedDisplayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val.retreatEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonPopTimeScale = br.ReadSingle(); val.postDragTime = br.ReadSingle(); val.maxGrabBloonName = (br.ReadBoolean() ? null : br.ReadString()); val.bitingAnimationState = br.ReadInt32(); val.exitAnimationTime = br.ReadSingle(); val.exitAnimationState = br.ReadInt32(); val.maxMoabGrabTime = br.ReadSingle(); val.maxMoabGrabTimeMegalodon = br.ReadSingle(); val.moabDamagePerSecond = br.ReadInt32(); val.maxMoabDamagePercentPerSecond = br.ReadSingle(); val.playRetreatAnimationAt = br.ReadSingle(); val.readyAnimationState = br.ReadInt32(); val.thrashingProjectileModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonFollowProjectileModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.thrashingProjectileRate = br.ReadSingle(); val.thrashingEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.noGrabAnimationState = br.ReadInt32(); val.emissionModel = (SingleEmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.noGrabEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.maxPullRbe = br.ReadInt32(); } } private void Set_v_FilterAllModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllModel val = (FilterAllModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateProjectileOnIntervalModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_010b: Unknown result type (might be due to invalid IL or missing references) //IL_0115: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnIntervalModel val = (CreateProjectileOnIntervalModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.intervalFrames = br.ReadInt32(); val.onlyIfHasTarget = br.ReadBoolean(); val.range = br.ReadSingle(); val.targetType.id = br.ReadString(); val.targetType.actionOnCreate = br.ReadBoolean(); val.isBuffedByRate = br.ReadBoolean(); val.useRawWeaponRate = br.ReadBoolean(); val.onlyEmitOnce = br.ReadBoolean(); val.effect = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectProjectileAfterTimeModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("time", (BindingFlags)60); for (int i = 0; i < count; i++) { CreateEffectProjectileAfterTimeModel val2 = (CreateEffectProjectileAfterTimeModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.repeat = br.ReadBoolean(); val2.isBuffedByRate = br.ReadBoolean(); val2.useTargetPosition = br.ReadBoolean(); } } private void Set_v_LatchToBloonModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LatchToBloonModel val = (LatchToBloonModel)((ModByteLoader)this).m[i + start]; val.rotateWithBloon = br.ReadBoolean(); val.animationStateOnSetTarget = br.ReadInt32(); val.animationStateOnTowerOnDestroy = br.ReadInt32(); val.postBloonDestroyTime = br.ReadSingle(); val.postBloonDestroyTimeFrames = br.ReadInt32(); val.bloonSpeedMultiplier = br.ReadSingle(); } } private void Set_v_CreateEffectOnExhaustedModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustedModel val = (CreateEffectOnExhaustedModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.randomRotation = br.ReadBoolean(); } } private void Set_v_GreatWhiteLimitProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { GreatWhiteLimitProjectileModel val = (GreatWhiteLimitProjectileModel)((ModByteLoader)this).m[i + start]; } } protected override TowerModel Load(byte[] bytes) { //IL_0bbd: Unknown result type (might be due to invalid IL or missing references) //IL_0bc4: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); Read_a_Single_Array(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SyncTargetPriorityWithSubTowersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BeastHandlerLeashModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PlayAnimationIndexModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SavedSubTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreditPopsToParentTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TowerExpireOnParentDestroyedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BeastHandlerPetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BeastHandlerPetDisplayStepModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_InstantDamageEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllExceptTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForBloonStateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CycleAnimationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AnimateOnBeastHandlerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomPositionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAirUnitDestroyModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_GyrfalconPatternModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterBloonIfDamageTypeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PathMovementModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BeastHandlerUpgradeLockModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmmisionTowardsTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ScaleProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Curve_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArriveAtTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_KnockbackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_GreatWhiteDisplayStepModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateGreatWhiteEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnIntervalModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectProjectileAfterTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LatchToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_GreatWhiteLimitProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class BombShooterLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "BombShooters.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_FilterAllModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllModel val = (FilterAllModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateProjectileOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustFractionModel val = (CreateProjectileOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.fraction = br.ReadSingle(); val.durationfraction = br.ReadSingle(); val.canCreateInBetweenRounds = br.ReadBoolean(); val.collideOnSubProjectile = br.ReadBoolean(); val.passOnCollidedWith = br.ReadBoolean(); } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_CreateEffectOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustFractionModel val = (CreateEffectOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.fraction = br.ReadSingle(); val.durationFraction = br.ReadSingle(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RandomRangeTravelStraitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomRangeTravelStraitModel val = (RandomRangeTravelStraitModel)((ModByteLoader)this).m[i + start]; val.minRange = br.ReadSingle(); val.maxRange = br.ReadSingle(); val.speed = br.ReadSingle(); } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } private void Set_v_CreateEffectOnContactModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnContactModel val = (CreateEffectOnContactModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnProjectileCollisionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCollisionModel val = (CreateSoundOnProjectileCollisionModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_AlternateProjectileModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AlternateProjectileModel val = (AlternateProjectileModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emissionModel = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.interval = br.ReadInt32(); val.alternateAnimation = br.ReadInt32(); val.priority = br.ReadInt32(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AbilityDamageAllModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityDamageAllModel val = (AbilityDamageAllModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadInt32(); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.inclusive = br.ReadBoolean(); } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_CreateRandomSoundOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateRandomSoundOnAbilityModel val = (CreateRandomSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_FilterAllExceptTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllExceptTargetModel val = (FilterAllExceptTargetModel)((ModByteLoader)this).m[i + start]; val.cantbePaused = br.ReadBoolean(); } } private void Set_v_FilterWithTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagModel val = (FilterWithTagModel)((ModByteLoader)this).m[i + start]; val.moabTag = br.ReadBoolean(); val.camoTag = br.ReadBoolean(); val.growTag = br.ReadBoolean(); val.fortifiedTag = br.ReadBoolean(); val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.inclusive = br.ReadBoolean(); val.hasMoabTag = br.ReadBoolean(); } } private void Set_v_TrackTargetModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("turnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { TrackTargetModel val2 = (TrackTargetModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.trackNewTargets = br.ReadBoolean(); val2.constantlyAquireNewTarget = br.ReadBoolean(); val2.maxSeekAngle = br.ReadSingle(); val2.ignoreSeekAngle = br.ReadBoolean(); val2.overrideRotation = br.ReadBoolean(); val2.useLifetimeAsDistance = br.ReadBoolean(); val2.expireOnContactTarget = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_FilterBloonIfDamageTypeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterBloonIfDamageTypeModel val = (FilterBloonIfDamageTypeModel)((ModByteLoader)this).m[i + start]; val.ifCantHitBloonProperties = (BloonProperties)br.ReadInt32(); val.damageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetMoabModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetMoabModel val = (TargetMoabModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.findStrongest = br.ReadBoolean(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PushBackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PushBackModel val = (PushBackModel)((ModByteLoader)this).m[i + start]; val.pushAmount = br.ReadSingle(); val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.multiplierMOAB = br.ReadSingle(); val.multiplierBFB = br.ReadSingle(); val.multiplierDDT = br.ReadSingle(); val.multiplierZOMG = br.ReadSingle(); val.onlyIfDamaged = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_SlowModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("multiplier", (BindingFlags)60); for (int i = 0; i < count; i++) { SlowModel val2 = (SlowModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.layers = br.ReadInt32(); val2.overlayLayer = br.ReadInt32(); val2.glueLevel = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.dontRefreshDuration = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.removeMutatorIfNotMatching = br.ReadBoolean(); val2.matchLayersWithDamage = br.ReadBoolean(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.countGlueAchievement = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_SlowModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SlowModifierForTagModel val = (SlowModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.slowId = (br.ReadBoolean() ? null : br.ReadString()); val.slowMultiplier = br.ReadSingle(); val.resetToUnmodified = br.ReadBoolean(); val.preventMutation = br.ReadBoolean(); val.lifespanOverride = br.ReadSingle(); val.makeNotTag = br.ReadBoolean(); } } protected override TowerModel Load(byte[] bytes) { //IL_0882: Unknown result type (might be due to invalid IL or missing references) //IL_0889: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomRangeTravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCollisionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AlternateProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityDamageAllModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateRandomSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllExceptTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TrackTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterBloonIfDamageTypeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetMoabModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PushBackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class BoomerangMonkeyLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "BoomerangMonkeys.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Single_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadSingle(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Vector3_Array() { //IL_0057: Unknown result type (might be due to invalid IL or missing references) int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_FollowPathModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); for (int i = 0; i < count; i++) { FollowPathModel val2 = (FollowPathModel)((ModByteLoader)this).m[i + start]; val2.path = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.easePath = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.destroyAtEndOfPath = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RotateModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("angle", (BindingFlags)60); for (int i = 0; i < count; i++) { RotateModel val2 = (RotateModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_ClearHitBloonsModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); for (int i = 0; i < count; i++) { ClearHitBloonsModel val2 = (ClearHitBloonsModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FlipFollowPathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FlipFollowPathModel val = (FlipFollowPathModel)((ModByteLoader)this).m[i + start]; val.flipTowerDisplayX = br.ReadBoolean(); val.flipTowerDisplayY = br.ReadBoolean(); val.effectOnFlip = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_FilterOutBloonModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutBloonModel val = (FilterOutBloonModel)((ModByteLoader)this).m[i + start]; val.bloonId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_PushBackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PushBackModel val = (PushBackModel)((ModByteLoader)this).m[i + start]; val.pushAmount = br.ReadSingle(); val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.multiplierMOAB = br.ReadSingle(); val.multiplierBFB = br.ReadSingle(); val.multiplierDDT = br.ReadSingle(); val.multiplierZOMG = br.ReadSingle(); val.onlyIfDamaged = br.ReadBoolean(); } } private void Set_v_ArriveAtTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ArriveAtTargetModel val = (ArriveAtTargetModel)((ModByteLoader)this).m[i + start]; val.timeToTake = br.ReadSingle(); val.curveSamples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.filterCollisionWhileMoving = br.ReadBoolean(); val.expireOnArrival = br.ReadBoolean(); val.altSpeed = br.ReadSingle(); val.stopOnTargetReached = br.ReadBoolean(); val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; val.keepUpdatingTargetPos = br.ReadBoolean(); val.rotateToTarget = br.ReadBoolean(); val.maxTurnAngle = br.ReadSingle(); val.positionAboveMoabTypes = br.ReadBoolean(); } } private void Set_v_Curve_Fields(int start, int count) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("samples", (BindingFlags)60); for (int i = 0; i < count; i++) { Curve val2 = (Curve)((ModByteLoader)this).m[i + start]; val2.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterWithTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagModel val = (FilterWithTagModel)((ModByteLoader)this).m[i + start]; val.moabTag = br.ReadBoolean(); val.camoTag = br.ReadBoolean(); val.growTag = br.ReadBoolean(); val.fortifiedTag = br.ReadBoolean(); val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.inclusive = br.ReadBoolean(); val.hasMoabTag = br.ReadBoolean(); } } private void Set_v_FilterOutTagModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutTagModel val = (FilterOutTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.disableWhenSupportMutatorIDs = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SlowModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("multiplier", (BindingFlags)60); for (int i = 0; i < count; i++) { SlowModel val2 = (SlowModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.layers = br.ReadInt32(); val2.overlayLayer = br.ReadInt32(); val2.glueLevel = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.dontRefreshDuration = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.removeMutatorIfNotMatching = br.ReadBoolean(); val2.matchLayersWithDamage = br.ReadBoolean(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.countGlueAchievement = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_SlowForBloonModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown Set_v_SlowModel_Fields(start, count); for (int i = 0; i < count; i++) { SlowForBloonModel val = (SlowForBloonModel)((ModByteLoader)this).m[i + start]; val.bloonId = (br.ReadBoolean() ? null : br.ReadString()); val.bloonIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonTag = (br.ReadBoolean() ? null : br.ReadString()); val.bloonTags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.excluding = br.ReadBoolean(); } } private void Set_v_CreateProjectileOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustFractionModel val = (CreateProjectileOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.fraction = br.ReadSingle(); val.durationfraction = br.ReadSingle(); val.canCreateInBetweenRounds = br.ReadBoolean(); val.collideOnSubProjectile = br.ReadBoolean(); val.passOnCollidedWith = br.ReadBoolean(); } } private void Set_v_AddBehaviorToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBehaviorToBloonModel val2 = (AddBehaviorToBloonModel)((ModByteLoader)this).m[i + start]; val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.layers = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isUnique = br.ReadBoolean(); val2.lastAppliesFirst = br.ReadBoolean(); val2.collideThisFrame = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.glueLevel = br.ReadInt32(); val2.applyOnlyIfDamaged = br.ReadBoolean(); val2.stackCount = br.ReadInt32(); val2.dontCopy = br.ReadBoolean(); val2.parentDamageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_BloonBehaviorModelWithTowerTracking_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModelWithTowerTracking val = (BloonBehaviorModelWithTowerTracking)((ModByteLoader)this).m[i + start]; } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageOverTimeModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); FieldInfo field2 = val.GetField("initialDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { DamageOverTimeModel val2 = (DamageOverTimeModel)((ModByteLoader)this).m[i + start]; val2.damage = br.ReadSingle(); val2.payloadCount = br.ReadInt32(); val2.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val2.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val2.displayLifetime = br.ReadSingle(); val2.triggerImmediate = br.ReadBoolean(); val2.rotateEffectWithBloon = br.ReadBoolean(); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.damageOnDestroy = br.ReadBoolean(); val2.overrideDistributionBlocker = br.ReadBoolean(); val2.distributeToChildren = br.ReadBoolean(); val2.damageModifierModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isFireBased = br.ReadBoolean(); } } private void Set_v_CreateSoundOnProjectileExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileExpireModel val = (CreateSoundOnProjectileExpireModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.limiter = br.ReadInt32(); } } private void Set_v_CreateEffectOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustFractionModel val = (CreateEffectOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.fraction = br.ReadSingle(); val.durationFraction = br.ReadSingle(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TurboModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TurboModel val2 = (TurboModel)((ModByteLoader)this).m[i + start]; val2.multiplier = br.ReadSingle(); val2.projectileDisplay = (AssetPathModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.dontBlockActivation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.extraDamage = br.ReadInt32(); val2.projectileRadiusScaleBonus = br.ReadSingle(); val2.dontRemoveMutatorOnDestroy = br.ReadBoolean(); } } private void Set_v_AssetPathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { AssetPathModel val = (AssetPathModel)((ModByteLoader)this).m[i + start]; val.assetPath = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_RemoveMutatorOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveMutatorOnUpgradeModel val = (RemoveMutatorOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.firstPath = br.ReadInt32(); val.secondPath = br.ReadInt32(); val.thirdPath = br.ReadInt32(); val.paths = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DamageUpModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageUpModel val = (DamageUpModel)((ModByteLoader)this).m[i + start]; val.lifespanFrames = br.ReadInt32(); val.additionalDamage = br.ReadInt32(); val.projectileDisplay = (AssetPathModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RetargetOnContactModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("delay", (BindingFlags)60); for (int i = 0; i < count; i++) { RetargetOnContactModel val2 = (RetargetOnContactModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.minDistance = br.ReadSingle(); val2.maxBounces = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.targetType.id = br.ReadString(); val2.targetType.actionOnCreate = br.ReadBoolean(); val2.expireIfNoTargetFound = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_OrbitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { OrbitModel val = (OrbitModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.count = br.ReadInt32(); val.range = br.ReadSingle(); } } private void Set_v_FilterAllModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllModel val = (FilterAllModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DontDestroyOnContinueModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DontDestroyOnContinueModel val = (DontDestroyOnContinueModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CantBeReflectedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CantBeReflectedModel val = (CantBeReflectedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterMoabModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterMoabModel val = (FilterMoabModel)((ModByteLoader)this).m[i + start]; val.flip = br.ReadBoolean(); } } private void Set_v_CollideOnlyWithTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CollideOnlyWithTargetModel val = (CollideOnlyWithTargetModel)((ModByteLoader)this).m[i + start]; val.collideWithFirstIfInvalidTarget = br.ReadBoolean(); } } private void Set_v_IgnoreThrowMarkerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { IgnoreThrowMarkerModel val = (IgnoreThrowMarkerModel)((ModByteLoader)this).m[i + start]; } } protected override TowerModel Load(byte[] bytes) { //IL_0968: Unknown result type (might be due to invalid IL or missing references) //IL_096f: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); Read_a_Vector3_Array(); Read_a_Single_Array(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FollowPathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ClearHitBloonsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FlipFollowPathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PushBackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArriveAtTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Curve_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowForBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageOverTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TurboModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AssetPathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveMutatorOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageUpModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RetargetOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_OrbitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DontDestroyOnContinueModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CantBeReflectedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterMoabModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CollideOnlyWithTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_IgnoreThrowMarkerModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class DartlingGunnerLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "DartlingGunners.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DartlingMaintainLastPosModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DartlingMaintainLastPosModel val = (DartlingMaintainLastPosModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RandomEmissionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomEmissionModel val = (RandomEmissionModel)((ModByteLoader)this).m[i + start]; val.angle = br.ReadSingle(); val.count = br.ReadInt32(); val.startOffset = br.ReadSingle(); val.useSpeedMultiplier = br.ReadBoolean(); val.speedMultiplierMin = br.ReadSingle(); val.speedMultiplierMax = br.ReadSingle(); val.ejectPointRandomness = br.ReadSingle(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TravelStraitSlowdownModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Set_v_TravelStraitModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("slowdownSpeed", (BindingFlags)60); FieldInfo field2 = val.GetField("minSpeed", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitSlowdownModel val2 = (TravelStraitSlowdownModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.maxDistance = br.ReadSingle(); val2.canReducePierce = br.ReadBoolean(); val2.startingPierce = br.ReadInt32(); val2.endPierce = br.ReadInt32(); } } private void Set_v_KnockbackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { KnockbackModel val2 = (KnockbackModel)((ModByteLoader)this).m[i + start]; val2.moabMultiplier = br.ReadSingle(); val2.heavyMultiplier = br.ReadSingle(); val2.lightMultiplier = br.ReadSingle(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetPointerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetPointerModel val = (TargetPointerModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.customName = (br.ReadBoolean() ? null : br.ReadString()); val.setOnAttached = br.ReadBoolean(); } } private void Set_v_TargetSelectedPointModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSelectedPointModel val = (TargetSelectedPointModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.customName = (br.ReadBoolean() ? null : br.ReadString()); val.lockToInsideTowerRange = br.ReadBoolean(); val.startWithClosestTrackPoint = br.ReadBoolean(); val.displayInvalid = ModContent.CreatePrefabReference(br.ReadString()); val.alwaysShowTarget = br.ReadBoolean(); val.projectileToExpireOnTargetChangeModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTerrainHeight = br.ReadBoolean(); } } private void Set_v_RotateToPointerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToPointerModel val = (RotateToPointerModel)((ModByteLoader)this).m[i + start]; val.rate = br.ReadSingle(); val.rotateTower = br.ReadBoolean(); val.rotateOnlyOnEmit = br.ReadBoolean(); val.weaponEjectZ = br.ReadSingle(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EmissionWithOffsetsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionWithOffsetsModel val = (EmissionWithOffsetsModel)((ModByteLoader)this).m[i + start]; val.throwMarkerOffsetModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.projectileCount = br.ReadInt32(); val.rotateProjectileWithTower = br.ReadBoolean(); val.randomRotationCone = br.ReadSingle(); val.spreadProjectilesAcrossMarkers = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CollideExtraPierceReductionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CollideExtraPierceReductionModel val = (CollideExtraPierceReductionModel)((ModByteLoader)this).m[i + start]; val.bloonTag = (br.ReadBoolean() ? null : br.ReadString()); val.extraAmount = br.ReadInt32(); val.destroyProjectileIfPierceNotEnough = br.ReadBoolean(); } } private void Set_v_CreateProjectileOnExhaustPierceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustPierceModel val = (CreateProjectileOnExhaustPierceModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.pierceInterval = br.ReadSingle(); val.count = br.ReadInt32(); val.minimumTimeDifferenceInFrames = br.ReadInt32(); val.destroyProjectile = br.ReadBoolean(); val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.displayLifetime = br.ReadSingle(); val.displayFullscreen = br.ReadBoolean(); val.useBloonPosition = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateProjectileOnBlockerCollideModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnBlockerCollideModel val = (CreateProjectileOnBlockerCollideModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.displayLifetime = br.ReadSingle(); } } private void Set_v_CreateSoundOnProjectileCollisionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCollisionModel val = (CreateSoundOnProjectileCollisionModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AlternateAnimationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AlternateAnimationModel val = (AlternateAnimationModel)((ModByteLoader)this).m[i + start]; val.states = br.ReadInt32(); val.originState = br.ReadInt32(); } } private void Set_v_EjectAnimationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectAnimationModel val = (EjectAnimationModel)((ModByteLoader)this).m[i + start]; val.animationState = br.ReadInt32(); } } private void Set_v_TargetIndependantModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetIndependantModel val = (TargetIndependantModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_RateBasedAnimationOffsetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RateBasedAnimationOffsetModel val = (RateBasedAnimationOffsetModel)((ModByteLoader)this).m[i + start]; val.baseRate = br.ReadSingle(); val.offset = br.ReadSingle(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_TravelCurvyModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TravelStraitModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("turnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelCurvyModel val2 = (TravelCurvyModel)((ModByteLoader)this).m[i + start]; val2.maxTurnAngle = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_CreateEffectOnContactModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnContactModel val = (CreateEffectOnContactModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ThrowMarkerOffsetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ThrowMarkerOffsetModel val = (ThrowMarkerOffsetModel)((ModByteLoader)this).m[i + start]; val.ejectX = br.ReadSingle(); val.ejectY = br.ReadSingle(); val.ejectZ = br.ReadSingle(); val.rotation = br.ReadSingle(); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AddBehaviorToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBehaviorToBloonModel val2 = (AddBehaviorToBloonModel)((ModByteLoader)this).m[i + start]; val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.layers = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isUnique = br.ReadBoolean(); val2.lastAppliesFirst = br.ReadBoolean(); val2.collideThisFrame = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.glueLevel = br.ReadInt32(); val2.applyOnlyIfDamaged = br.ReadBoolean(); val2.stackCount = br.ReadInt32(); val2.dontCopy = br.ReadBoolean(); val2.parentDamageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_BloonBehaviorModelWithTowerTracking_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModelWithTowerTracking val = (BloonBehaviorModelWithTowerTracking)((ModByteLoader)this).m[i + start]; } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageOverTimeModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); FieldInfo field2 = val.GetField("initialDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { DamageOverTimeModel val2 = (DamageOverTimeModel)((ModByteLoader)this).m[i + start]; val2.damage = br.ReadSingle(); val2.payloadCount = br.ReadInt32(); val2.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val2.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val2.displayLifetime = br.ReadSingle(); val2.triggerImmediate = br.ReadBoolean(); val2.rotateEffectWithBloon = br.ReadBoolean(); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.damageOnDestroy = br.ReadBoolean(); val2.overrideDistributionBlocker = br.ReadBoolean(); val2.distributeToChildren = br.ReadBoolean(); val2.damageModifierModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isFireBased = br.ReadBoolean(); } } private void Set_v_DamageModifierForBloonStateModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForBloonStateModel val = (DamageModifierForBloonStateModel)((ModByteLoader)this).m[i + start]; val.bloonState = (br.ReadBoolean() ? null : br.ReadString()); val.bloonStates = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAdditive = br.ReadSingle(); val.mustIncludeAllStates = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.mustBeModified = br.ReadBoolean(); } } private void Set_v_LineProjectileEmissionModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: Expected O, but got Unknown //IL_00cd: Unknown result type (might be due to invalid IL or missing references) //IL_00d7: Expected O, but got Unknown //IL_015d: Unknown result type (might be due to invalid IL or missing references) //IL_0167: Expected O, but got Unknown //IL_017b: Unknown result type (might be due to invalid IL or missing references) //IL_0185: Expected O, but got Unknown //IL_0199: Unknown result type (might be due to invalid IL or missing references) //IL_01a3: Expected O, but got Unknown //IL_01c9: Unknown result type (might be due to invalid IL or missing references) //IL_01d3: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("effectAtEndRate", (BindingFlags)60); for (int i = 0; i < count; i++) { LineProjectileEmissionModel val2 = (LineProjectileEmissionModel)((ModByteLoader)this).m[i + start]; val2.useTargetAsEndPoint = br.ReadBoolean(); val2.displayPath = (AssetPathModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.displayLength = br.ReadSingle(); val2.displayLifetime = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.effectAtEndModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.effectAtStartModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.dontUseTowerPosition = br.ReadBoolean(); val2.useTowerRotation = br.ReadBoolean(); val2.useLengthSpeed = br.ReadBoolean(); val2.lengthSpeed = br.ReadSingle(); val2.lengthPerFrame = br.ReadSingle(); val2.projectileInitialHitModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.projectileAtEndModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.emissionAtEndModel = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.endProjectileSharesPierce = br.ReadBoolean(); val2.effectAtCollision = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.maxCollisionEffects = br.ReadInt32(); val2.emitFromTarget = br.ReadBoolean(); val2.emitFromTargetLength = br.ReadSingle(); } } private void Set_v_LineEffectModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Expected O, but got Unknown //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Expected O, but got Unknown //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("displayLengthSpeed", (BindingFlags)60); for (int i = 0; i < count; i++) { LineEffectModel val2 = (LineEffectModel)((ModByteLoader)this).m[i + start]; val2.lineDisplayPath = (AssetPathModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.lineDisplayLength = br.ReadSingle(); val2.effectAtEnd = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.effectAtStart = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.isLineDisplayEndless = br.ReadBoolean(); val2.useDisplayLengthSpeed = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useWeaponEjectForDisplay = br.ReadBoolean(); val2.useRotateToPointer = br.ReadBoolean(); val2.ignoreBlockers = br.ReadBoolean(); val2.useLineProjectileEmissionShowEffect = br.ReadBoolean(); val2.effectDuration = br.ReadSingle(); } } private void Set_v_AssetPathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { AssetPathModel val = (AssetPathModel)((ModByteLoader)this).m[i + start]; val.assetPath = ModContent.CreatePrefabReference(br.ReadString()); } } protected override TowerModel Load(byte[] bytes) { //IL_092e: Unknown result type (might be due to invalid IL or missing references) //IL_0935: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DartlingMaintainLastPosModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitSlowdownModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_KnockbackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetPointerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetSelectedPointModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToPointerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionWithOffsetsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CollideExtraPierceReductionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustPierceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnBlockerCollideModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCollisionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AlternateAnimationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectAnimationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetIndependantModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RateBasedAnimationOffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelCurvyModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ThrowMarkerOffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageOverTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForBloonStateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LineProjectileEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LineEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AssetPathModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class DartMonkeyLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "DartMonkeys.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCamoModel val = (TargetCamoModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstPrioCamoModel val = (TargetFirstPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastPrioCamoModel val = (TargetLastPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetClosePrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetClosePrioCamoModel val = (TargetClosePrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongPrioCamoModel val = (TargetStrongPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_ShowTextOnHitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ShowTextOnHitModel val = (ShowTextOnHitModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.useTowerPosition = br.ReadBoolean(); val.text = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CritMultiplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CritMultiplierModel val = (CritMultiplierModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.lower = br.ReadInt32(); val.upper = br.ReadInt32(); val.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val.distributeToChildren = br.ReadBoolean(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_MonkeyFanClubModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0192: Unknown result type (might be due to invalid IL or missing references) //IL_019c: Expected O, but got Unknown //IL_01b0: Unknown result type (might be due to invalid IL or missing references) //IL_01ba: Expected O, but got Unknown //IL_0204: Unknown result type (might be due to invalid IL or missing references) //IL_020e: Expected O, but got Unknown //IL_0222: Unknown result type (might be due to invalid IL or missing references) //IL_022c: Expected O, but got Unknown //IL_0240: Unknown result type (might be due to invalid IL or missing references) //IL_024a: Expected O, but got Unknown //IL_025e: Unknown result type (might be due to invalid IL or missing references) //IL_0268: Expected O, but got Unknown //IL_029e: Unknown result type (might be due to invalid IL or missing references) //IL_02a8: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { MonkeyFanClubModel val2 = (MonkeyFanClubModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.maxTier = br.ReadInt32(); val2.towerCount = br.ReadInt32(); val2.range = br.ReadSingle(); val2.reloadModifier = br.ReadSingle(); val2.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.towerDisplay = ModContent.CreatePrefabReference(br.ReadString()); val2.originDisplay = ModContent.CreatePrefabReference(br.ReadString()); val2.towerOriginDisplay = ModContent.CreatePrefabReference(br.ReadString()); val2.effectId = ModContent.CreatePrefabReference(br.ReadString()); val2.effectLeaderId = ModContent.CreatePrefabReference(br.ReadString()); val2.effectOnOtherId = ModContent.CreatePrefabReference(br.ReadString()); val2.bonusPierce = br.ReadSingle(); val2.projectileRadius = br.ReadSingle(); val2.bonusDamage = br.ReadInt32(); val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.handBlurEjectEffectModel = (EjectEffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.otherDisplayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.leaderDisplayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.endDisplayModel = (CreateEffectAfterTimeModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ignoreWithMutators = (br.ReadBoolean() ? null : br.ReadString()); val2.ignoreWithMutatorsList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_CreateEffectAfterTimeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { CreateEffectAfterTimeModel val2 = (CreateEffectAfterTimeModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileBlockerCollisionReboundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBlockerCollisionReboundModel val = (ProjectileBlockerCollisionReboundModel)((ModByteLoader)this).m[i + start]; val.clearCollidedWith = br.ReadBoolean(); val.changeRotation = br.ReadBoolean(); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_KnockbackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { KnockbackModel val2 = (KnockbackModel)((ModByteLoader)this).m[i + start]; val2.moabMultiplier = br.ReadSingle(); val2.heavyMultiplier = br.ReadSingle(); val2.lightMultiplier = br.ReadSingle(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CreateProjectileOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustFractionModel val = (CreateProjectileOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.fraction = br.ReadSingle(); val.durationfraction = br.ReadSingle(); val.canCreateInBetweenRounds = br.ReadBoolean(); val.collideOnSubProjectile = br.ReadBoolean(); val.passOnCollidedWith = br.ReadBoolean(); } } private void Set_v_MapBorderReboundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { MapBorderReboundModel val = (MapBorderReboundModel)((ModByteLoader)this).m[i + start]; val.changeRotation = br.ReadBoolean(); val.clearCollidedWith = br.ReadBoolean(); } } private void Set_v_CreateEffectOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustFractionModel val = (CreateEffectOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.fraction = br.ReadSingle(); val.durationFraction = br.ReadSingle(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ExpireProjectileAtScreenEdgeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ExpireProjectileAtScreenEdgeModel val = (ExpireProjectileAtScreenEdgeModel)((ModByteLoader)this).m[i + start]; } } protected override TowerModel Load(byte[] bytes) { //IL_06e8: Unknown result type (might be due to invalid IL or missing references) //IL_06ef: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetClosePrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ShowTextOnHitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CritMultiplierModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MonkeyFanClubModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectAfterTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileBlockerCollisionReboundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_KnockbackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MapBorderReboundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ExpireProjectileAtScreenEdgeModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class DesperadoLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "Desperados.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_TowerBehaviorWithAbilityCooldownScaleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorWithAbilityCooldownScaleModel val = (TowerBehaviorWithAbilityCooldownScaleModel)((ModByteLoader)this).m[i + start]; val.abilityCooldownScale = br.ReadSingle(); } } private void Set_v_VigilanteTowerBehaviorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorWithAbilityCooldownScaleModel_Fields(start, count); for (int i = 0; i < count; i++) { VigilanteTowerBehaviorModel val = (VigilanteTowerBehaviorModel)((ModByteLoader)this).m[i + start]; val.loseLifeAttackSpeedBuff = br.ReadSingle(); val.loseLifeRangeBuff = br.ReadSingle(); val.loseLifeBuffDurationFrames = br.ReadInt32(); val.loseLifeBuffCooldownFrames = br.ReadInt32(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffDisplay = ModContent.CreatePrefabReference(br.ReadString()); val.oneHealthHighestBloon = (br.ReadBoolean() ? null : br.ReadString()); val.bloonLeakValueModifier = br.ReadSingle(); } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_InstantDamageEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { InstantDamageEmissionModel val = (InstantDamageEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterAllExceptTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllExceptTargetModel val = (FilterAllExceptTargetModel)((ModByteLoader)this).m[i + start]; val.cantbePaused = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_InstantModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { InstantModel val = (InstantModel)((ModByteLoader)this).m[i + start]; val.destroyIfInvalid = br.ReadBoolean(); val.ignoreTargetZ = br.ReadBoolean(); val.dontFollowTarget = br.ReadBoolean(); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_BurstWeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BurstWeaponBehaviorModel val = (BurstWeaponBehaviorModel)((ModByteLoader)this).m[i + start]; val.interval = br.ReadSingle(); val.intervalFrames = br.ReadInt32(); val.count = br.ReadInt32(); val.alwaysEmptyClip = br.ReadBoolean(); } } private void Set_v_CritRollModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CritRollModel val = (CritRollModel)((ModByteLoader)this).m[i + start]; val.damageAdditive = br.ReadSingle(); val.damageMultiplier = br.ReadSingle(); val.chance = br.ReadSingle(); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.critSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CritRollWithDistanceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_CritRollModel_Fields(start, count); for (int i = 0; i < count; i++) { CritRollWithDistanceModel val = (CritRollWithDistanceModel)((ModByteLoader)this).m[i + start]; val.bonusPerDistance = br.ReadSingle(); } } private void Set_v_VagrantWeaponBehaviorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { VagrantWeaponBehaviorModel val = (VagrantWeaponBehaviorModel)((ModByteLoader)this).m[i + start]; val.noTowersRateBonus = br.ReadSingle(); val.towerRangeBonusReduction = br.ReadSingle(); val.bloonInRangeAttackSpeedBuff = br.ReadSingle(); val.maxBloonAttackSpeedBuff = br.ReadSingle(); val.buffDisplay = ModContent.CreatePrefabReference(br.ReadString()); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffLocsFullName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_FilterIfAttackHasTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterIfAttackHasTargetModel val = (FilterIfAttackHasTargetModel)((ModByteLoader)this).m[i + start]; val.attackName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_TargetDesperadoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetDesperadoModel val = (TargetDesperadoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.canTargetMarked = br.ReadBoolean(); val.canPrioritiseCamo = br.ReadBoolean(); } } private void Set_v_TargetCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCamoModel val = (TargetCamoModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetDesperadoFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetDesperadoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetDesperadoFirstModel val = (TargetDesperadoFirstModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetDesperadoLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetDesperadoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetDesperadoLastModel val = (TargetDesperadoLastModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetDesperadoCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetDesperadoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetDesperadoCloseModel val = (TargetDesperadoCloseModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetDesperadoStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetDesperadoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetDesperadoStrongModel val = (TargetDesperadoStrongModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RandomEmissionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomEmissionModel val = (RandomEmissionModel)((ModByteLoader)this).m[i + start]; val.angle = br.ReadSingle(); val.count = br.ReadInt32(); val.startOffset = br.ReadSingle(); val.useSpeedMultiplier = br.ReadBoolean(); val.speedMultiplierMin = br.ReadSingle(); val.speedMultiplierMax = br.ReadSingle(); val.ejectPointRandomness = br.ReadSingle(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_KnockbackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { KnockbackModel val2 = (KnockbackModel)((ModByteLoader)this).m[i + start]; val2.moabMultiplier = br.ReadSingle(); val2.heavyMultiplier = br.ReadSingle(); val2.lightMultiplier = br.ReadSingle(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ThrowMarkerOffsetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ThrowMarkerOffsetModel val = (ThrowMarkerOffsetModel)((ModByteLoader)this).m[i + start]; val.ejectX = br.ReadSingle(); val.ejectY = br.ReadSingle(); val.ejectZ = br.ReadSingle(); val.rotation = br.ReadSingle(); } } private void Set_v_LineProjectileEmissionModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: Expected O, but got Unknown //IL_00cd: Unknown result type (might be due to invalid IL or missing references) //IL_00d7: Expected O, but got Unknown //IL_015d: Unknown result type (might be due to invalid IL or missing references) //IL_0167: Expected O, but got Unknown //IL_017b: Unknown result type (might be due to invalid IL or missing references) //IL_0185: Expected O, but got Unknown //IL_0199: Unknown result type (might be due to invalid IL or missing references) //IL_01a3: Expected O, but got Unknown //IL_01c9: Unknown result type (might be due to invalid IL or missing references) //IL_01d3: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("effectAtEndRate", (BindingFlags)60); for (int i = 0; i < count; i++) { LineProjectileEmissionModel val2 = (LineProjectileEmissionModel)((ModByteLoader)this).m[i + start]; val2.useTargetAsEndPoint = br.ReadBoolean(); val2.displayPath = (AssetPathModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.displayLength = br.ReadSingle(); val2.displayLifetime = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.effectAtEndModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.effectAtStartModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.dontUseTowerPosition = br.ReadBoolean(); val2.useTowerRotation = br.ReadBoolean(); val2.useLengthSpeed = br.ReadBoolean(); val2.lengthSpeed = br.ReadSingle(); val2.lengthPerFrame = br.ReadSingle(); val2.projectileInitialHitModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.projectileAtEndModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.emissionAtEndModel = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.endProjectileSharesPierce = br.ReadBoolean(); val2.effectAtCollision = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.maxCollisionEffects = br.ReadInt32(); val2.emitFromTarget = br.ReadBoolean(); val2.emitFromTargetLength = br.ReadSingle(); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AttackMinimumRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackMinimumRangeModel val = (AttackMinimumRangeModel)((ModByteLoader)this).m[i + start]; val.minimumRange = br.ReadSingle(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TakeAimModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TakeAimModel val = (TakeAimModel)((ModByteLoader)this).m[i + start]; val.lifespanFrames = br.ReadInt32(); val.rangeModifier = br.ReadSingle(); val.spreadModifier = br.ReadSingle(); val.selectionObjectPath = ModContent.CreatePrefabReference(br.ReadString()); val.buffDisplayPath = ModContent.CreatePrefabReference(br.ReadString()); val.initialEffect = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.immunitiesGranted = (br.ReadBoolean() ? null : br.ReadString()); val.mutatorPriority = br.ReadInt32(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EmitOnDamageModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmitOnDamageModel val = (EmitOnDamageModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.cooldown = br.ReadSingle(); } } private void Set_v_StandoffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { StandoffModel val = (StandoffModel)((ModByteLoader)this).m[i + start]; val.maxRateIncrease = br.ReadSingle(); val.rateDecreasePerBloon = br.ReadSingle(); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AddBehaviorToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBehaviorToBloonModel val2 = (AddBehaviorToBloonModel)((ModByteLoader)this).m[i + start]; val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.layers = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isUnique = br.ReadBoolean(); val2.lastAppliesFirst = br.ReadBoolean(); val2.collideThisFrame = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.glueLevel = br.ReadInt32(); val2.applyOnlyIfDamaged = br.ReadBoolean(); val2.stackCount = br.ReadInt32(); val2.dontCopy = br.ReadBoolean(); val2.parentDamageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_BloonBehaviorModelWithTowerTracking_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModelWithTowerTracking val = (BloonBehaviorModelWithTowerTracking)((ModByteLoader)this).m[i + start]; } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageOverTimeModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); FieldInfo field2 = val.GetField("initialDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { DamageOverTimeModel val2 = (DamageOverTimeModel)((ModByteLoader)this).m[i + start]; val2.damage = br.ReadSingle(); val2.payloadCount = br.ReadInt32(); val2.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val2.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val2.displayLifetime = br.ReadSingle(); val2.triggerImmediate = br.ReadBoolean(); val2.rotateEffectWithBloon = br.ReadBoolean(); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.damageOnDestroy = br.ReadBoolean(); val2.overrideDistributionBlocker = br.ReadBoolean(); val2.distributeToChildren = br.ReadBoolean(); val2.damageModifierModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isFireBased = br.ReadBoolean(); } } private void Set_v_EmitOnDestroyModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); for (int i = 0; i < count; i++) { EmitOnDestroyModel val = (EmitOnDestroyModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_SupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SupportModel val = (SupportModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.isGlobal = br.ReadBoolean(); val.isCustomRadius = br.ReadBoolean(); val.customRadius = br.ReadSingle(); val.appliesToOwningTower = br.ReadBoolean(); val.showBuffIcon = br.ReadBoolean(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.onlyAffectParagon = br.ReadBoolean(); } } private void Set_v_BountyHunterZoneModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { BountyHunterZoneModel val = (BountyHunterZoneModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DesperadoMarkModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); for (int i = 0; i < count; i++) { DesperadoMarkModel val = (DesperadoMarkModel)((ModByteLoader)this).m[i + start]; val.desperadoDamageMultiplier = br.ReadSingle(); val.popCashMultiplier = br.ReadSingle(); } } private void Set_v_WeaponRateMinModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponRateMinModel val = (WeaponRateMinModel)((ModByteLoader)this).m[i + start]; val.min = br.ReadSingle(); } } private void Set_v_FilterMutatedTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterMutatedTargetModel val = (FilterMutatedTargetModel)((ModByteLoader)this).m[i + start]; val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.mutationIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.inverse = br.ReadBoolean(); } } private void Set_v_MarkedToPopModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { MarkedToPopModel val = (MarkedToPopModel)((ModByteLoader)this).m[i + start]; val.markingAttackModel = (AttackModel)((ModByteLoader)this).m[br.ReadInt32()]; val.executionAttackModel = (AttackModel)((ModByteLoader)this).m[br.ReadInt32()]; val.markingTimeFrames = br.ReadInt32(); val.executionTimeMaxFrames = br.ReadInt32(); } } private void Set_v_MarkedToPopProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { MarkedToPopProjectileBehaviorModel val = (MarkedToPopProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterMarkedToPopModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterMarkedToPopModel val = (FilterMarkedToPopModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateSoundOnProjectileCreatedModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCreatedModel val = (CreateSoundOnProjectileCreatedModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.type = (br.ReadBoolean() ? null : br.ReadString()); val.altType = (br.ReadBoolean() ? null : br.ReadString()); val.projectileId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_ZeroRotationOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ZeroRotationOnAbilityModel val = (ZeroRotationOnAbilityModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_AssetPathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { AssetPathModel val = (AssetPathModel)((ModByteLoader)this).m[i + start]; val.assetPath = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_BloonDistanceRateBonusModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonDistanceRateBonusModel val = (BloonDistanceRateBonusModel)((ModByteLoader)this).m[i + start]; val.rateBonusPerRange = br.ReadSingle(); val.rangeMax = br.ReadInt32(); } } private void Set_v_EmissionWithOffsetsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionWithOffsetsModel val = (EmissionWithOffsetsModel)((ModByteLoader)this).m[i + start]; val.throwMarkerOffsetModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.projectileCount = br.ReadInt32(); val.rotateProjectileWithTower = br.ReadBoolean(); val.randomRotationCone = br.ReadSingle(); val.spreadProjectilesAcrossMarkers = br.ReadBoolean(); } } private void Set_v_AlternateAnimationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AlternateAnimationModel val = (AlternateAnimationModel)((ModByteLoader)this).m[i + start]; val.states = br.ReadInt32(); val.originState = br.ReadInt32(); } } private void Set_v_TheBlazingSunModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Expected O, but got Unknown //IL_00b9: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Expected O, but got Unknown //IL_00d7: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Expected O, but got Unknown //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TheBlazingSunModel val = (TheBlazingSunModel)((ModByteLoader)this).m[i + start]; val.maxStacks = br.ReadInt32(); val.stacksToBurn = br.ReadInt32(); val.burnBehaviorModel = (AddBehaviorToBloonModel)((ModByteLoader)this).m[br.ReadInt32()]; val.attackSpeedPerStack = br.ReadSingle(); val.debuffExpiresAfterFrames = br.ReadInt32(); val.burnBehaviorArea = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.ejectEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.ejectEffectOverheatModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } protected override TowerModel Load(byte[] bytes) { //IL_0a8e: Unknown result type (might be due to invalid IL or missing references) //IL_0a95: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_VigilanteTowerBehaviorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_InstantDamageEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllExceptTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_InstantModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BurstWeaponBehaviorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CritRollWithDistanceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_VagrantWeaponBehaviorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterIfAttackHasTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetDesperadoFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetDesperadoLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetDesperadoCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetDesperadoStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_KnockbackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ThrowMarkerOffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LineProjectileEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackMinimumRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TakeAimModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmitOnDamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_StandoffModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageOverTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmitOnDestroyModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BountyHunterZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DesperadoMarkModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponRateMinModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterMutatedTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MarkedToPopModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MarkedToPopProjectileBehaviorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterMarkedToPopModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCreatedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ZeroRotationOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AssetPathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BloonDistanceRateBonusModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionWithOffsetsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AlternateAnimationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TheBlazingSunModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class DruidLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "Druids.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Single_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadSingle(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_PrefabReference_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); PrefabReference[] array = (PrefabReference[])(object)new PrefabReference[num3]; for (int j = 0; j < array.Length; j++) { array[j] = ModContent.CreatePrefabReference(br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = array; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_DamageBasedAttackSpeedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageBasedAttackSpeedModel val = (DamageBasedAttackSpeedModel)((ModByteLoader)this).m[i + start]; val.damageThreshold = br.ReadSingle(); val.increasePerThreshold = br.ReadSingle(); val.maxStacks = br.ReadInt32(); val.maxTimeInFramesWithoutDamage = br.ReadInt32(); val.damageCap = br.ReadSingle(); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RandomEmissionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomEmissionModel val = (RandomEmissionModel)((ModByteLoader)this).m[i + start]; val.angle = br.ReadSingle(); val.count = br.ReadInt32(); val.startOffset = br.ReadSingle(); val.useSpeedMultiplier = br.ReadBoolean(); val.speedMultiplierMin = br.ReadSingle(); val.speedMultiplierMax = br.ReadSingle(); val.ejectPointRandomness = br.ReadSingle(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RemoveBloonModifiersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveBloonModifiersModel val = (RemoveBloonModifiersModel)((ModByteLoader)this).m[i + start]; val.cleanseRegen = br.ReadBoolean(); val.cleanseCamo = br.ReadBoolean(); val.cleanseLead = br.ReadBoolean(); val.cleanseFortified = br.ReadBoolean(); val.cleanseOnlyIfDamaged = br.ReadBoolean(); val.bloonTagExcludeList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonTagExplicitList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_OffsetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { OffsetModel val = (OffsetModel)((ModByteLoader)this).m[i + start]; val.range = br.ReadSingle(); val.angleOffset = br.ReadSingle(); } } private void Set_v_LifeBasedAttackSpeedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LifeBasedAttackSpeedModel val = (LifeBasedAttackSpeedModel)((ModByteLoader)this).m[i + start]; val.ratePerLife = br.ReadSingle(); val.lifeCap = br.ReadInt32(); val.baseRateIncrease = br.ReadSingle(); val.saveId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_PierceFromLivesGainedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PierceFromLivesGainedModel val = (PierceFromLivesGainedModel)((ModByteLoader)this).m[i + start]; val.piercePercentPerLife = br.ReadSingle(); val.lifeCap = br.ReadInt32(); val.saveId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_InstantDamageEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { InstantDamageEmissionModel val = (InstantDamageEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterOutTagModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutTagModel val = (FilterOutTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.disableWhenSupportMutatorIDs = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_JungleVineEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0087: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Expected O, but got Unknown //IL_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_00af: Expected O, but got Unknown //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Expected O, but got Unknown //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Expected O, but got Unknown //IL_00ff: Unknown result type (might be due to invalid IL or missing references) //IL_0109: Expected O, but got Unknown //IL_011d: Unknown result type (might be due to invalid IL or missing references) //IL_0127: Expected O, but got Unknown //IL_013b: Unknown result type (might be due to invalid IL or missing references) //IL_0145: Expected O, but got Unknown //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { JungleVineEffectModel val = (JungleVineEffectModel)((ModByteLoader)this).m[i + start]; val.displayFrontAssetId = ModContent.CreatePrefabReference(br.ReadString()); val.displayBackAssetId = ModContent.CreatePrefabReference(br.ReadString()); val.fullscreen = (Fullscreen)br.ReadInt32(); val.destroyAfterPopTime = br.ReadSingle(); val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.ageingDestroyModel = (AgeingDestroyModel)((ModByteLoader)this).m[br.ReadInt32()]; val.backEffectDisplayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonEffectDisplayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val.frontEffectDisplayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AgeingDestroyModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { AgeingDestroyModel val = (AgeingDestroyModel)((ModByteLoader)this).m[i + start]; val.time = br.ReadSingle(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CollideOnlyWithTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CollideOnlyWithTargetModel val = (CollideOnlyWithTargetModel)((ModByteLoader)this).m[i + start]; val.collideWithFirstIfInvalidTarget = br.ReadBoolean(); } } private void Set_v_InstantModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { InstantModel val = (InstantModel)((ModByteLoader)this).m[i + start]; val.destroyIfInvalid = br.ReadBoolean(); val.ignoreTargetZ = br.ReadBoolean(); val.dontFollowTarget = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnProjectileCollisionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCollisionModel val = (CreateSoundOnProjectileCollisionModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_RefreshPierceModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); for (int i = 0; i < count; i++) { RefreshPierceModel val2 = (RefreshPierceModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.isBuffedByRate = br.ReadBoolean(); } } private void Set_v_ClearHitBloonsModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); for (int i = 0; i < count; i++) { ClearHitBloonsModel val2 = (ClearHitBloonsModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_DestroyProjectileIfTowerDestroyedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DestroyProjectileIfTowerDestroyedModel val = (DestroyProjectileIfTowerDestroyedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileZeroRotationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileZeroRotationModel val = (ProjectileZeroRotationModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FadeProjectileModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("startFadingAt", (BindingFlags)60); for (int i = 0; i < count; i++) { FadeProjectileModel val2 = (FadeProjectileModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_JungleVineLimitProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { JungleVineLimitProjectileModel val = (JungleVineLimitProjectileModel)((ModByteLoader)this).m[i + start]; val.limit = br.ReadInt32(); val.delayInFrames = br.ReadInt32(); } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_FilterOutOffscreenModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutOffscreenModel val = (FilterOutOffscreenModel)((ModByteLoader)this).m[i + start]; val.includeBloonRadius = br.ReadBoolean(); } } private void Set_v_FilterBloonIfDamageTypeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterBloonIfDamageTypeModel val = (FilterBloonIfDamageTypeModel)((ModByteLoader)this).m[i + start]; val.ifCantHitBloonProperties = (BloonProperties)br.ReadInt32(); val.damageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterBadImmunityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterBadImmunityModel val = (FilterBadImmunityModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterWithTagsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagsModel val = (FilterWithTagsModel)((ModByteLoader)this).m[i + start]; val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.inclusive = br.ReadBoolean(); } } private void Set_v_TowerBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorBuffModel val = (TowerBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.isGlobalRange = br.ReadBoolean(); } } private void Set_v_PoplustSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { PoplustSupportModel val = (PoplustSupportModel)((ModByteLoader)this).m[i + start]; val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.maxStacks = br.ReadInt32(); val.ratePercentIncrease = br.ReadSingle(); val.piercePercentIncrease = br.ReadSingle(); } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_DruidVengeanceEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DruidVengeanceEffectModel val = (DruidVengeanceEffectModel)((ModByteLoader)this).m[i + start]; val.damageModifierWrathModel = (DamageModifierWrathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.smallGlowEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.mediumGlowEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.epicGlowEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.defaultProjectilePath = ModContent.CreatePrefabReference(br.ReadString()); val.weakProjectilePath = ModContent.CreatePrefabReference(br.ReadString()); val.mediumProjectilePath = ModContent.CreatePrefabReference(br.ReadString()); val.epicProjectilePath = ModContent.CreatePrefabReference(br.ReadString()); val.smallGlowEffectStacks = br.ReadInt32(); val.mediumGlowEffectStacks = br.ReadInt32(); val.epicGlowEffectStacks = br.ReadInt32(); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierWrathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierWrathModel val = (DamageModifierWrathModel)((ModByteLoader)this).m[i + start]; val.rbeThreshold = br.ReadInt32(); val.damage = br.ReadInt32(); val.maxDamageBoost = br.ReadInt32(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CashPerTowerInRangeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CashPerTowerInRangeModel val = (CashPerTowerInRangeModel)((ModByteLoader)this).m[i + start]; val.towerIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.baseCash = br.ReadSingle(); val.extraCashPerTier = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.rangeIncrease = br.ReadSingle(); val.maxCashGeneration = br.ReadSingle(); val.textAssetId = ModContent.CreatePrefabReference(br.ReadString()); val.textLifespan = br.ReadSingle(); val.badPopMultiplier = br.ReadSingle(); val.bossSkullMultiplier = br.ReadSingle(); } } private void Set_v_BonusLivesOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BonusLivesOnAbilityModel val = (BonusLivesOnAbilityModel)((ModByteLoader)this).m[i + start]; val.amount = br.ReadSingle(); } } private void Set_v_BuffIconPerTowerInRangeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIconPerTowerInRangeModel val = (BuffIconPerTowerInRangeModel)((ModByteLoader)this).m[i + start]; val.towerIdFilter = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffLocsFullName = (br.ReadBoolean() ? null : br.ReadString()); val.rangeOverride = br.ReadSingle(); } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_MultiInstantEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { MultiInstantEmissionModel val = (MultiInstantEmissionModel)((ModByteLoader)this).m[i + start]; val.amount = br.ReadInt32(); } } private void Set_v_SpiritOfTheForestModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_01d0: Expected O, but got Unknown //IL_01e4: Unknown result type (might be due to invalid IL or missing references) //IL_01ee: Expected O, but got Unknown //IL_0202: Unknown result type (might be due to invalid IL or missing references) //IL_020c: Expected O, but got Unknown //IL_0367: Unknown result type (might be due to invalid IL or missing references) //IL_0394: Unknown result type (might be due to invalid IL or missing references) Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("time", (BindingFlags)60); for (int i = 0; i < count; i++) { SpiritOfTheForestModel val2 = (SpiritOfTheForestModel)((ModByteLoader)this).m[i + start]; val2.objectToPlace1FarPath = ModContent.CreatePrefabReference(br.ReadString()); val2.objectToPlace2FarPath = ModContent.CreatePrefabReference(br.ReadString()); val2.objectToPlace3FarPath = ModContent.CreatePrefabReference(br.ReadString()); val2.objectToPlace4FarPath = ModContent.CreatePrefabReference(br.ReadString()); val2.objectsToPlaceFar = Il2CppReferenceArray.op_Implicit((PrefabReference[])((ModByteLoader)this).m[br.ReadInt32()]); val2.objectToPlace1MiddlePath = ModContent.CreatePrefabReference(br.ReadString()); val2.objectToPlace2MiddlePath = ModContent.CreatePrefabReference(br.ReadString()); val2.objectToPlace3MiddlePath = ModContent.CreatePrefabReference(br.ReadString()); val2.objectToPlace4MiddlePath = ModContent.CreatePrefabReference(br.ReadString()); val2.objectsToPlaceMiddle = Il2CppReferenceArray.op_Implicit((PrefabReference[])((ModByteLoader)this).m[br.ReadInt32()]); val2.objectToPlace1ClosePath = ModContent.CreatePrefabReference(br.ReadString()); val2.objectToPlace2ClosePath = ModContent.CreatePrefabReference(br.ReadString()); val2.objectToPlace3ClosePath = ModContent.CreatePrefabReference(br.ReadString()); val2.objectToPlace4ClosePath = ModContent.CreatePrefabReference(br.ReadString()); val2.objectsToPlaceClose = Il2CppReferenceArray.op_Implicit((PrefabReference[])((ModByteLoader)this).m[br.ReadInt32()]); val2.damageOverTimeZoneModelFar = (DamageOverTimeZoneModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.damageOverTimeZoneModelMiddle = (DamageOverTimeZoneModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.damageOverTimeZoneModelClose = (DamageOverTimeZoneModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.middleRange = br.ReadSingle(); val2.closeRange = br.ReadSingle(); val2.spacingMin = br.ReadSingle(); val2.spacingMax = br.ReadSingle(); val2.scaleMin = br.ReadSingle(); val2.scaleMax = br.ReadSingle(); val2.rotationMin = br.ReadSingle(); val2.rotationMax = br.ReadSingle(); val2.offsetMin = br.ReadSingle(); val2.offsetMax = br.ReadSingle(); val2.circleRadius = br.ReadSingle(); val2.generateRadius = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.amountPerFrame = br.ReadSingle(); val2.minScale = br.ReadSingle(); val2.maxScale = br.ReadSingle(); val2.scaleTime = br.ReadSingle(); val2.minScaleVector = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val2.maxScaleVector3 = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); } } private void Set_v_DamageOverTimeZoneModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageOverTimeZoneModel val = (DamageOverTimeZoneModel)((ModByteLoader)this).m[i + start]; val.behaviorModel = (DamageOverTimeModel)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.isGlobal = br.ReadBoolean(); val.filterInvisible = br.ReadBoolean(); val.onlyAffectOnscreen = br.ReadBoolean(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_DamageOverTimeModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); FieldInfo field2 = val.GetField("initialDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { DamageOverTimeModel val2 = (DamageOverTimeModel)((ModByteLoader)this).m[i + start]; val2.damage = br.ReadSingle(); val2.payloadCount = br.ReadInt32(); val2.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val2.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val2.displayLifetime = br.ReadSingle(); val2.triggerImmediate = br.ReadBoolean(); val2.rotateEffectWithBloon = br.ReadBoolean(); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.damageOnDestroy = br.ReadBoolean(); val2.overrideDistributionBlocker = br.ReadBoolean(); val2.distributeToChildren = br.ReadBoolean(); val2.damageModifierModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isFireBased = br.ReadBoolean(); } } private void Set_v_BloonBehaviorModelWithTowerTracking_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModelWithTowerTracking val = (BloonBehaviorModelWithTowerTracking)((ModByteLoader)this).m[i + start]; } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageOverTimeCustomModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_DamageOverTimeModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageOverTimeCustomModel val = (DamageOverTimeCustomModel)((ModByteLoader)this).m[i + start]; val.bloonTagsList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.multiplier = br.ReadSingle(); val.additive = br.ReadSingle(); } } private void Set_v_PerRoundCashBonusTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PerRoundCashBonusTowerModel val = (PerRoundCashBonusTowerModel)((ModByteLoader)this).m[i + start]; val.cashPerRound = br.ReadSingle(); val.cashRoundBonusMultiplier = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.distributeCash = br.ReadBoolean(); } } private void Set_v_CreateLightningEffectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateLightningEffectModel val = (CreateLightningEffectModel)((ModByteLoader)this).m[i + start]; val.lifeSpan = br.ReadSingle(); val.displayPaths = Il2CppReferenceArray.op_Implicit((PrefabReference[])((ModByteLoader)this).m[br.ReadInt32()]); val.displayLengths = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_LightningModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("delay", (BindingFlags)60); for (int i = 0; i < count; i++) { LightningModel val2 = (LightningModel)((ModByteLoader)this).m[i + start]; val2.splits = br.ReadInt32(); val2.emissionModel = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.splitRange = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.targetLast = br.ReadBoolean(); } } private void Set_v_CreateSoundOnProjectileCreatedModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCreatedModel val = (CreateSoundOnProjectileCreatedModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.type = (br.ReadBoolean() ? null : br.ReadString()); val.altType = (br.ReadBoolean() ? null : br.ReadString()); val.projectileId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FilterMutatedTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterMutatedTargetModel val = (FilterMutatedTargetModel)((ModByteLoader)this).m[i + start]; val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.mutationIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.inverse = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_WindModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Expected O, but got Unknown //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); for (int i = 0; i < count; i++) { WindModel val = (WindModel)((ModByteLoader)this).m[i + start]; val.distanceMin = br.ReadSingle(); val.distanceMax = br.ReadSingle(); val.chance = br.ReadSingle(); val.affectMoab = br.ReadBoolean(); val.distanceScaleForTags = br.ReadSingle(); val.distanceScaleForTagsTags = (br.ReadBoolean() ? null : br.ReadString()); val.distanceScaleForTagsTagsList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.speedMultiplier = br.ReadSingle(); val.tagFilter = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.tagInclusive = br.ReadBoolean(); } } private void Set_v_RemoveMutatorsFromBloonModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveMutatorsFromBloonModel val = (RemoveMutatorsFromBloonModel)((ModByteLoader)this).m[i + start]; val.key = (br.ReadBoolean() ? null : br.ReadString()); val.keys = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.mutatorIds = (br.ReadBoolean() ? null : br.ReadString()); val.mutatorIdList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TrackTargetModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("turnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { TrackTargetModel val2 = (TrackTargetModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.trackNewTargets = br.ReadBoolean(); val2.constantlyAquireNewTarget = br.ReadBoolean(); val2.maxSeekAngle = br.ReadSingle(); val2.ignoreSeekAngle = br.ReadBoolean(); val2.overrideRotation = br.ReadBoolean(); val2.useLifetimeAsDistance = br.ReadBoolean(); val2.expireOnContactTarget = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CollideExtraPierceReductionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CollideExtraPierceReductionModel val = (CollideExtraPierceReductionModel)((ModByteLoader)this).m[i + start]; val.bloonTag = (br.ReadBoolean() ? null : br.ReadString()); val.extraAmount = br.ReadInt32(); val.destroyProjectileIfPierceNotEnough = br.ReadBoolean(); } } private void Set_v_ZeroRotationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ZeroRotationModel val = (ZeroRotationModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateEffectOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustFractionModel val = (CreateEffectOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.fraction = br.ReadSingle(); val.durationFraction = br.ReadSingle(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateProjectileOnIntervalModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_010b: Unknown result type (might be due to invalid IL or missing references) //IL_0115: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnIntervalModel val = (CreateProjectileOnIntervalModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.intervalFrames = br.ReadInt32(); val.onlyIfHasTarget = br.ReadBoolean(); val.range = br.ReadSingle(); val.targetType.id = br.ReadString(); val.targetType.actionOnCreate = br.ReadBoolean(); val.isBuffedByRate = br.ReadBoolean(); val.useRawWeaponRate = br.ReadBoolean(); val.onlyEmitOnce = br.ReadBoolean(); val.effect = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FreezeModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Expected O, but got Unknown //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { FreezeModel val2 = (FreezeModel)((ModByteLoader)this).m[i + start]; val2.speed = br.ReadSingle(); val2.layers = br.ReadInt32(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.percentChanceToFreeze = br.ReadSingle(); val2.enablePercentChanceToFreeze = br.ReadBoolean(); val2.damageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.canFreezeMoabs = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.growBlockModel = (GrowBlockModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.applyAfterDamage = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_GrowBlockModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { GrowBlockModel val = (GrowBlockModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_MapBorderReboundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { MapBorderReboundModel val = (MapBorderReboundModel)((ModByteLoader)this).m[i + start]; val.changeRotation = br.ReadBoolean(); val.clearCollidedWith = br.ReadBoolean(); } } private void Set_v_IgnoreInsufficientPierceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { IgnoreInsufficientPierceModel val = (IgnoreInsufficientPierceModel)((ModByteLoader)this).m[i + start]; } } protected override TowerModel Load(byte[] bytes) { //IL_0cb2: Unknown result type (might be due to invalid IL or missing references) //IL_0cb9: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); Read_a_Single_Array(); CreateArraySet(); Read_a_PrefabReference_Array(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageBasedAttackSpeedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveBloonModifiersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_OffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LifeBasedAttackSpeedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PierceFromLivesGainedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_InstantDamageEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_JungleVineEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeingDestroyModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CollideOnlyWithTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_InstantModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCollisionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RefreshPierceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ClearHitBloonsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DestroyProjectileIfTowerDestroyedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileZeroRotationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FadeProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_JungleVineLimitProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutOffscreenModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterBloonIfDamageTypeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterBadImmunityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PoplustSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DruidVengeanceEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierWrathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CashPerTowerInRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BonusLivesOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIconPerTowerInRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MultiInstantEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SpiritOfTheForestModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageOverTimeZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageOverTimeCustomModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PerRoundCashBonusTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateLightningEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LightningModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCreatedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterMutatedTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WindModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveMutatorsFromBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TrackTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CollideExtraPierceReductionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ZeroRotationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnIntervalModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FreezeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_GrowBlockModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MapBorderReboundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_IgnoreInsufficientPierceModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class EngineerMonkeyLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "EngineerMonkeys.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Single_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadSingle(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EmissionWithOffsetsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionWithOffsetsModel val = (EmissionWithOffsetsModel)((ModByteLoader)this).m[i + start]; val.throwMarkerOffsetModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.projectileCount = br.ReadInt32(); val.rotateProjectileWithTower = br.ReadBoolean(); val.randomRotationCone = br.ReadSingle(); val.spreadProjectilesAcrossMarkers = br.ReadBoolean(); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ThrowMarkerOffsetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ThrowMarkerOffsetModel val = (ThrowMarkerOffsetModel)((ModByteLoader)this).m[i + start]; val.ejectX = br.ReadSingle(); val.ejectY = br.ReadSingle(); val.ejectZ = br.ReadSingle(); val.rotation = br.ReadSingle(); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_SlowOnPopModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SlowModel_Fields(start, count); for (int i = 0; i < count; i++) { SlowOnPopModel val = (SlowOnPopModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_AlternateAnimationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AlternateAnimationModel val = (AlternateAnimationModel)((ModByteLoader)this).m[i + start]; val.states = br.ReadInt32(); val.originState = br.ReadInt32(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateProjectileOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustFractionModel val = (CreateProjectileOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.fraction = br.ReadSingle(); val.durationfraction = br.ReadSingle(); val.canCreateInBetweenRounds = br.ReadBoolean(); val.collideOnSubProjectile = br.ReadBoolean(); val.passOnCollidedWith = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RemoveBloonModifiersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveBloonModifiersModel val = (RemoveBloonModifiersModel)((ModByteLoader)this).m[i + start]; val.cleanseRegen = br.ReadBoolean(); val.cleanseCamo = br.ReadBoolean(); val.cleanseLead = br.ReadBoolean(); val.cleanseFortified = br.ReadBoolean(); val.cleanseOnlyIfDamaged = br.ReadBoolean(); val.bloonTagExcludeList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonTagExplicitList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_SlowModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("multiplier", (BindingFlags)60); for (int i = 0; i < count; i++) { SlowModel val2 = (SlowModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.layers = br.ReadInt32(); val2.overlayLayer = br.ReadInt32(); val2.glueLevel = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.dontRefreshDuration = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.removeMutatorIfNotMatching = br.ReadBoolean(); val2.matchLayersWithDamage = br.ReadBoolean(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.countGlueAchievement = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_SlowModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SlowModifierForTagModel val = (SlowModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.slowId = (br.ReadBoolean() ? null : br.ReadString()); val.slowMultiplier = br.ReadSingle(); val.resetToUnmodified = br.ReadBoolean(); val.preventMutation = br.ReadBoolean(); val.lifespanOverride = br.ReadSingle(); val.makeNotTag = br.ReadBoolean(); } } private void Set_v_ScaleProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ScaleProjectileModel val = (ScaleProjectileModel)((ModByteLoader)this).m[i + start]; val.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_Curve_Fields(int start, int count) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("samples", (BindingFlags)60); for (int i = 0; i < count; i++) { Curve val2 = (Curve)((ModByteLoader)this).m[i + start]; val2.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ArriveAtTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ArriveAtTargetModel val = (ArriveAtTargetModel)((ModByteLoader)this).m[i + start]; val.timeToTake = br.ReadSingle(); val.curveSamples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.filterCollisionWhileMoving = br.ReadBoolean(); val.expireOnArrival = br.ReadBoolean(); val.altSpeed = br.ReadSingle(); val.stopOnTargetReached = br.ReadBoolean(); val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; val.keepUpdatingTargetPos = br.ReadBoolean(); val.rotateToTarget = br.ReadBoolean(); val.maxTurnAngle = br.ReadSingle(); val.positionAboveMoabTypes = br.ReadBoolean(); } } private void Set_v_CreateEffectOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustFractionModel val = (CreateEffectOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.fraction = br.ReadSingle(); val.durationFraction = br.ReadSingle(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnProjectileExhaustModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileExhaustModel val = (CreateSoundOnProjectileExhaustModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetSelectedPointModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSelectedPointModel val = (TargetSelectedPointModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.customName = (br.ReadBoolean() ? null : br.ReadString()); val.lockToInsideTowerRange = br.ReadBoolean(); val.startWithClosestTrackPoint = br.ReadBoolean(); val.displayInvalid = ModContent.CreatePrefabReference(br.ReadString()); val.alwaysShowTarget = br.ReadBoolean(); val.projectileToExpireOnTargetChangeModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTerrainHeight = br.ReadBoolean(); } } private void Set_v_StartOfRoundRateBuffModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("duration", (BindingFlags)60); for (int i = 0; i < count; i++) { StartOfRoundRateBuffModel val2 = (StartOfRoundRateBuffModel)((ModByteLoader)this).m[i + start]; val2.modifier = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.isUnique = br.ReadBoolean(); val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FilterOutTagModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutTagModel val = (FilterOutTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.disableWhenSupportMutatorIDs = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EatBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Expected O, but got Unknown //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0095: Expected O, but got Unknown //IL_00e5: Unknown result type (might be due to invalid IL or missing references) //IL_00ef: Expected O, but got Unknown //IL_0103: Unknown result type (might be due to invalid IL or missing references) //IL_010d: Expected O, but got Unknown //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_012b: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("timeUntilClose", (BindingFlags)60); for (int i = 0; i < count; i++) { EatBloonModel val2 = (EatBloonModel)((ModByteLoader)this).m[i + start]; val2.rbeCapacity = br.ReadSingle(); val2.rbeCashMultiplier = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.animationStateOpen = br.ReadInt32(); val2.animationStateClosed = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.effectOnEatModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.bloonTrapOpenSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.bloonTrapCloseSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.noSpawnCash = br.ReadBoolean(); } } private void Set_v_FilterAllModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllModel val = (FilterAllModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateSoundOnPickupModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnPickupModel val = (CreateSoundOnPickupModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PickupModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("delay", (BindingFlags)60); for (int i = 0; i < count; i++) { PickupModel val2 = (PickupModel)((ModByteLoader)this).m[i + start]; val2.collectRadius = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.isCamoPickup = br.ReadBoolean(); } } private void Set_v_CashModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CashModel val = (CashModel)((ModByteLoader)this).m[i + start]; val.minimum = br.ReadSingle(); val.maximum = br.ReadSingle(); val.bonusMultiplier = br.ReadSingle(); val.salvage = br.ReadSingle(); val.noTransformCash = br.ReadBoolean(); val.distributeSalvage = br.ReadBoolean(); val.forceCreateProjectile = br.ReadBoolean(); val.isDoubleable = br.ReadBoolean(); val.distributeBonusIncome = br.ReadBoolean(); val.emittedByCashEarnedMultiplier = br.ReadSingle(); val.isPowerCash = br.ReadBoolean(); } } private void Set_v_CreateTextEffectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateTextEffectModel val = (CreateTextEffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.useTowerPosition = br.ReadBoolean(); } } private void Set_v_HeightOffsetProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { HeightOffsetProjectileModel val = (HeightOffsetProjectileModel)((ModByteLoader)this).m[i + start]; val.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DestroyProjectileIfTowerDestroyedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DestroyProjectileIfTowerDestroyedModel val = (DestroyProjectileIfTowerDestroyedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_LimitProjectileModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LimitProjectileModel val = (LimitProjectileModel)((ModByteLoader)this).m[i + start]; val.projectileId = (br.ReadBoolean() ? null : br.ReadString()); val.limit = br.ReadInt32(); val.delayInFrames = br.ReadInt32(); val.limitByDestroyedPriorProjectile = br.ReadBoolean(); val.globalForPlayer = br.ReadBoolean(); } } private void Set_v_ZeroRotationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ZeroRotationModel val = (ZeroRotationModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateSoundOnProjectileCreatedModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCreatedModel val = (CreateSoundOnProjectileCreatedModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.type = (br.ReadBoolean() ? null : br.ReadString()); val.altType = (br.ReadBoolean() ? null : br.ReadString()); val.projectileId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CollectCreatedProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CollectCreatedProjectileModel val = (CollectCreatedProjectileModel)((ModByteLoader)this).m[i + start]; val.projectileId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_RandomTargetSpreadModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomTargetSpreadModel val = (RandomTargetSpreadModel)((ModByteLoader)this).m[i + start]; val.spread = br.ReadSingle(); val.throwMarkerOffsets = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_OverclockModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00f9: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { OverclockModel val = (OverclockModel)((ModByteLoader)this).m[i + start]; val.lifespanFrames = br.ReadInt32(); val.rateModifier = br.ReadSingle(); val.villageRangeModifier = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.mutatorSaveId = (br.ReadBoolean() ? null : br.ReadString()); val.maxStacks = br.ReadInt32(); val.selectionObjectPath = ModContent.CreatePrefabReference(br.ReadString()); val.buffDisplayPath = ModContent.CreatePrefabReference(br.ReadString()); val.initialEffect = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.tierBasedDurationMultiplier = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonDurationMultiplier = br.ReadSingle(); val.isParagonMode = br.ReadBoolean(); val.paragonZoneRange = br.ReadSingle(); val.paragonZoneLifespanFrames = br.ReadInt32(); } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_OverclockPermanentModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { OverclockPermanentModel val = (OverclockPermanentModel)((ModByteLoader)this).m[i + start]; val.rateModifier = br.ReadSingle(); val.villageRangeModifier = br.ReadSingle(); val.maxStacks = br.ReadInt32(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateTowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateTowerModel val = (CreateTowerModel)((ModByteLoader)this).m[i + start]; val.tower = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val.height = br.ReadSingle(); val.positionAtTarget = br.ReadBoolean(); val.destroySubTowersOnCreateNewTower = br.ReadBoolean(); val.useProjectileRotation = br.ReadBoolean(); val.useParentTargetPriority = br.ReadBoolean(); val.carryMutatorsFromDestroyedTower = br.ReadBoolean(); } } private void Set_v_TowerExpireModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TowerExpireModel val2 = (TowerExpireModel)((ModByteLoader)this).m[i + start]; val2.expireOnRoundComplete = br.ReadBoolean(); val2.expireOnDefeatScreen = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.rounds = br.ReadInt32(); } } private void Set_v_PlayAnimationIndexModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PlayAnimationIndexModel val = (PlayAnimationIndexModel)((ModByteLoader)this).m[i + start]; val.placeAnimation = br.ReadInt32(); val.upgradeAnimation = br.ReadInt32(); } } private void Set_v_SavedSubTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SavedSubTowerModel val = (SavedSubTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreditPopsToParentTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreditPopsToParentTowerModel val = (CreditPopsToParentTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RandomPositionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomPositionModel val = (RandomPositionModel)((ModByteLoader)this).m[i + start]; val.minDistance = br.ReadSingle(); val.maxDistance = br.ReadSingle(); val.targetRadius = br.ReadSingle(); val.targetRadiusSquared = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); val.pointDistance = br.ReadSingle(); val.dontUseTowerPosition = br.ReadBoolean(); val.areaType = (br.ReadBoolean() ? null : br.ReadString()); val.useInverted = br.ReadBoolean(); val.ignoreTerrain = br.ReadBoolean(); val.idealDistanceWithinTrack = br.ReadSingle(); val.towerSet = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_ParallelEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { ParallelEmissionModel val = (ParallelEmissionModel)((ModByteLoader)this).m[i + start]; val.spreadLength = br.ReadSingle(); val.yOffset = br.ReadSingle(); val.count = br.ReadInt32(); val.linear = br.ReadBoolean(); val.offsetStart = br.ReadSingle(); } } private void Set_v_CloseTargetTrackModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { CloseTargetTrackModel val = (CloseTargetTrackModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); val.maxOffset = br.ReadSingle(); } } private void Set_v_CreateTypedTowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateTypedTowerModel val = (CreateTypedTowerModel)((ModByteLoader)this).m[i + start]; val.crushingTower = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val.boomTower = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val.coldTower = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val.energyTower = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val.crushingDisplay = ModContent.CreatePrefabReference(br.ReadString()); val.boomDisplay = ModContent.CreatePrefabReference(br.ReadString()); val.coldDisplay = ModContent.CreatePrefabReference(br.ReadString()); val.energyDisplay = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_ProjectileBlockerCollisionReboundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBlockerCollisionReboundModel val = (ProjectileBlockerCollisionReboundModel)((ModByteLoader)this).m[i + start]; val.clearCollidedWith = br.ReadBoolean(); val.changeRotation = br.ReadBoolean(); } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_CreateEffectOnContactModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnContactModel val = (CreateEffectOnContactModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnProjectileCollisionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCollisionModel val = (CreateSoundOnProjectileCollisionModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterMutatedTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterMutatedTargetModel val = (FilterMutatedTargetModel)((ModByteLoader)this).m[i + start]; val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.mutationIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.inverse = br.ReadBoolean(); } } private void Set_v_FilterOveridingMutatedTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOveridingMutatedTargetModel val = (FilterOveridingMutatedTargetModel)((ModByteLoader)this).m[i + start]; val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.mutationOverideOrder = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.highestPriorityMutationId = (br.ReadBoolean() ? null : br.ReadString()); val.defaultMutationId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FilterBloonIfDamageTypeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterBloonIfDamageTypeModel val = (FilterBloonIfDamageTypeModel)((ModByteLoader)this).m[i + start]; val.ifCantHitBloonProperties = (BloonProperties)br.ReadInt32(); val.damageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterFrozenBloonsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterFrozenBloonsModel val = (FilterFrozenBloonsModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FreezeModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Expected O, but got Unknown //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { FreezeModel val2 = (FreezeModel)((ModByteLoader)this).m[i + start]; val2.speed = br.ReadSingle(); val2.layers = br.ReadInt32(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.percentChanceToFreeze = br.ReadSingle(); val2.enablePercentChanceToFreeze = br.ReadBoolean(); val2.damageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.canFreezeMoabs = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.growBlockModel = (GrowBlockModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.applyAfterDamage = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_GrowBlockModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { GrowBlockModel val = (GrowBlockModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateTypedTowerCurrentIndexModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateTypedTowerCurrentIndexModel val = (CreateTypedTowerCurrentIndexModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateProjectileOnTowerDestroyModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnTowerDestroyModel val = (CreateProjectileOnTowerDestroyModel)((ModByteLoader)this).m[i + start]; val.projectileModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emissionModel = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.conditions = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.useTowerRotation = br.ReadBoolean(); val.setAgeZeroOnSell = br.ReadBoolean(); val.ignoreSubTowers = br.ReadBoolean(); } } private void Set_v_CreateProjectileOnExpireModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExpireModel val = (CreateProjectileOnExpireModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useRotation = br.ReadBoolean(); val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_CreateSoundOnProjectileExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileExpireModel val = (CreateSoundOnProjectileExpireModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.limiter = br.ReadInt32(); } } private void Set_v_LinkProjectileRadiusToTowerRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LinkProjectileRadiusToTowerRangeModel val = (LinkProjectileRadiusToTowerRangeModel)((ModByteLoader)this).m[i + start]; val.projectileModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.baseTowerRange = br.ReadSingle(); val.projectileRadiusOffset = br.ReadSingle(); val.displayRadius = br.ReadSingle(); } } private void Set_v_LinkDisplayScaleToTowerRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LinkDisplayScaleToTowerRangeModel val = (LinkDisplayScaleToTowerRangeModel)((ModByteLoader)this).m[i + start]; val.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val.baseTowerRange = br.ReadSingle(); val.displayRadius = br.ReadSingle(); val.hideIfAttackPausedId = (br.ReadBoolean() ? null : br.ReadString()); } } protected override TowerModel Load(byte[] bytes) { //IL_0da7: Unknown result type (might be due to invalid IL or missing references) //IL_0dae: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); Read_a_Single_Array(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionWithOffsetsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ThrowMarkerOffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowOnPopModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AlternateAnimationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveBloonModifiersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ScaleProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Curve_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArriveAtTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileExhaustModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetSelectedPointModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_StartOfRoundRateBuffModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EatBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnPickupModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PickupModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CashModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateTextEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_HeightOffsetProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DestroyProjectileIfTowerDestroyedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LimitProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ZeroRotationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCreatedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CollectCreatedProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomTargetSpreadModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_OverclockModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_OverclockPermanentModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TowerExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PlayAnimationIndexModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SavedSubTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreditPopsToParentTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomPositionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ParallelEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CloseTargetTrackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateTypedTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileBlockerCollisionReboundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCollisionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterMutatedTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOveridingMutatedTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterBloonIfDamageTypeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterFrozenBloonsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FreezeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_GrowBlockModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateTypedTowerCurrentIndexModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnTowerDestroyModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LinkProjectileRadiusToTowerRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LinkDisplayScaleToTowerRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class GlueGunnerLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "GlueGunners.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_FilterGlueLevelModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterGlueLevelModel val = (FilterGlueLevelModel)((ModByteLoader)this).m[i + start]; val.glueLevel = br.ReadInt32(); } } private void Set_v_FilterOutTagModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutTagModel val = (FilterOutTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.disableWhenSupportMutatorIDs = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_SlowModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("multiplier", (BindingFlags)60); for (int i = 0; i < count; i++) { SlowModel val2 = (SlowModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.layers = br.ReadInt32(); val2.overlayLayer = br.ReadInt32(); val2.glueLevel = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.dontRefreshDuration = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.removeMutatorIfNotMatching = br.ReadBoolean(); val2.matchLayersWithDamage = br.ReadBoolean(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.countGlueAchievement = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SlowModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SlowModifierForTagModel val = (SlowModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.slowId = (br.ReadBoolean() ? null : br.ReadString()); val.slowMultiplier = br.ReadSingle(); val.resetToUnmodified = br.ReadBoolean(); val.preventMutation = br.ReadBoolean(); val.lifespanOverride = br.ReadSingle(); val.makeNotTag = br.ReadBoolean(); } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AddBehaviorModifierForTagModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AddBehaviorModifierForTagModel val = (AddBehaviorModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.mutatorMultiplier = br.ReadSingle(); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_CreateEffectOnContactModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnContactModel val = (CreateEffectOnContactModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnProjectileCollisionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCollisionModel val = (CreateSoundOnProjectileCollisionModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_AddBehaviorToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBehaviorToBloonModel val2 = (AddBehaviorToBloonModel)((ModByteLoader)this).m[i + start]; val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.layers = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isUnique = br.ReadBoolean(); val2.lastAppliesFirst = br.ReadBoolean(); val2.collideThisFrame = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.glueLevel = br.ReadInt32(); val2.applyOnlyIfDamaged = br.ReadBoolean(); val2.stackCount = br.ReadInt32(); val2.dontCopy = br.ReadBoolean(); val2.parentDamageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_BloonBehaviorModelWithTowerTracking_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModelWithTowerTracking val = (BloonBehaviorModelWithTowerTracking)((ModByteLoader)this).m[i + start]; } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmitOnPopModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); for (int i = 0; i < count; i++) { EmitOnPopModel val = (EmitOnPopModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.pierceOverride = br.ReadSingle(); val.ignoreSameFrameDegrade = br.ReadBoolean(); } } private void Set_v_CreateEffectOnPopModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPopModel val = (CreateEffectOnPopModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreSameFrameDegrade = br.ReadBoolean(); } } private void Set_v_SlowForBloonModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown Set_v_SlowModel_Fields(start, count); for (int i = 0; i < count; i++) { SlowForBloonModel val = (SlowForBloonModel)((ModByteLoader)this).m[i + start]; val.bloonId = (br.ReadBoolean() ? null : br.ReadString()); val.bloonIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonTag = (br.ReadBoolean() ? null : br.ReadString()); val.bloonTags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.excluding = br.ReadBoolean(); } } private void Set_v_RemoveMutatorsFromBloonModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveMutatorsFromBloonModel val = (RemoveMutatorsFromBloonModel)((ModByteLoader)this).m[i + start]; val.key = (br.ReadBoolean() ? null : br.ReadString()); val.keys = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.mutatorIds = (br.ReadBoolean() ? null : br.ReadString()); val.mutatorIdList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterWithTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagModel val = (FilterWithTagModel)((ModByteLoader)this).m[i + start]; val.moabTag = br.ReadBoolean(); val.camoTag = br.ReadBoolean(); val.growTag = br.ReadBoolean(); val.fortifiedTag = br.ReadBoolean(); val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.inclusive = br.ReadBoolean(); val.hasMoabTag = br.ReadBoolean(); } } private void Set_v_DamageOverTimeModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); FieldInfo field2 = val.GetField("initialDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { DamageOverTimeModel val2 = (DamageOverTimeModel)((ModByteLoader)this).m[i + start]; val2.damage = br.ReadSingle(); val2.payloadCount = br.ReadInt32(); val2.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val2.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val2.displayLifetime = br.ReadSingle(); val2.triggerImmediate = br.ReadBoolean(); val2.rotateEffectWithBloon = br.ReadBoolean(); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.damageOnDestroy = br.ReadBoolean(); val2.overrideDistributionBlocker = br.ReadBoolean(); val2.distributeToChildren = br.ReadBoolean(); val2.damageModifierModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isFireBased = br.ReadBoolean(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AddBonusDamagePerHitToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0123: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBonusDamagePerHitToBloonModel val2 = (AddBonusDamagePerHitToBloonModel)((ModByteLoader)this).m[i + start]; val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.priority = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.perHitDamageAddition = br.ReadSingle(); val2.layers = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.lastAppliesFirst = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.overlayType = (br.ReadBoolean() ? null : br.ReadString()); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RemoveDamageTypeModifierModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { RemoveDamageTypeModifierModel val2 = (RemoveDamageTypeModifierModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.layers = br.ReadInt32(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.removeAll = br.ReadBoolean(); val2.bloonPropertiesToRemove = (BloonProperties)br.ReadInt32(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_RotateToParentModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToParentModel val = (RotateToParentModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_EmitOnDestroyModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); for (int i = 0; i < count; i++) { EmitOnDestroyModel val = (EmitOnDestroyModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } protected override TowerModel Load(byte[] bytes) { //IL_087a: Unknown result type (might be due to invalid IL or missing references) //IL_0881: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterGlueLevelModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCollisionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmitOnPopModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPopModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowForBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveMutatorsFromBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageOverTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBonusDamagePerHitToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveDamageTypeModifierModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToParentModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmitOnDestroyModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class HeliPilotLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "HeliPilots.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RectangleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { RectangleFootprintModel val = (RectangleFootprintModel)((ModByteLoader)this).m[i + start]; val.xWidth = br.ReadSingle(); val.yWidth = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EmissionWithOffsetsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionWithOffsetsModel val = (EmissionWithOffsetsModel)((ModByteLoader)this).m[i + start]; val.throwMarkerOffsetModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.projectileCount = br.ReadInt32(); val.rotateProjectileWithTower = br.ReadBoolean(); val.randomRotationCone = br.ReadSingle(); val.spreadProjectilesAcrossMarkers = br.ReadBoolean(); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ThrowMarkerOffsetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ThrowMarkerOffsetModel val = (ThrowMarkerOffsetModel)((ModByteLoader)this).m[i + start]; val.ejectX = br.ReadSingle(); val.ejectY = br.ReadSingle(); val.ejectZ = br.ReadSingle(); val.rotation = br.ReadSingle(); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_FireFromAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FireFromAirUnitModel val = (FireFromAirUnitModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AnimateAirUnitOnFireModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AnimateAirUnitOnFireModel val = (AnimateAirUnitOnFireModel)((ModByteLoader)this).m[i + start]; val.animationState = br.ReadInt32(); } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FollowTouchSettingModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { FollowTouchSettingModel val = (FollowTouchSettingModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_LockInPlaceSettingModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { LockInPlaceSettingModel val = (LockInPlaceSettingModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.display = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_PatrolPointsSettingModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lineDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { PatrolPointsSettingModel val2 = (PatrolPointsSettingModel)((ModByteLoader)this).m[i + start]; val2.isSelectable = br.ReadBoolean(); val2.pointSwitchDistance = br.ReadSingle(); val2.pointSwitchDistanceSquared = br.ReadSingle(); val2.minimumPointDistance = br.ReadSingle(); val2.minimumPointDistanceSquared = br.ReadSingle(); val2.dotSpacing = br.ReadSingle(); val2.dotOffset = br.ReadSingle(); val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.lineDisplay = ModContent.CreatePrefabReference(br.ReadString()); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_RotateToTargetAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_RotateToTargetModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetAirUnitModel val = (RotateToTargetAirUnitModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AttackAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_AttackModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackAirUnitModel val = (AttackAirUnitModel)((ModByteLoader)this).m[i + start]; val.displayAirUnitModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TrackTargetModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("turnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { TrackTargetModel val2 = (TrackTargetModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.trackNewTargets = br.ReadBoolean(); val2.constantlyAquireNewTarget = br.ReadBoolean(); val2.maxSeekAngle = br.ReadSingle(); val2.ignoreSeekAngle = br.ReadBoolean(); val2.overrideRotation = br.ReadBoolean(); val2.useLifetimeAsDistance = br.ReadBoolean(); val2.expireOnContactTarget = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_DamageModifierForBloonTypeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForBloonTypeModel val = (DamageModifierForBloonTypeModel)((ModByteLoader)this).m[i + start]; val.bloonId = (br.ReadBoolean() ? null : br.ReadString()); val.bloonIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAdditive = br.ReadSingle(); val.includeChildren = br.ReadBoolean(); } } private void Set_v_CreateEffectOnContactModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnContactModel val = (CreateEffectOnContactModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnProjectileCollisionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCollisionModel val = (CreateSoundOnProjectileCollisionModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetFirstAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstAirUnitModel val = (TargetFirstAirUnitModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_MoabShoveZoneModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { MoabShoveZoneModel val = (MoabShoveZoneModel)((ModByteLoader)this).m[i + start]; val.range = br.ReadSingle(); val.moabPushSpeedScaleCap = br.ReadSingle(); val.bfbPushSpeedScaleCap = br.ReadSingle(); val.zomgPushSpeedScaleCap = br.ReadSingle(); val.filterInvisibleModel = (FilterInvisibleModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AirUnitModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AirUnitModel val = (AirUnitModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.displayScale = br.ReadSingle(); val.isAirUnitSelectable = br.ReadBoolean(); val.selectableRadius = br.ReadSingle(); val.blocksPlacement = br.ReadBoolean(); val.blockingRadius = br.ReadSingle(); } } private void Set_v_HeliMovementModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { HeliMovementModel val = (HeliMovementModel)((ModByteLoader)this).m[i + start]; val.maxSpeed = br.ReadSingle(); val.rotationSpeed = br.ReadSingle(); val.strafeDistance = br.ReadSingle(); val.strafeDistanceSquared = br.ReadSingle(); val.otherHeliRepulsionRange = br.ReadSingle(); val.otherHeliRepulsionRangeSquared = br.ReadSingle(); val.movementForceStart = br.ReadSingle(); val.movementForceEnd = br.ReadSingle(); val.movementForceEndSquared = br.ReadSingle(); val.brakeForce = br.ReadSingle(); val.otherHeliRepulsonForce = br.ReadSingle(); val.slowdownRadiusMax = br.ReadSingle(); val.slowdownRadiusMaxSquared = br.ReadSingle(); val.slowdownRadiusMin = br.ReadSingle(); val.slowdownRadiusMinSquared = br.ReadSingle(); val.minVelocityCapScale = br.ReadSingle(); val.destinationYOffset = br.ReadSingle(); val.tiltAngle = br.ReadSingle(); val.patrolPursuitRadius = br.ReadSingle(); } } private void Set_v_CreateEffectOnAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAirUnitModel val = (CreateEffectOnAirUnitModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.rotation = br.ReadSingle(); val.scale = br.ReadSingle(); val.displayCategory = (DisplayCategory)br.ReadUInt16(); } } private void Set_v_FilterMutatedTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterMutatedTargetModel val = (FilterMutatedTargetModel)((ModByteLoader)this).m[i + start]; val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.mutationIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.inverse = br.ReadBoolean(); } } private void Set_v_FilterOutTagModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutTagModel val = (FilterOutTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.disableWhenSupportMutatorIDs = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_WindModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Expected O, but got Unknown //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); for (int i = 0; i < count; i++) { WindModel val = (WindModel)((ModByteLoader)this).m[i + start]; val.distanceMin = br.ReadSingle(); val.distanceMax = br.ReadSingle(); val.chance = br.ReadSingle(); val.affectMoab = br.ReadBoolean(); val.distanceScaleForTags = br.ReadSingle(); val.distanceScaleForTagsTags = (br.ReadBoolean() ? null : br.ReadString()); val.distanceScaleForTagsTagsList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.speedMultiplier = br.ReadSingle(); val.tagFilter = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.tagInclusive = br.ReadBoolean(); } } private void Set_v_RemoveMutatorsFromBloonModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveMutatorsFromBloonModel val = (RemoveMutatorsFromBloonModel)((ModByteLoader)this).m[i + start]; val.key = (br.ReadBoolean() ? null : br.ReadString()); val.keys = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.mutatorIds = (br.ReadBoolean() ? null : br.ReadString()); val.mutatorIdList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CollideExtraPierceReductionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CollideExtraPierceReductionModel val = (CollideExtraPierceReductionModel)((ModByteLoader)this).m[i + start]; val.bloonTag = (br.ReadBoolean() ? null : br.ReadString()); val.extraAmount = br.ReadInt32(); val.destroyProjectileIfPierceNotEnough = br.ReadBoolean(); } } private void Set_v_IgnoreThrowMarkerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { IgnoreThrowMarkerModel val = (IgnoreThrowMarkerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ComancheDefenceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ComancheDefenceModel val = (ComancheDefenceModel)((ModByteLoader)this).m[i + start]; val.towerModel = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reinforcementCount = br.ReadInt32(); val.durationFrames = br.ReadInt32(); val.cooldownFrames = br.ReadInt32(); val.maxActivationsPerRound = br.ReadInt32(); val.immediate = br.ReadBoolean(); val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_CreditPopsToParentTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreditPopsToParentTowerModel val = (CreditPopsToParentTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_PursuitSettingModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { PursuitSettingModel val = (PursuitSettingModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.pursuitDistance = br.ReadSingle(); } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_SyncTargetPriorityWithSubTowersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0085: Expected O, but got Unknown //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SyncTargetPriorityWithSubTowersModel val = (SyncTargetPriorityWithSubTowersModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.targetTypeMustExist = br.ReadBoolean(); val.ignoreTowersList = (br.ReadBoolean() ? null : br.ReadString()); val.ignoreTowers = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.placeOnlyForTowersList = (br.ReadBoolean() ? null : br.ReadString()); val.placeOnlyForTowers = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RedeployModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_00d7: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Expected O, but got Unknown //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Expected O, but got Unknown //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011d: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RedeployModel val = (RedeployModel)((ModByteLoader)this).m[i + start]; val.selectionObjectPath = ModContent.CreatePrefabReference(br.ReadString()); val.isSelectableGameObject = ModContent.CreatePrefabReference(br.ReadString()); val.effectOnRedeploy = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSuspendFrames = br.ReadInt32(); val.helperMessageLocsKey = (br.ReadBoolean() ? null : br.ReadString()); val.helperMessageInvalidLocsKey = (br.ReadBoolean() ? null : br.ReadString()); val.activateSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.pickupSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dropOffSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isDoorGunnerActive = br.ReadBoolean(); } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_FilterAllModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllModel val = (FilterAllModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_KeepInBoundsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { KeepInBoundsModel val = (KeepInBoundsModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateProjectileOnExpireModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExpireModel val = (CreateProjectileOnExpireModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useRotation = br.ReadBoolean(); val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_CreateSoundOnPickupModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnPickupModel val = (CreateSoundOnPickupModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PickupModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("delay", (BindingFlags)60); for (int i = 0; i < count; i++) { PickupModel val2 = (PickupModel)((ModByteLoader)this).m[i + start]; val2.collectRadius = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.isCamoPickup = br.ReadBoolean(); } } private void Set_v_CashModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CashModel val = (CashModel)((ModByteLoader)this).m[i + start]; val.minimum = br.ReadSingle(); val.maximum = br.ReadSingle(); val.bonusMultiplier = br.ReadSingle(); val.salvage = br.ReadSingle(); val.noTransformCash = br.ReadBoolean(); val.distributeSalvage = br.ReadBoolean(); val.forceCreateProjectile = br.ReadBoolean(); val.isDoubleable = br.ReadBoolean(); val.distributeBonusIncome = br.ReadBoolean(); val.emittedByCashEarnedMultiplier = br.ReadSingle(); val.isPowerCash = br.ReadBoolean(); } } private void Set_v_CreateTextEffectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateTextEffectModel val = (CreateTextEffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.useTowerPosition = br.ReadBoolean(); } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_AngleToMapCenterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AngleToMapCenterModel val = (AngleToMapCenterModel)((ModByteLoader)this).m[i + start]; val.range = br.ReadSingle(); val.offset = br.ReadSingle(); } } private void Set_v_CreateSoundOnProjectileCreatedModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCreatedModel val = (CreateSoundOnProjectileCreatedModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.type = (br.ReadBoolean() ? null : br.ReadString()); val.altType = (br.ReadBoolean() ? null : br.ReadString()); val.projectileId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_LivesModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LivesModel val = (LivesModel)((ModByteLoader)this).m[i + start]; val.minimum = br.ReadSingle(); val.maximum = br.ReadSingle(); val.salvage = br.ReadSingle(); } } private void Set_v_ActivateAbilitiesOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ActivateAbilitiesOnAbilityModel val = (ActivateAbilitiesOnAbilityModel)((ModByteLoader)this).m[i + start]; val.abilityToFind = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FindDeploymentLocationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FindDeploymentLocationModel val = (FindDeploymentLocationModel)((ModByteLoader)this).m[i + start]; val.searchRadius = br.ReadSingle(); val.pointDistance = br.ReadSingle(); val.towerModel = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TowerExpireModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TowerExpireModel val2 = (TowerExpireModel)((ModByteLoader)this).m[i + start]; val2.expireOnRoundComplete = br.ReadBoolean(); val2.expireOnDefeatScreen = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.rounds = br.ReadInt32(); } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SavedSubTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SavedSubTowerModel val = (SavedSubTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_CreateTowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateTowerModel val = (CreateTowerModel)((ModByteLoader)this).m[i + start]; val.tower = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val.height = br.ReadSingle(); val.positionAtTarget = br.ReadBoolean(); val.destroySubTowersOnCreateNewTower = br.ReadBoolean(); val.useProjectileRotation = br.ReadBoolean(); val.useParentTargetPriority = br.ReadBoolean(); val.carryMutatorsFromDestroyedTower = br.ReadBoolean(); } } private void Set_v_UsePresetTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { UsePresetTargetModel val = (UsePresetTargetModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ResetRateOnInitialiseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ResetRateOnInitialiseModel val = (ResetRateOnInitialiseModel)((ModByteLoader)this).m[i + start]; val.weaponModel = (WeaponModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SetTriggerOnAirUnitFireModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SetTriggerOnAirUnitFireModel val = (SetTriggerOnAirUnitFireModel)((ModByteLoader)this).m[i + start]; val.triggerState = br.ReadInt32(); } } private void Set_v_RandomEmissionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomEmissionModel val = (RandomEmissionModel)((ModByteLoader)this).m[i + start]; val.angle = br.ReadSingle(); val.count = br.ReadInt32(); val.startOffset = br.ReadSingle(); val.useSpeedMultiplier = br.ReadBoolean(); val.speedMultiplierMin = br.ReadSingle(); val.speedMultiplierMax = br.ReadSingle(); val.ejectPointRandomness = br.ReadSingle(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_PrioritiseRotationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PrioritiseRotationModel val = (PrioritiseRotationModel)((ModByteLoader)this).m[i + start]; } } protected override TowerModel Load(byte[] bytes) { //IL_0cfa: Unknown result type (might be due to invalid IL or missing references) //IL_0d01: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RectangleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionWithOffsetsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ThrowMarkerOffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FireFromAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AnimateAirUnitOnFireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FollowTouchSettingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LockInPlaceSettingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PatrolPointsSettingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TrackTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForBloonTypeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCollisionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MoabShoveZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_HeliMovementModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterMutatedTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WindModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveMutatorsFromBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CollideExtraPierceReductionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_IgnoreThrowMarkerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ComancheDefenceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreditPopsToParentTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PursuitSettingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SyncTargetPriorityWithSubTowersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RedeployModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_KeepInBoundsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnPickupModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PickupModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CashModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateTextEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AngleToMapCenterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCreatedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LivesModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAbilitiesOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FindDeploymentLocationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TowerExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SavedSubTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UsePresetTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ResetRateOnInitialiseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SetTriggerOnAirUnitFireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PrioritiseRotationModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class IceMonkeyLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "IceMonkeys.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SwitchTargetSupplierOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SwitchTargetSupplierOnUpgradeModel val = (SwitchTargetSupplierOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.targetSupplierName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_FreezeNearbyWaterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FreezeNearbyWaterModel val = (FreezeNearbyWaterModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); val.areaHeightOffset = br.ReadSingle(); val.freezeAsset = ModContent.CreatePrefabReference(br.ReadString()); val.displayPriority = br.ReadInt32(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_FilterOutTagModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutTagModel val = (FilterOutTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.disableWhenSupportMutatorIDs = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterOveridingMutatedTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOveridingMutatedTargetModel val = (FilterOveridingMutatedTargetModel)((ModByteLoader)this).m[i + start]; val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.mutationOverideOrder = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.highestPriorityMutationId = (br.ReadBoolean() ? null : br.ReadString()); val.defaultMutationId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FilterBloonIfDamageTypeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterBloonIfDamageTypeModel val = (FilterBloonIfDamageTypeModel)((ModByteLoader)this).m[i + start]; val.ifCantHitBloonProperties = (BloonProperties)br.ReadInt32(); val.damageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FreezeModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Expected O, but got Unknown //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { FreezeModel val2 = (FreezeModel)((ModByteLoader)this).m[i + start]; val2.speed = br.ReadSingle(); val2.layers = br.ReadInt32(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.percentChanceToFreeze = br.ReadSingle(); val2.enablePercentChanceToFreeze = br.ReadBoolean(); val2.damageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.canFreezeMoabs = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.growBlockModel = (GrowBlockModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.applyAfterDamage = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_GrowBlockModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { GrowBlockModel val = (GrowBlockModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_CreateEffectOnContactModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnContactModel val = (CreateEffectOnContactModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_CreateSoundOnProjectileCreatedModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCreatedModel val = (CreateSoundOnProjectileCreatedModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.type = (br.ReadBoolean() ? null : br.ReadString()); val.altType = (br.ReadBoolean() ? null : br.ReadString()); val.projectileId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_LinkProjectileRadiusToTowerRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LinkProjectileRadiusToTowerRangeModel val = (LinkProjectileRadiusToTowerRangeModel)((ModByteLoader)this).m[i + start]; val.projectileModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.baseTowerRange = br.ReadSingle(); val.projectileRadiusOffset = br.ReadSingle(); val.displayRadius = br.ReadSingle(); } } private void Set_v_LinkDisplayScaleToTowerRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LinkDisplayScaleToTowerRangeModel val = (LinkDisplayScaleToTowerRangeModel)((ModByteLoader)this).m[i + start]; val.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val.baseTowerRange = br.ReadSingle(); val.displayRadius = br.ReadSingle(); val.hideIfAttackPausedId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_SlowBloonsZoneModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0103: Unknown result type (might be due to invalid IL or missing references) //IL_010d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SlowBloonsZoneModel val = (SlowBloonsZoneModel)((ModByteLoader)this).m[i + start]; val.zoneRadius = br.ReadSingle(); val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.speedScale = br.ReadSingle(); val.speedChange = br.ReadSingle(); val.bindRadiusToTowerRange = br.ReadBoolean(); val.radiusOffset = br.ReadSingle(); val.bloonTag = (br.ReadBoolean() ? null : br.ReadString()); val.bloonTags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.inclusive = br.ReadBoolean(); } } private void Set_v_FilterMoabModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterMoabModel val = (FilterMoabModel)((ModByteLoader)this).m[i + start]; val.flip = br.ReadBoolean(); } } private void Set_v_AddBehaviorToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBehaviorToBloonModel val2 = (AddBehaviorToBloonModel)((ModByteLoader)this).m[i + start]; val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.layers = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isUnique = br.ReadBoolean(); val2.lastAppliesFirst = br.ReadBoolean(); val2.collideThisFrame = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.glueLevel = br.ReadInt32(); val2.applyOnlyIfDamaged = br.ReadBoolean(); val2.stackCount = br.ReadInt32(); val2.dontCopy = br.ReadBoolean(); val2.parentDamageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_BloonBehaviorModelWithTowerTracking_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModelWithTowerTracking val = (BloonBehaviorModelWithTowerTracking)((ModByteLoader)this).m[i + start]; } } private void Set_v_CarryProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); for (int i = 0; i < count; i++) { CarryProjectileModel val = (CarryProjectileModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterMutatedTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterMutatedTargetModel val = (FilterMutatedTargetModel)((ModByteLoader)this).m[i + start]; val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.mutationIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.inverse = br.ReadBoolean(); } } private void Set_v_ClearHitBloonsModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); for (int i = 0; i < count; i++) { ClearHitBloonsModel val2 = (ClearHitBloonsModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_RemoveMutatorsFromBloonModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveMutatorsFromBloonModel val = (RemoveMutatorsFromBloonModel)((ModByteLoader)this).m[i + start]; val.key = (br.ReadBoolean() ? null : br.ReadString()); val.keys = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.mutatorIds = (br.ReadBoolean() ? null : br.ReadString()); val.mutatorIdList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SlowModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SlowModifierForTagModel val = (SlowModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.slowId = (br.ReadBoolean() ? null : br.ReadString()); val.slowMultiplier = br.ReadSingle(); val.resetToUnmodified = br.ReadBoolean(); val.preventMutation = br.ReadBoolean(); val.lifespanOverride = br.ReadSingle(); val.makeNotTag = br.ReadBoolean(); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_AddHeatToBloonModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AddHeatToBloonModel val = (AddHeatToBloonModel)((ModByteLoader)this).m[i + start]; val.heatAmount = br.ReadSingle(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_FreezeModifierForTagsModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FreezeModifierForTagsModel val = (FreezeModifierForTagsModel)((ModByteLoader)this).m[i + start]; val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.freezeId = (br.ReadBoolean() ? null : br.ReadString()); val.freezeTimeMultiplier = br.ReadSingle(); val.resetToUnmodified = br.ReadBoolean(); val.preventMutation = br.ReadBoolean(); } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_MultiEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { MultiEmissionModel val = (MultiEmissionModel)((ModByteLoader)this).m[i + start]; val.secondaryProjectileModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DamageModifierForBloonStateModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForBloonStateModel val = (DamageModifierForBloonStateModel)((ModByteLoader)this).m[i + start]; val.bloonState = (br.ReadBoolean() ? null : br.ReadString()); val.bloonStates = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAdditive = br.ReadSingle(); val.mustIncludeAllStates = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.mustBeModified = br.ReadBoolean(); } } private void Set_v_AbilityBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorBuffModel val = (AbilityBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.showBuffIcon = br.ReadBoolean(); val.isGlobal = br.ReadBoolean(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_ActivateRateSupportZoneModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Expected O, but got Unknown Set_v_AbilityBehaviorBuffModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateRateSupportZoneModel val2 = (ActivateRateSupportZoneModel)((ModByteLoader)this).m[i + start]; val2.range = br.ReadSingle(); val2.rateModifier = br.ReadSingle(); val2.maxNumTowersModified = br.ReadSingle(); val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val2.isUnique = br.ReadBoolean(); val2.canEffectThisTower = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.useTowerRange = br.ReadBoolean(); val2.oneShotInRange = br.ReadBoolean(); } } private void Set_v_TowerFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { TowerFilterModel val = (TowerFilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInBaseTowerIdModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerFilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInBaseTowerIdModel val = (FilterInBaseTowerIdModel)((ModByteLoader)this).m[i + start]; val.baseIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_FilterFrozenBloonsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterFrozenBloonsModel val = (FilterFrozenBloonsModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_SlowModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("multiplier", (BindingFlags)60); for (int i = 0; i < count; i++) { SlowModel val2 = (SlowModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.layers = br.ReadInt32(); val2.overlayLayer = br.ReadInt32(); val2.glueLevel = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.dontRefreshDuration = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.removeMutatorIfNotMatching = br.ReadBoolean(); val2.matchLayersWithDamage = br.ReadBoolean(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.countGlueAchievement = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_TargetCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCamoModel val = (TargetCamoModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetFirstPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstPrioCamoModel val = (TargetFirstPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastPrioCamoModel val = (TargetLastPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetClosePrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetClosePrioCamoModel val = (TargetClosePrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongPrioCamoModel val = (TargetStrongPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_EmitOnPopModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); for (int i = 0; i < count; i++) { EmitOnPopModel val = (EmitOnPopModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.pierceOverride = br.ReadSingle(); val.ignoreSameFrameDegrade = br.ReadBoolean(); } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } private void Set_v_RemoveBloonModifiersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveBloonModifiersModel val = (RemoveBloonModifiersModel)((ModByteLoader)this).m[i + start]; val.cleanseRegen = br.ReadBoolean(); val.cleanseCamo = br.ReadBoolean(); val.cleanseLead = br.ReadBoolean(); val.cleanseFortified = br.ReadBoolean(); val.cleanseOnlyIfDamaged = br.ReadBoolean(); val.bloonTagExcludeList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonTagExplicitList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RemoveDamageTypeModifierModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { RemoveDamageTypeModifierModel val2 = (RemoveDamageTypeModifierModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.layers = br.ReadInt32(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.removeAll = br.ReadBoolean(); val2.bloonPropertiesToRemove = (BloonProperties)br.ReadInt32(); } } private void Set_v_AddBonusDamagePerHitToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0123: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBonusDamagePerHitToBloonModel val2 = (AddBonusDamagePerHitToBloonModel)((ModByteLoader)this).m[i + start]; val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.priority = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.perHitDamageAddition = br.ReadSingle(); val2.layers = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.lastAppliesFirst = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.overlayType = (br.ReadBoolean() ? null : br.ReadString()); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; } } protected override TowerModel Load(byte[] bytes) { //IL_0b26: Unknown result type (might be due to invalid IL or missing references) //IL_0b2d: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SwitchTargetSupplierOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FreezeNearbyWaterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOveridingMutatedTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterBloonIfDamageTypeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FreezeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_GrowBlockModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCreatedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LinkProjectileRadiusToTowerRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LinkDisplayScaleToTowerRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowBloonsZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterMoabModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CarryProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterMutatedTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ClearHitBloonsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveMutatorsFromBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddHeatToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FreezeModifierForTagsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MultiEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForBloonStateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateRateSupportZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInBaseTowerIdModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterFrozenBloonsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetClosePrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmitOnPopModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveBloonModifiersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveDamageTypeModifierModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBonusDamagePerHitToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class MermonkeyLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "Mermonkeys.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TowerSet_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); TowerSet[] array = (TowerSet[])(object)new TowerSet[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (TowerSet)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_PlacementBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PlacementBehaviorModel val = (PlacementBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_PlacementAreaTypeRangeBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_PlacementBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PlacementAreaTypeRangeBuffModel val = (PlacementAreaTypeRangeBuffModel)((ModByteLoader)this).m[i + start]; val.rangeMultiplier = br.ReadSingle(); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PlayAnimationIndexModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PlayAnimationIndexModel val = (PlayAnimationIndexModel)((ModByteLoader)this).m[i + start]; val.placeAnimation = br.ReadInt32(); val.upgradeAnimation = br.ReadInt32(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_FilterBloonIfDamageTypeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterBloonIfDamageTypeModel val = (FilterBloonIfDamageTypeModel)((ModByteLoader)this).m[i + start]; val.ifCantHitBloonProperties = (BloonProperties)br.ReadInt32(); val.damageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ScaleDamageWithTimeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { ScaleDamageWithTimeModel val = (ScaleDamageWithTimeModel)((ModByteLoader)this).m[i + start]; val.maxDamage = br.ReadSingle(); val.scalePerSecond = br.ReadSingle(); val.baseDamage = br.ReadSingle(); } } private void Set_v_ScaleProjectileOverTimeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006b: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Expected O, but got Unknown //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ScaleProjectileOverTimeModel val = (ScaleProjectileOverTimeModel)((ModByteLoader)this).m[i + start]; val.baseScale = br.ReadSingle(); val.maxScale = br.ReadSingle(); val.scalePerSecond = br.ReadSingle(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.bonusProjectileModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.effectOffset = br.ReadSingle(); } } private void Set_v_DamageModifierForBloonStateModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForBloonStateModel val = (DamageModifierForBloonStateModel)((ModByteLoader)this).m[i + start]; val.bloonState = (br.ReadBoolean() ? null : br.ReadString()); val.bloonStates = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAdditive = br.ReadSingle(); val.mustIncludeAllStates = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.mustBeModified = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FreezeModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Expected O, but got Unknown //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { FreezeModel val2 = (FreezeModel)((ModByteLoader)this).m[i + start]; val2.speed = br.ReadSingle(); val2.layers = br.ReadInt32(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.percentChanceToFreeze = br.ReadSingle(); val2.enablePercentChanceToFreeze = br.ReadBoolean(); val2.damageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.canFreezeMoabs = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.growBlockModel = (GrowBlockModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.applyAfterDamage = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_GrowBlockModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { GrowBlockModel val = (GrowBlockModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FreezeModifierForTagsModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FreezeModifierForTagsModel val = (FreezeModifierForTagsModel)((ModByteLoader)this).m[i + start]; val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.freezeId = (br.ReadBoolean() ? null : br.ReadString()); val.freezeTimeMultiplier = br.ReadSingle(); val.resetToUnmodified = br.ReadBoolean(); val.preventMutation = br.ReadBoolean(); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } private void Set_v_TrackTargetModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("turnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { TrackTargetModel val2 = (TrackTargetModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.trackNewTargets = br.ReadBoolean(); val2.constantlyAquireNewTarget = br.ReadBoolean(); val2.maxSeekAngle = br.ReadSingle(); val2.ignoreSeekAngle = br.ReadBoolean(); val2.overrideRotation = br.ReadBoolean(); val2.useLifetimeAsDistance = br.ReadBoolean(); val2.expireOnContactTarget = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CreateProjectileOnExhaustPierceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustPierceModel val = (CreateProjectileOnExhaustPierceModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.pierceInterval = br.ReadSingle(); val.count = br.ReadInt32(); val.minimumTimeDifferenceInFrames = br.ReadInt32(); val.destroyProjectile = br.ReadBoolean(); val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.displayLifetime = br.ReadSingle(); val.displayFullscreen = br.ReadBoolean(); val.useBloonPosition = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_SelfStackingSupportCompoundingModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { SelfStackingSupportCompoundingModel val = (SelfStackingSupportCompoundingModel)((ModByteLoader)this).m[i + start]; val.maxStacks = br.ReadInt32(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TowerBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorBuffModel val = (TowerBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.isGlobalRange = br.ReadBoolean(); } } private void Set_v_SupportStackingRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SelfStackingSupportCompoundingModel_Fields(start, count); for (int i = 0; i < count; i++) { SupportStackingRangeModel val = (SupportStackingRangeModel)((ModByteLoader)this).m[i + start]; val.rangeMultiplier = br.ReadSingle(); } } private void Set_v_TowerFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { TowerFilterModel val = (TowerFilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInBaseTowerIdModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerFilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInBaseTowerIdModel val = (FilterInBaseTowerIdModel)((ModByteLoader)this).m[i + start]; val.baseIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterInTowerTiersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerFilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInTowerTiersModel val = (FilterInTowerTiersModel)((ModByteLoader)this).m[i + start]; val.path1MinTier = br.ReadInt32(); val.path1MaxTier = br.ReadInt32(); val.path2MinTier = br.ReadInt32(); val.path2MaxTier = br.ReadInt32(); val.path3MinTier = br.ReadInt32(); val.path3MaxTier = br.ReadInt32(); } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_LinkProjectileRadiusToTowerRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LinkProjectileRadiusToTowerRangeModel val = (LinkProjectileRadiusToTowerRangeModel)((ModByteLoader)this).m[i + start]; val.projectileModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.baseTowerRange = br.ReadSingle(); val.projectileRadiusOffset = br.ReadSingle(); val.displayRadius = br.ReadSingle(); } } private void Set_v_FilterOutTagModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutTagModel val = (FilterOutTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.disableWhenSupportMutatorIDs = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TranceBloonModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TranceBloonModel val = (TranceBloonModel)((ModByteLoader)this).m[i + start]; val.speedMultiplier = br.ReadSingle(); val.moabOrbitSpeed = br.ReadSingle(); val.duration = br.ReadSingle(); val.orbitRadius = br.ReadSingle(); val.radiusBloonSizeMultiplier = br.ReadSingle(); val.cooldown = br.ReadSingle(); val.fakeDamage = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val.maxDotDamage = br.ReadInt32(); } } private void Set_v_CreateEffectOnExhaustedModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustedModel val = (CreateEffectOnExhaustedModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.randomRotation = br.ReadBoolean(); } } private void Set_v_RefreshPierceModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); for (int i = 0; i < count; i++) { RefreshPierceModel val2 = (RefreshPierceModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.isBuffedByRate = br.ReadBoolean(); } } private void Set_v_ClearHitBloonsModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); for (int i = 0; i < count; i++) { ClearHitBloonsModel val2 = (ClearHitBloonsModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_DestroyProjectileIfTowerDestroyedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DestroyProjectileIfTowerDestroyedModel val = (DestroyProjectileIfTowerDestroyedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CollideExtraPierceReductionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CollideExtraPierceReductionModel val = (CollideExtraPierceReductionModel)((ModByteLoader)this).m[i + start]; val.bloonTag = (br.ReadBoolean() ? null : br.ReadString()); val.extraAmount = br.ReadInt32(); val.destroyProjectileIfPierceNotEnough = br.ReadBoolean(); } } private void Set_v_RemoveBloonModifiersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveBloonModifiersModel val = (RemoveBloonModifiersModel)((ModByteLoader)this).m[i + start]; val.cleanseRegen = br.ReadBoolean(); val.cleanseCamo = br.ReadBoolean(); val.cleanseLead = br.ReadBoolean(); val.cleanseFortified = br.ReadBoolean(); val.cleanseOnlyIfDamaged = br.ReadBoolean(); val.bloonTagExcludeList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonTagExplicitList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_LinkDisplayScaleToTowerRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LinkDisplayScaleToTowerRangeModel val = (LinkDisplayScaleToTowerRangeModel)((ModByteLoader)this).m[i + start]; val.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val.baseTowerRange = br.ReadSingle(); val.displayRadius = br.ReadSingle(); val.hideIfAttackPausedId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_WeaponRateMinModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponRateMinModel val = (WeaponRateMinModel)((ModByteLoader)this).m[i + start]; val.min = br.ReadSingle(); } } private void Set_v_PauseOtherAttacksModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PauseOtherAttacksModel val = (PauseOtherAttacksModel)((ModByteLoader)this).m[i + start]; val.duration = br.ReadSingle(); val.durationFrames = br.ReadInt32(); } } private void Set_v_ZeroRotationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ZeroRotationModel val = (ZeroRotationModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateSoundOnProjectileCreatedModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCreatedModel val = (CreateSoundOnProjectileCreatedModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.type = (br.ReadBoolean() ? null : br.ReadString()); val.altType = (br.ReadBoolean() ? null : br.ReadString()); val.projectileId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_FilterWithTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagModel val = (FilterWithTagModel)((ModByteLoader)this).m[i + start]; val.moabTag = br.ReadBoolean(); val.camoTag = br.ReadBoolean(); val.growTag = br.ReadBoolean(); val.fortifiedTag = br.ReadBoolean(); val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.inclusive = br.ReadBoolean(); val.hasMoabTag = br.ReadBoolean(); } } private void Set_v_TranceTotemSpawnerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TranceTotemSpawnerModel val = (TranceTotemSpawnerModel)((ModByteLoader)this).m[i + start]; val.tower = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val.withinTowerRange = br.ReadBoolean(); val.targetDisplay = ModContent.CreatePrefabReference(br.ReadString()); val.targetDisplayInvalid = ModContent.CreatePrefabReference(br.ReadString()); val.spawnCooldown = br.ReadSingle(); } } private void Set_v_TowerExpireOnParentDestroyedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerExpireOnParentDestroyedModel val = (TowerExpireOnParentDestroyedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_SavedSubTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SavedSubTowerModel val = (SavedSubTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_SelectParentOnSelectedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SelectParentOnSelectedModel val = (SelectParentOnSelectedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterWithTagsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagsModel val = (FilterWithTagsModel)((ModByteLoader)this).m[i + start]; val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.inclusive = br.ReadBoolean(); } } private void Set_v_CreditPopsToParentTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreditPopsToParentTowerModel val = (CreditPopsToParentTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnParentOnAttackModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnParentOnAttackModel val = (CreateEffectOnParentOnAttackModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.exitEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.cancelIfTowerHidden = br.ReadBoolean(); } } private void Set_v_DrawSubtowerRangeCircleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DrawSubtowerRangeCircleModel val = (DrawSubtowerRangeCircleModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_SupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SupportModel val = (SupportModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.isGlobal = br.ReadBoolean(); val.isCustomRadius = br.ReadBoolean(); val.customRadius = br.ReadSingle(); val.appliesToOwningTower = br.ReadBoolean(); val.showBuffIcon = br.ReadBoolean(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.onlyAffectParagon = br.ReadBoolean(); } } private void Set_v_RangeSupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { RangeSupportModel val = (RangeSupportModel)((ModByteLoader)this).m[i + start]; val.multiplier = br.ReadSingle(); val.additive = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); val.maxStacks = br.ReadInt32(); } } private void Set_v_FilterInSetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerFilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInSetModel val = (FilterInSetModel)((ModByteLoader)this).m[i + start]; val.towerSets = Il2CppStructArray.op_Implicit((TowerSet[])((ModByteLoader)this).m[br.ReadInt32()]); val.towerSet = (TowerSet)br.ReadInt32(); } } private void Set_v_AbilityCooldownScaleSupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityCooldownScaleSupportModel val = (AbilityCooldownScaleSupportModel)((ModByteLoader)this).m[i + start]; val.isUnique = br.ReadBoolean(); val.abilityCooldownSpeedScale = br.ReadSingle(); val.affectsOnlyWater = br.ReadBoolean(); val.mutatorPriority = br.ReadInt32(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_PierceSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { PierceSupportModel val = (PierceSupportModel)((ModByteLoader)this).m[i + start]; val.pierce = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); } } private void Set_v_FilterTowerParentModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerFilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterTowerParentModel val = (FilterTowerParentModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_AddHeatToBloonModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AddHeatToBloonModel val = (AddHeatToBloonModel)((ModByteLoader)this).m[i + start]; val.heatAmount = br.ReadSingle(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_MutateRemoveAllAttacksOnAbilityActivateModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { MutateRemoveAllAttacksOnAbilityActivateModel val2 = (MutateRemoveAllAttacksOnAbilityActivateModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.excludeAbilityAttacks = br.ReadBoolean(); } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_RandomEmissionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomEmissionModel val = (RandomEmissionModel)((ModByteLoader)this).m[i + start]; val.angle = br.ReadSingle(); val.count = br.ReadInt32(); val.startOffset = br.ReadSingle(); val.useSpeedMultiplier = br.ReadBoolean(); val.speedMultiplierMin = br.ReadSingle(); val.speedMultiplierMax = br.ReadSingle(); val.ejectPointRandomness = br.ReadSingle(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_ProjectileBlockerCollisionReboundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBlockerCollisionReboundModel val = (ProjectileBlockerCollisionReboundModel)((ModByteLoader)this).m[i + start]; val.clearCollidedWith = br.ReadBoolean(); val.changeRotation = br.ReadBoolean(); } } private void Set_v_TargetSelectedPointOrDefaultModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSelectedPointOrDefaultModel val = (TargetSelectedPointOrDefaultModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.customName = (br.ReadBoolean() ? null : br.ReadString()); val.lockToInsideTowerRange = br.ReadBoolean(); val.startWithClosestTrackPoint = br.ReadBoolean(); val.displayInvalid = ModContent.CreatePrefabReference(br.ReadString()); val.alwaysShowTarget = br.ReadBoolean(); val.projectileToExpireOnTargetChangeModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTerrainHeight = br.ReadBoolean(); } } private void Set_v_CreateEffectWhileAttackingModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectWhileAttackingModel val = (CreateEffectWhileAttackingModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.exitEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_MapBorderReboundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { MapBorderReboundModel val = (MapBorderReboundModel)((ModByteLoader)this).m[i + start]; val.changeRotation = br.ReadBoolean(); val.clearCollidedWith = br.ReadBoolean(); } } private void Set_v_SlowModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("multiplier", (BindingFlags)60); for (int i = 0; i < count; i++) { SlowModel val2 = (SlowModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.layers = br.ReadInt32(); val2.overlayLayer = br.ReadInt32(); val2.glueLevel = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.dontRefreshDuration = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.removeMutatorIfNotMatching = br.ReadBoolean(); val2.matchLayersWithDamage = br.ReadBoolean(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.countGlueAchievement = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_EmissionBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionBehaviorModel val = (EmissionBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionRotationOffDisplayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionRotationOffDisplayModel val = (EmissionRotationOffDisplayModel)((ModByteLoader)this).m[i + start]; val.offsetRotation = br.ReadInt32(); } } private void Set_v_FilterAllModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllModel val = (FilterAllModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_InstantModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { InstantModel val = (InstantModel)((ModByteLoader)this).m[i + start]; val.destroyIfInvalid = br.ReadBoolean(); val.ignoreTargetZ = br.ReadBoolean(); val.dontFollowTarget = br.ReadBoolean(); } } private void Set_v_CreateProjectileOnIntervalModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_010b: Unknown result type (might be due to invalid IL or missing references) //IL_0115: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnIntervalModel val = (CreateProjectileOnIntervalModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.intervalFrames = br.ReadInt32(); val.onlyIfHasTarget = br.ReadBoolean(); val.range = br.ReadSingle(); val.targetType.id = br.ReadString(); val.targetType.actionOnCreate = br.ReadBoolean(); val.isBuffedByRate = br.ReadBoolean(); val.useRawWeaponRate = br.ReadBoolean(); val.onlyEmitOnce = br.ReadBoolean(); val.effect = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_WeaponRateAnimationSpeedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponRateAnimationSpeedModel val = (WeaponRateAnimationSpeedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterTargetAngleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterTargetAngleModel val = (FilterTargetAngleModel)((ModByteLoader)this).m[i + start]; val.fieldOfView = br.ReadSingle(); val.baseTowerRotationOffset = br.ReadSingle(); val.ignoreTowerRotation = br.ReadBoolean(); } } private void Set_v_RotateToTargetAttackOffsetModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_RotateToTargetModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("ignoreParentRotationTime", (BindingFlags)60); for (int i = 0; i < count; i++) { RotateToTargetAttackOffsetModel val2 = (RotateToTargetAttackOffsetModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.startRotation = br.ReadSingle(); val2.alwaysIgnoreParentRotation = br.ReadBoolean(); } } private void Set_v_PiercePercentageSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { PiercePercentageSupportModel val = (PiercePercentageSupportModel)((ModByteLoader)this).m[i + start]; val.percentIncrease = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); val.priority = br.ReadInt32(); } } private void Set_v_SlowModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SlowModifierForTagModel val = (SlowModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.slowId = (br.ReadBoolean() ? null : br.ReadString()); val.slowMultiplier = br.ReadSingle(); val.resetToUnmodified = br.ReadBoolean(); val.preventMutation = br.ReadBoolean(); val.lifespanOverride = br.ReadSingle(); val.makeNotTag = br.ReadBoolean(); } } private void Set_v_CreateNearbyWaterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateNearbyWaterModel val = (CreateNearbyWaterModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); val.areaHeightOffset = br.ReadSingle(); val.freezeAsset = ModContent.CreatePrefabReference(br.ReadString()); } } protected override TowerModel Load(byte[] bytes) { //IL_0eb1: Unknown result type (might be due to invalid IL or missing references) //IL_0eb8: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); Read_a_TowerSet_Array(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PlacementAreaTypeRangeBuffModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PlayAnimationIndexModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterBloonIfDamageTypeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ScaleDamageWithTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ScaleProjectileOverTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForBloonStateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FreezeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_GrowBlockModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FreezeModifierForTagsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TrackTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustPierceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SupportStackingRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInBaseTowerIdModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInTowerTiersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LinkProjectileRadiusToTowerRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TranceBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RefreshPierceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ClearHitBloonsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DestroyProjectileIfTowerDestroyedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CollideExtraPierceReductionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveBloonModifiersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LinkDisplayScaleToTowerRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponRateMinModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PauseOtherAttacksModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ZeroRotationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCreatedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TranceTotemSpawnerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TowerExpireOnParentDestroyedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SavedSubTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SelectParentOnSelectedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreditPopsToParentTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnParentOnAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DrawSubtowerRangeCircleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RangeSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInSetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityCooldownScaleSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PierceSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterTowerParentModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddHeatToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MutateRemoveAllAttacksOnAbilityActivateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileBlockerCollisionReboundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetSelectedPointOrDefaultModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectWhileAttackingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MapBorderReboundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionRotationOffDisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_InstantModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnIntervalModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponRateAnimationSpeedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterTargetAngleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetAttackOffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PiercePercentageSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateNearbyWaterModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class MonkeyAceLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "MonkeyAces.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RectangleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { RectangleFootprintModel val = (RectangleFootprintModel)((ModByteLoader)this).m[i + start]; val.xWidth = br.ReadSingle(); val.yWidth = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_AttackAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_AttackModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackAirUnitModel val = (AttackAirUnitModel)((ModByteLoader)this).m[i + start]; val.displayAirUnitModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_AdoraTrackTargetModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AdoraTrackTargetModel val2 = (AdoraTrackTargetModel)((ModByteLoader)this).m[i + start]; val2.rotation = br.ReadSingle(); val2.minimumSpeed = br.ReadSingle(); val2.maximumSpeed = br.ReadSingle(); val2.acceleration = br.ReadSingle(); val2.accelerateInAngle = br.ReadSingle(); val2.startDeceleratingIfAngleGreaterThan = br.ReadSingle(); val2.hasSingleTarget = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FireFromAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FireFromAirUnitModel val = (FireFromAirUnitModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CirclePatternModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { CirclePatternModel val = (CirclePatternModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); val.reverse = br.ReadBoolean(); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.displayCount = br.ReadInt32(); } } private void Set_v_FigureEightPatternModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { FigureEightPatternModel val = (FigureEightPatternModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); val.rotated = br.ReadBoolean(); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.displayCount = br.ReadInt32(); val.useTowerPosition = br.ReadBoolean(); } } private void Set_v_CenterElipsePatternModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { CenterElipsePatternModel val = (CenterElipsePatternModel)((ModByteLoader)this).m[i + start]; val.widthRadius = br.ReadSingle(); val.heightRadius = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); val.reverse = br.ReadBoolean(); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.displayCount = br.ReadInt32(); val.canSelectPoint = br.ReadBoolean(); val.pointDisplay = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EmissionOverTimeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionOverTimeModel val = (EmissionOverTimeModel)((ModByteLoader)this).m[i + start]; val.count = br.ReadInt32(); val.timeBetween = br.ReadSingle(); } } private void Set_v_FilterAllModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllModel val = (FilterAllModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateProjectileOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustFractionModel val = (CreateProjectileOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.fraction = br.ReadSingle(); val.durationfraction = br.ReadSingle(); val.canCreateInBetweenRounds = br.ReadBoolean(); val.collideOnSubProjectile = br.ReadBoolean(); val.passOnCollidedWith = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnProjectileExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileExpireModel val = (CreateSoundOnProjectileExpireModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.limiter = br.ReadInt32(); } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateEffectOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustFractionModel val = (CreateEffectOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.fraction = br.ReadSingle(); val.durationFraction = br.ReadSingle(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FallToGroundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FallToGroundModel val = (FallToGroundModel)((ModByteLoader)this).m[i + start]; val.timeToTake = br.ReadSingle(); val.expireOnContact = br.ReadBoolean(); val.groundOffset = br.ReadSingle(); } } private void Set_v_CheckAirUnitOverTrackModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("futureTime", (BindingFlags)60); for (int i = 0; i < count; i++) { CheckAirUnitOverTrackModel val2 = (CheckAirUnitOverTrackModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_TargetInFrontOfAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetInFrontOfAirUnitModel val = (TargetInFrontOfAirUnitModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_AirUnitModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AirUnitModel val = (AirUnitModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.displayScale = br.ReadSingle(); val.isAirUnitSelectable = br.ReadBoolean(); val.selectableRadius = br.ReadSingle(); val.blocksPlacement = br.ReadBoolean(); val.blockingRadius = br.ReadSingle(); } } private void Set_v_PathMovementModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PathMovementModel val = (PathMovementModel)((ModByteLoader)this).m[i + start]; val.speed = br.ReadSingle(); val.rotation = br.ReadSingle(); val.bankRotation = br.ReadSingle(); val.bankRotationMul = br.ReadSingle(); val.ignoreTargetType = br.ReadBoolean(); val.catchUpSpeed = br.ReadSingle(); val.takeOffTime = br.ReadSingle(); val.takeOffExponent = br.ReadSingle(); val.takeOffAnimTime = br.ReadSingle(); val.takeOffScale = br.ReadSingle(); val.takeOffScaleExponent = br.ReadSingle(); val.takeOffPitch = br.ReadSingle(); val.takeOffPitchExponent = br.ReadSingle(); val.fixedPathSupplierId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionBehaviorModel val = (EmissionBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionRotationOffBloonDirectionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionRotationOffBloonDirectionModel val = (EmissionRotationOffBloonDirectionModel)((ModByteLoader)this).m[i + start]; val.useAirUnitPosition = br.ReadBoolean(); val.dontSetAfterEmit = br.ReadBoolean(); } } private void Set_v_TrackTargetModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("turnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { TrackTargetModel val2 = (TrackTargetModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.trackNewTargets = br.ReadBoolean(); val2.constantlyAquireNewTarget = br.ReadBoolean(); val2.maxSeekAngle = br.ReadSingle(); val2.ignoreSeekAngle = br.ReadBoolean(); val2.overrideRotation = br.ReadBoolean(); val2.useLifetimeAsDistance = br.ReadBoolean(); val2.expireOnContactTarget = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AlternateProjectileModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AlternateProjectileModel val = (AlternateProjectileModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emissionModel = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.interval = br.ReadInt32(); val.alternateAnimation = br.ReadInt32(); val.priority = br.ReadInt32(); } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_CreateSoundOnProjectileCollisionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCollisionModel val = (CreateSoundOnProjectileCollisionModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnContactModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnContactModel val = (CreateEffectOnContactModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetFirstAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstAirUnitModel val = (TargetFirstAirUnitModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseAirUnitModel val = (TargetCloseAirUnitModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastAirUnitModel val = (TargetLastAirUnitModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CreateProjectileOnExpireModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExpireModel val = (CreateProjectileOnExpireModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useRotation = br.ReadBoolean(); val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_GroundZeroBombBuffModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { GroundZeroBombBuffModel val2 = (GroundZeroBombBuffModel)((ModByteLoader)this).m[i + start]; val2.towerMutatorModel = (TowerMutatorModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.damageIncrease = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_SlowModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("multiplier", (BindingFlags)60); for (int i = 0; i < count; i++) { SlowModel val2 = (SlowModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.layers = br.ReadInt32(); val2.overlayLayer = br.ReadInt32(); val2.glueLevel = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.dontRefreshDuration = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.removeMutatorIfNotMatching = br.ReadBoolean(); val2.matchLayersWithDamage = br.ReadBoolean(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.countGlueAchievement = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_EmissionWithOffsetsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionWithOffsetsModel val = (EmissionWithOffsetsModel)((ModByteLoader)this).m[i + start]; val.throwMarkerOffsetModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.projectileCount = br.ReadInt32(); val.rotateProjectileWithTower = br.ReadBoolean(); val.randomRotationCone = br.ReadSingle(); val.spreadProjectilesAcrossMarkers = br.ReadBoolean(); } } private void Set_v_ThrowMarkerOffsetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ThrowMarkerOffsetModel val = (ThrowMarkerOffsetModel)((ModByteLoader)this).m[i + start]; val.ejectX = br.ReadSingle(); val.ejectY = br.ReadSingle(); val.ejectZ = br.ReadSingle(); val.rotation = br.ReadSingle(); } } private void Set_v_FilterWithTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagModel val = (FilterWithTagModel)((ModByteLoader)this).m[i + start]; val.moabTag = br.ReadBoolean(); val.camoTag = br.ReadBoolean(); val.growTag = br.ReadBoolean(); val.fortifiedTag = br.ReadBoolean(); val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.inclusive = br.ReadBoolean(); val.hasMoabTag = br.ReadBoolean(); } } private void Set_v_AccelerateModel_Fields(int start, int count) { //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("acceleration", (BindingFlags)60); FieldInfo field2 = val.GetField("maxSpeed", (BindingFlags)60); FieldInfo field3 = val.GetField("turnRateChange", (BindingFlags)60); FieldInfo field4 = val.GetField("maxTurnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { AccelerateModel val2 = (AccelerateModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field4.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.decelerate = br.ReadBoolean(); } } private void Set_v_TargetStrongAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongAirUnitModel val = (TargetStrongAirUnitModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } protected override TowerModel Load(byte[] bytes) { //IL_09a8: Unknown result type (might be due to invalid IL or missing references) //IL_09af: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RectangleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AdoraTrackTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FireFromAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CirclePatternModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FigureEightPatternModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CenterElipsePatternModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionOverTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FallToGroundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CheckAirUnitOverTrackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetInFrontOfAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PathMovementModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionRotationOffBloonDirectionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TrackTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AlternateProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCollisionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_GroundZeroBombBuffModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionWithOffsetsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ThrowMarkerOffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AccelerateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class MonkeyBoostProLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "MonkeyBoostPros.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_PowerProTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PowerProTowerModel val = (PowerProTowerModel)((ModByteLoader)this).m[i + start]; val.powerId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PlayAnimationIndexModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PlayAnimationIndexModel val = (PlayAnimationIndexModel)((ModByteLoader)this).m[i + start]; val.placeAnimation = br.ReadInt32(); val.upgradeAnimation = br.ReadInt32(); } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_CreateSoundOnMonkeyMoneyActivatedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnMonkeyMoneyActivatedModel val = (CreateSoundOnMonkeyMoneyActivatedModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorBuffModel val = (AbilityBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.showBuffIcon = br.ReadBoolean(); val.isGlobal = br.ReadBoolean(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ActivateRateSupportZoneModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Expected O, but got Unknown Set_v_AbilityBehaviorBuffModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateRateSupportZoneModel val2 = (ActivateRateSupportZoneModel)((ModByteLoader)this).m[i + start]; val2.range = br.ReadSingle(); val2.rateModifier = br.ReadSingle(); val2.maxNumTowersModified = br.ReadSingle(); val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val2.isUnique = br.ReadBoolean(); val2.canEffectThisTower = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.useTowerRange = br.ReadBoolean(); val2.oneShotInRange = br.ReadBoolean(); } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_SupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SupportModel val = (SupportModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.isGlobal = br.ReadBoolean(); val.isCustomRadius = br.ReadBoolean(); val.customRadius = br.ReadSingle(); val.appliesToOwningTower = br.ReadBoolean(); val.showBuffIcon = br.ReadBoolean(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.onlyAffectParagon = br.ReadBoolean(); } } private void Set_v_RateSupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0097: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { RateSupportModel val = (RateSupportModel)((ModByteLoader)this).m[i + start]; val.multiplier = br.ReadSingle(); val.isUnique = br.ReadBoolean(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.priority = br.ReadInt32(); val.buffDisplayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ActivateTowerDamageSupportZoneModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Expected O, but got Unknown Set_v_AbilityBehaviorBuffModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateTowerDamageSupportZoneModel val2 = (ActivateTowerDamageSupportZoneModel)((ModByteLoader)this).m[i + start]; val2.range = br.ReadSingle(); val2.damageIncrease = br.ReadSingle(); val2.maxNumTowersModified = br.ReadSingle(); val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val2.isUnique = br.ReadBoolean(); val2.canEffectThisTower = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val2.replaceImmuneBloonProperties = br.ReadBoolean(); val2.useTowerRange = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ActivateIgnoreStunSupportZoneModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Expected O, but got Unknown //IL_0145: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Expected O, but got Unknown Set_v_AbilityBehaviorBuffModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("stunMutators", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateIgnoreStunSupportZoneModel val2 = (ActivateIgnoreStunSupportZoneModel)((ModByteLoader)this).m[i + start]; val2.range = br.ReadSingle(); val2.maxNumTowersModified = br.ReadSingle(); val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val2.isUnique = br.ReadBoolean(); val2.canEffectThisTower = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.useTowerRange = br.ReadBoolean(); val2.oneShotInRange = br.ReadBoolean(); val2.stunMutators = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ActivateRangeSupportZoneModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorBuffModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateRangeSupportZoneModel val2 = (ActivateRangeSupportZoneModel)((ModByteLoader)this).m[i + start]; val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val2.isUnique = br.ReadBoolean(); val2.multiplier = br.ReadSingle(); val2.additive = br.ReadSingle(); val2.range = br.ReadSingle(); val2.maxNumTowersModified = br.ReadSingle(); val2.canAffectThisTower = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ActivateVisibilitySupportZoneModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown Set_v_AbilityBehaviorBuffModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateVisibilitySupportZoneModel val2 = (ActivateVisibilitySupportZoneModel)((ModByteLoader)this).m[i + start]; val2.range = br.ReadSingle(); val2.maxNumTowersModified = br.ReadSingle(); val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val2.isUnique = br.ReadBoolean(); val2.canEffectThisTower = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.useTowerRange = br.ReadBoolean(); } } private void Set_v_ActivateSpreadSupportZoneModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Expected O, but got Unknown Set_v_AbilityBehaviorBuffModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateSpreadSupportZoneModel val2 = (ActivateSpreadSupportZoneModel)((ModByteLoader)this).m[i + start]; val2.range = br.ReadSingle(); val2.spreadModifier = br.ReadSingle(); val2.maxNumTowersModified = br.ReadSingle(); val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val2.isUnique = br.ReadBoolean(); val2.canEffectThisTower = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.useTowerRange = br.ReadBoolean(); } } private void Set_v_ActivateAttackCollisionSupportZoneModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown Set_v_AbilityBehaviorBuffModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackCollisionSupportZoneModel val2 = (ActivateAttackCollisionSupportZoneModel)((ModByteLoader)this).m[i + start]; val2.range = br.ReadSingle(); val2.maxNumTowersModified = br.ReadSingle(); val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val2.isUnique = br.ReadBoolean(); val2.canEffectThisTower = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.useTowerRange = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } protected override TowerModel Load(byte[] bytes) { //IL_0461: Unknown result type (might be due to invalid IL or missing references) //IL_0468: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PowerProTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PlayAnimationIndexModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnMonkeyMoneyActivatedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateRateSupportZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RateSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateTowerDamageSupportZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateIgnoreStunSupportZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateRangeSupportZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateVisibilitySupportZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateSpreadSupportZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackCollisionSupportZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class MonkeyBuccaneerLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "MonkeyBuccaneers.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Vector3_Array() { //IL_0057: Unknown result type (might be due to invalid IL or missing references) int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TowerSet_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); TowerSet[] array = (TowerSet[])(object)new TowerSet[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (TowerSet)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } private void Set_v_EmissionBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionBehaviorModel val = (EmissionBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionArcRotationOffTowerDirectionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionArcRotationOffTowerDirectionModel val = (EmissionArcRotationOffTowerDirectionModel)((ModByteLoader)this).m[i + start]; val.offsetRotation = br.ReadInt32(); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AddBehaviorToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBehaviorToBloonModel val2 = (AddBehaviorToBloonModel)((ModByteLoader)this).m[i + start]; val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.layers = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isUnique = br.ReadBoolean(); val2.lastAppliesFirst = br.ReadBoolean(); val2.collideThisFrame = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.glueLevel = br.ReadInt32(); val2.applyOnlyIfDamaged = br.ReadBoolean(); val2.stackCount = br.ReadInt32(); val2.dontCopy = br.ReadBoolean(); val2.parentDamageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_BloonBehaviorModelWithTowerTracking_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModelWithTowerTracking val = (BloonBehaviorModelWithTowerTracking)((ModByteLoader)this).m[i + start]; } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageOverTimeModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); FieldInfo field2 = val.GetField("initialDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { DamageOverTimeModel val2 = (DamageOverTimeModel)((ModByteLoader)this).m[i + start]; val2.damage = br.ReadSingle(); val2.payloadCount = br.ReadInt32(); val2.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val2.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val2.displayLifetime = br.ReadSingle(); val2.triggerImmediate = br.ReadBoolean(); val2.rotateEffectWithBloon = br.ReadBoolean(); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.damageOnDestroy = br.ReadBoolean(); val2.overrideDistributionBlocker = br.ReadBoolean(); val2.distributeToChildren = br.ReadBoolean(); val2.damageModifierModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isFireBased = br.ReadBoolean(); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForCashAmountModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForCashAmountModel val = (DamageModifierForCashAmountModel)((ModByteLoader)this).m[i + start]; val.damageMultiplier = br.ReadSingle(); val.damageAdditive = br.ReadSingle(); val.cashThreshold = br.ReadSingle(); val.stackId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FireAlternateWeaponModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FireAlternateWeaponModel val = (FireAlternateWeaponModel)((ModByteLoader)this).m[i + start]; val.weaponId = br.ReadInt32(); } } private void Set_v_FireWhenAlternateWeaponIsReadyModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FireWhenAlternateWeaponIsReadyModel val = (FireWhenAlternateWeaponIsReadyModel)((ModByteLoader)this).m[i + start]; val.weaponId = br.ReadInt32(); } } private void Set_v_FilterTargetAngleFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterTargetAngleFilterModel val = (FilterTargetAngleFilterModel)((ModByteLoader)this).m[i + start]; val.fieldOfView = br.ReadSingle(); val.baseTowerRotationOffset = br.ReadSingle(); val.shareFilterTargets = br.ReadBoolean(); val.minTimeBetweenFilterTargetsFrames = br.ReadInt32(); } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionRotationOffTowerDirectionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionRotationOffTowerDirectionModel val = (EmissionRotationOffTowerDirectionModel)((ModByteLoader)this).m[i + start]; val.offsetRotation = br.ReadInt32(); } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnProjectileCollisionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCollisionModel val = (CreateSoundOnProjectileCollisionModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnContactModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnContactModel val = (CreateEffectOnContactModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_TargetCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCamoModel val = (TargetCamoModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstPrioCamoModel val = (TargetFirstPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastPrioCamoModel val = (TargetLastPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetClosePrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetClosePrioCamoModel val = (TargetClosePrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongPrioCamoModel val = (TargetStrongPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_PerRoundCashBonusTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PerRoundCashBonusTowerModel val = (PerRoundCashBonusTowerModel)((ModByteLoader)this).m[i + start]; val.cashPerRound = br.ReadSingle(); val.cashRoundBonusMultiplier = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.distributeCash = br.ReadBoolean(); } } private void Set_v_MerchantShipModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { MerchantShipModel val = (MerchantShipModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TowerBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorBuffModel val = (TowerBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.isGlobalRange = br.ReadBoolean(); } } private void Set_v_CashbackZoneModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { CashbackZoneModel val = (CashbackZoneModel)((ModByteLoader)this).m[i + start]; val.cashbackZoneMultiplier = br.ReadSingle(); val.cashbackMaxPercent = br.ReadSingle(); val.groupName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStacks = br.ReadInt32(); val.baseIds = (br.ReadBoolean() ? null : br.ReadString()); val.baseIdsArray = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_RotateToDefaultPositionTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToDefaultPositionTowerModel val = (RotateToDefaultPositionTowerModel)((ModByteLoader)this).m[i + start]; val.rotation = br.ReadSingle(); val.onlyOnReachingTier = br.ReadInt32(); } } private void Set_v_EmissionRotationOffDisplayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionRotationOffDisplayModel val = (EmissionRotationOffDisplayModel)((ModByteLoader)this).m[i + start]; val.offsetRotation = br.ReadInt32(); } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_EmissionRotationOffDisplayOnEmitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionRotationOffDisplayOnEmitModel val = (EmissionRotationOffDisplayOnEmitModel)((ModByteLoader)this).m[i + start]; val.offsetRotation = br.ReadInt32(); } } private void Set_v_EmissionArcRotationOffDisplayDirectionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionArcRotationOffDisplayDirectionModel val = (EmissionArcRotationOffDisplayDirectionModel)((ModByteLoader)this).m[i + start]; val.offsetRotation = br.ReadInt32(); } } private void Set_v_TradeEmpireBuffModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { TradeEmpireBuffModel val = (TradeEmpireBuffModel)((ModByteLoader)this).m[i + start]; val.cashPerRoundPerMechantship = br.ReadSingle(); val.cashPerRoundPerFavouredTrades = br.ReadSingle(); val.maxMerchantmanCapBonus = br.ReadInt32(); val.damageBuff = br.ReadInt32(); val.ceramicDamageBuff = br.ReadInt32(); val.moabDamageBuff = br.ReadInt32(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_GrappleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { GrappleEmissionModel val = (GrappleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterAllExceptTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllExceptTargetModel val = (FilterAllExceptTargetModel)((ModByteLoader)this).m[i + start]; val.cantbePaused = br.ReadBoolean(); } } private void Set_v_MoabTakedownModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); for (int i = 0; i < count; i++) { MoabTakedownModel val2 = (MoabTakedownModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.increaseMoabBloonWorth = br.ReadBoolean(); val2.multiplier = br.ReadSingle(); val2.additive = br.ReadSingle(); val2.increaseWorthTextEffectModel = (IncreaseWorthTextEffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.destroyBloonRadius = br.ReadSingle(); val2.displayAtEjectId = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_IncreaseWorthTextEffectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { IncreaseWorthTextEffectModel val = (IncreaseWorthTextEffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.displayFullPayout = br.ReadBoolean(); } } private void Set_v_CreateRopeEffectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateRopeEffectModel val = (CreateRopeEffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.endAssetId = ModContent.CreatePrefabReference(br.ReadString()); val.spriteSpacing = br.ReadSingle(); val.spriteOffset = br.ReadSingle(); val.spriteRadius = br.ReadSingle(); } } private void Set_v_TravelTowardsEmitTowerModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelTowardsEmitTowerModel val2 = (TravelTowardsEmitTowerModel)((ModByteLoader)this).m[i + start]; val2.lockRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.range = br.ReadSingle(); val2.speed = br.ReadSingle(); val2.delayedActivation = br.ReadBoolean(); } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_CreateSoundOnProjectileExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileExpireModel val = (CreateSoundOnProjectileExpireModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.limiter = br.ReadInt32(); } } private void Set_v_LinearTravelModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { LinearTravelModel val2 = (LinearTravelModel)((ModByteLoader)this).m[i + start]; val2.dontDestroyOnTargetLoss = br.ReadBoolean(); val2.forceCollisionOnSnap = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_TargetGrapplableModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetGrapplableModel val = (TargetGrapplableModel)((ModByteLoader)this).m[i + start]; val.grappleEmissionModel = (GrappleEmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSelectable = br.ReadBoolean(); val.hooks = br.ReadInt32(); val.zomgHooksRequired = br.ReadInt32(); val.badHooksRequired = br.ReadInt32(); } } private void Set_v_FilterWithTagsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagsModel val = (FilterWithTagsModel)((ModByteLoader)this).m[i + start]; val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.inclusive = br.ReadBoolean(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ParallelEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { ParallelEmissionModel val = (ParallelEmissionModel)((ModByteLoader)this).m[i + start]; val.spreadLength = br.ReadSingle(); val.yOffset = br.ReadSingle(); val.count = br.ReadInt32(); val.linear = br.ReadBoolean(); val.offsetStart = br.ReadSingle(); } } private void Set_v_SyncTargetPriorityWithSubTowersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0085: Expected O, but got Unknown //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SyncTargetPriorityWithSubTowersModel val = (SyncTargetPriorityWithSubTowersModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.targetTypeMustExist = br.ReadBoolean(); val.ignoreTowersList = (br.ReadBoolean() ? null : br.ReadString()); val.ignoreTowers = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.placeOnlyForTowersList = (br.ReadBoolean() ? null : br.ReadString()); val.placeOnlyForTowers = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateTowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateTowerModel val = (CreateTowerModel)((ModByteLoader)this).m[i + start]; val.tower = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val.height = br.ReadSingle(); val.positionAtTarget = br.ReadBoolean(); val.destroySubTowersOnCreateNewTower = br.ReadBoolean(); val.useProjectileRotation = br.ReadBoolean(); val.useParentTargetPriority = br.ReadBoolean(); val.carryMutatorsFromDestroyedTower = br.ReadBoolean(); } } private void Set_v_TowerExpireOnParentUpgradedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerExpireOnParentUpgradedModel val = (TowerExpireOnParentUpgradedModel)((ModByteLoader)this).m[i + start]; val.parentTowerUpgradeTier = br.ReadInt32(); } } private void Set_v_TowerExpireOnParentDestroyedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerExpireOnParentDestroyedModel val = (TowerExpireOnParentDestroyedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TowerExpireModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TowerExpireModel val2 = (TowerExpireModel)((ModByteLoader)this).m[i + start]; val2.expireOnRoundComplete = br.ReadBoolean(); val2.expireOnDefeatScreen = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.rounds = br.ReadInt32(); } } private void Set_v_CreditPopsToParentTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreditPopsToParentTowerModel val = (CreditPopsToParentTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_IgnoreTowersBlockerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { IgnoreTowersBlockerModel val = (IgnoreTowersBlockerModel)((ModByteLoader)this).m[i + start]; val.filteredTowers = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SavedSubTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SavedSubTowerModel val = (SavedSubTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionWithOffsetsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionWithOffsetsModel val = (EmissionWithOffsetsModel)((ModByteLoader)this).m[i + start]; val.throwMarkerOffsetModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.projectileCount = br.ReadInt32(); val.rotateProjectileWithTower = br.ReadBoolean(); val.randomRotationCone = br.ReadSingle(); val.spreadProjectilesAcrossMarkers = br.ReadBoolean(); } } private void Set_v_ThrowMarkerOffsetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ThrowMarkerOffsetModel val = (ThrowMarkerOffsetModel)((ModByteLoader)this).m[i + start]; val.ejectX = br.ReadSingle(); val.ejectY = br.ReadSingle(); val.ejectZ = br.ReadSingle(); val.rotation = br.ReadSingle(); } } private void Set_v_TrackTargetModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("turnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { TrackTargetModel val2 = (TrackTargetModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.trackNewTargets = br.ReadBoolean(); val2.constantlyAquireNewTarget = br.ReadBoolean(); val2.maxSeekAngle = br.ReadSingle(); val2.ignoreSeekAngle = br.ReadBoolean(); val2.overrideRotation = br.ReadBoolean(); val2.useLifetimeAsDistance = br.ReadBoolean(); val2.expireOnContactTarget = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_FireFromAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FireFromAirUnitModel val = (FireFromAirUnitModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterTargetAngleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterTargetAngleModel val = (FilterTargetAngleModel)((ModByteLoader)this).m[i + start]; val.fieldOfView = br.ReadSingle(); val.baseTowerRotationOffset = br.ReadSingle(); val.ignoreTowerRotation = br.ReadBoolean(); } } private void Set_v_FighterPilotPatternFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { FighterPilotPatternFirstModel val = (FighterPilotPatternFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.offsetDistance = br.ReadSingle(); } } private void Set_v_FighterPilotPatternCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { FighterPilotPatternCloseModel val = (FighterPilotPatternCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.offsetDistance = br.ReadSingle(); } } private void Set_v_FighterPilotPatternLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { FighterPilotPatternLastModel val = (FighterPilotPatternLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.offsetDistance = br.ReadSingle(); } } private void Set_v_FighterPilotPatternStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { FighterPilotPatternStrongModel val = (FighterPilotPatternStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.offsetDistance = br.ReadSingle(); } } private void Set_v_FilterWithTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagModel val = (FilterWithTagModel)((ModByteLoader)this).m[i + start]; val.moabTag = br.ReadBoolean(); val.camoTag = br.ReadBoolean(); val.growTag = br.ReadBoolean(); val.fortifiedTag = br.ReadBoolean(); val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.inclusive = br.ReadBoolean(); val.hasMoabTag = br.ReadBoolean(); } } private void Set_v_AccelerateModel_Fields(int start, int count) { //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("acceleration", (BindingFlags)60); FieldInfo field2 = val.GetField("maxSpeed", (BindingFlags)60); FieldInfo field3 = val.GetField("turnRateChange", (BindingFlags)60); FieldInfo field4 = val.GetField("maxTurnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { AccelerateModel val2 = (AccelerateModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field4.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.decelerate = br.ReadBoolean(); } } private void Set_v_TargetFirstAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstAirUnitModel val = (TargetFirstAirUnitModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastAirUnitModel val = (TargetLastAirUnitModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseAirUnitModel val = (TargetCloseAirUnitModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongAirUnitModel val = (TargetStrongAirUnitModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_AirUnitModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AirUnitModel val = (AirUnitModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.displayScale = br.ReadSingle(); val.isAirUnitSelectable = br.ReadBoolean(); val.selectableRadius = br.ReadSingle(); val.blocksPlacement = br.ReadBoolean(); val.blockingRadius = br.ReadSingle(); } } private void Set_v_FighterMovementModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FighterMovementModel val = (FighterMovementModel)((ModByteLoader)this).m[i + start]; val.maxSpeed = br.ReadSingle(); val.turningSpeed = br.ReadSingle(); val.minDistanceToTargetBeforeFlyover = br.ReadSingle(); val.distanceOfFlyover = br.ReadSingle(); val.bankAngleMax = br.ReadSingle(); val.bankSmoothness = br.ReadSingle(); val.rollTotalTime = br.ReadSingle(); val.rollRunUpDistance = br.ReadSingle(); val.rollTimeBeforeNext = br.ReadSingle(); val.rollChancePerSecondPassed = br.ReadSingle(); val.loopTotalTime = br.ReadSingle(); val.loopRunUpDistance = br.ReadSingle(); val.loopTimeBeforeNext = br.ReadSingle(); val.loopChancePerSecondPassed = br.ReadSingle(); val.loopRadius = br.ReadSingle(); val.loopModelScale = br.ReadSingle(); } } private void Set_v_SubTowerFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SubTowerFilterModel val = (SubTowerFilterModel)((ModByteLoader)this).m[i + start]; val.baseSubTowerId = (br.ReadBoolean() ? null : br.ReadString()); val.baseSubTowerIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.maxNumberOfSubTowers = br.ReadSingle(); val.checkForPreExisting = br.ReadBoolean(); } } private void Set_v_FlagshipAttackSpeedIncreaseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { FlagshipAttackSpeedIncreaseModel val = (FlagshipAttackSpeedIncreaseModel)((ModByteLoader)this).m[i + start]; val.attackSpeedIncrease = br.ReadSingle(); val.onlyAffectParagon = br.ReadBoolean(); val.dontAffectSelf = br.ReadBoolean(); } } private void Set_v_AddMakeshiftAreaModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Expected O, but got Unknown //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AddMakeshiftAreaModel val = (AddMakeshiftAreaModel)((ModByteLoader)this).m[i + start]; val.points = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.newAreaType = (AreaType)br.ReadInt32(); val.filterInTowerSizes = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.filterInTowerSets = Il2CppStructArray.op_Implicit((TowerSet[])((ModByteLoader)this).m[br.ReadInt32()]); val.filterOutSpecificTowers = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.renderHeightOffset = br.ReadSingle(); val.ignoreZAxisTowerCollision = br.ReadBoolean(); val.destroyTowersOnAreaWhenSold = br.ReadBoolean(); val.dontDestroyTowersWhenAreaChanges = br.ReadBoolean(); val.lockedArea = br.ReadBoolean(); val.prohibitTrackPlacement = br.ReadBoolean(); } } protected override TowerModel Load(byte[] bytes) { //IL_0e44: Unknown result type (might be due to invalid IL or missing references) //IL_0e4b: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); Read_a_Vector3_Array(); Read_a_TowerSet_Array(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionArcRotationOffTowerDirectionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageOverTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForCashAmountModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FireAlternateWeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FireWhenAlternateWeaponIsReadyModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterTargetAngleFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionRotationOffTowerDirectionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCollisionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetClosePrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PerRoundCashBonusTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MerchantShipModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CashbackZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToDefaultPositionTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionRotationOffDisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionRotationOffDisplayOnEmitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionArcRotationOffDisplayDirectionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TradeEmpireBuffModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_GrappleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllExceptTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MoabTakedownModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_IncreaseWorthTextEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateRopeEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelTowardsEmitTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LinearTravelModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetGrapplableModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ParallelEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SyncTargetPriorityWithSubTowersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TowerExpireOnParentUpgradedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TowerExpireOnParentDestroyedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TowerExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreditPopsToParentTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_IgnoreTowersBlockerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SavedSubTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionWithOffsetsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ThrowMarkerOffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TrackTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FireFromAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterTargetAngleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FighterPilotPatternFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FighterPilotPatternCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FighterPilotPatternLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FighterPilotPatternStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AccelerateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FighterMovementModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SubTowerFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FlagshipAttackSpeedIncreaseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddMakeshiftAreaModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class MonkeySubLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "MonkeySubs.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EmissionWithOffsetsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionWithOffsetsModel val = (EmissionWithOffsetsModel)((ModByteLoader)this).m[i + start]; val.throwMarkerOffsetModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.projectileCount = br.ReadInt32(); val.rotateProjectileWithTower = br.ReadBoolean(); val.randomRotationCone = br.ReadSingle(); val.spreadProjectilesAcrossMarkers = br.ReadBoolean(); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ThrowMarkerOffsetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ThrowMarkerOffsetModel val = (ThrowMarkerOffsetModel)((ModByteLoader)this).m[i + start]; val.ejectX = br.ReadSingle(); val.ejectY = br.ReadSingle(); val.ejectZ = br.ReadSingle(); val.rotation = br.ReadSingle(); } } private void Set_v_EmissionBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionBehaviorModel val = (EmissionBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionCamoIfTargetIsCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionCamoIfTargetIsCamoModel val = (EmissionCamoIfTargetIsCamoModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionRotationOffProjectileDirectionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionRotationOffProjectileDirectionModel val = (EmissionRotationOffProjectileDirectionModel)((ModByteLoader)this).m[i + start]; val.startingOffset = br.ReadSingle(); val.angleInBetween = br.ReadSingle(); val.alwaysCentre = br.ReadBoolean(); val.useTransformRotation = br.ReadBoolean(); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateProjectileOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustFractionModel val = (CreateProjectileOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.fraction = br.ReadSingle(); val.durationfraction = br.ReadSingle(); val.canCreateInBetweenRounds = br.ReadBoolean(); val.collideOnSubProjectile = br.ReadBoolean(); val.passOnCollidedWith = br.ReadBoolean(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } private void Set_v_CreateProjectileOnExpireModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExpireModel val = (CreateProjectileOnExpireModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useRotation = br.ReadBoolean(); val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_TrackTargetModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("turnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { TrackTargetModel val2 = (TrackTargetModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.trackNewTargets = br.ReadBoolean(); val2.constantlyAquireNewTarget = br.ReadBoolean(); val2.maxSeekAngle = br.ReadSingle(); val2.ignoreSeekAngle = br.ReadBoolean(); val2.overrideRotation = br.ReadBoolean(); val2.useLifetimeAsDistance = br.ReadBoolean(); val2.expireOnContactTarget = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AlternateAnimationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AlternateAnimationModel val = (AlternateAnimationModel)((ModByteLoader)this).m[i + start]; val.states = br.ReadInt32(); val.originState = br.ReadInt32(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterInvisibleSubIntelModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterInvisibleModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleSubIntelModel val = (FilterInvisibleSubIntelModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstSharedRangeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstSharedRangeModel val = (TargetFirstSharedRangeModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.isSharedRangeEnabled = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.shareLineOfSight = br.ReadBoolean(); val.isGettingRangeFromSpecificTower = br.ReadBoolean(); val.specificTowerType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_TargetLastSharedRangeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastSharedRangeModel val = (TargetLastSharedRangeModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.isSharedRangeEnabled = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.shareLineOfSight = br.ReadBoolean(); val.isGettingRangeFromSpecificTower = br.ReadBoolean(); val.specificTowerType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_TargetCloseSharedRangeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseSharedRangeModel val = (TargetCloseSharedRangeModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.isSharedRangeEnabled = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.isGettingRangeFromSpecificTower = br.ReadBoolean(); val.shareLineOfSight = br.ReadBoolean(); val.specificTowerType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_TargetStrongSharedRangeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongSharedRangeModel val = (TargetStrongSharedRangeModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.isSharedRangeEnabled = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.shareLineOfSight = br.ReadBoolean(); val.isGettingRangeFromSpecificTower = br.ReadBoolean(); val.specificTowerType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_InstantDamageEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { InstantDamageEmissionModel val = (InstantDamageEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterAllModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllModel val = (FilterAllModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_InstantModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { InstantModel val = (InstantModel)((ModByteLoader)this).m[i + start]; val.destroyIfInvalid = br.ReadBoolean(); val.ignoreTargetZ = br.ReadBoolean(); val.dontFollowTarget = br.ReadBoolean(); } } private void Set_v_CreateEffectProjectileAfterTimeModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("time", (BindingFlags)60); for (int i = 0; i < count; i++) { CreateEffectProjectileAfterTimeModel val2 = (CreateEffectProjectileAfterTimeModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.repeat = br.ReadBoolean(); val2.isBuffedByRate = br.ReadBoolean(); val2.useTargetPosition = br.ReadBoolean(); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_DamageModifierForBloonTypeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForBloonTypeModel val = (DamageModifierForBloonTypeModel)((ModByteLoader)this).m[i + start]; val.bloonId = (br.ReadBoolean() ? null : br.ReadString()); val.bloonIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAdditive = br.ReadSingle(); val.includeChildren = br.ReadBoolean(); } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_CreateSoundOnProjectileExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileExpireModel val = (CreateSoundOnProjectileExpireModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.limiter = br.ReadInt32(); } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_SupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SupportModel val = (SupportModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.isGlobal = br.ReadBoolean(); val.isCustomRadius = br.ReadBoolean(); val.customRadius = br.ReadSingle(); val.appliesToOwningTower = br.ReadBoolean(); val.showBuffIcon = br.ReadBoolean(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.onlyAffectParagon = br.ReadBoolean(); } } private void Set_v_SubCommanderSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { SubCommanderSupportModel val = (SubCommanderSupportModel)((ModByteLoader)this).m[i + start]; val.isUnique = br.ReadBoolean(); val.pierceIncrease = br.ReadInt32(); val.damageIncrease = br.ReadInt32(); val.damageScale = br.ReadSingle(); } } private void Set_v_TowerFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { TowerFilterModel val = (TowerFilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInBaseTowerIdModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerFilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInBaseTowerIdModel val = (FilterInBaseTowerIdModel)((ModByteLoader)this).m[i + start]; val.baseIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_FilterAllExceptTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllExceptTargetModel val = (FilterAllExceptTargetModel)((ModByteLoader)this).m[i + start]; val.cantbePaused = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PreEmptiveStrikeLauncherModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PreEmptiveStrikeLauncherModel val = (PreEmptiveStrikeLauncherModel)((ModByteLoader)this).m[i + start]; val.projectileModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emissionModel = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.throwOffsetX = br.ReadSingle(); val.throwOffsetY = br.ReadSingle(); val.throwOffsetZ = br.ReadSingle(); val.throwOffsetSecondX = br.ReadSingle(); val.throwOffsetSecondY = br.ReadSingle(); val.throwOffsetSecondZ = br.ReadSingle(); val.ejectEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.animationState = br.ReadInt32(); val.animationStateSecond = br.ReadInt32(); val.isStunned = br.ReadBoolean(); } } private void Set_v_FilterWithTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagModel val = (FilterWithTagModel)((ModByteLoader)this).m[i + start]; val.moabTag = br.ReadBoolean(); val.camoTag = br.ReadBoolean(); val.growTag = br.ReadBoolean(); val.fortifiedTag = br.ReadBoolean(); val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.inclusive = br.ReadBoolean(); val.hasMoabTag = br.ReadBoolean(); } } private void Set_v_TowerBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorBuffModel val = (TowerBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.isGlobalRange = br.ReadBoolean(); } } private void Set_v_SubmergeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_00c4: Unknown result type (might be due to invalid IL or missing references) //IL_00ce: Expected O, but got Unknown //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Expected O, but got Unknown //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Expected O, but got Unknown //IL_0166: Unknown result type (might be due to invalid IL or missing references) //IL_0170: Expected O, but got Unknown //IL_0184: Unknown result type (might be due to invalid IL or missing references) //IL_018e: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { SubmergeModel val = (SubmergeModel)((ModByteLoader)this).m[i + start]; val.submergeAttackModel = (TowerBehaviorModel)((ModByteLoader)this).m[br.ReadInt32()]; val.abilityCooldownSpeedScale = br.ReadSingle(); val.abilityCooldownSpeedScaleGlobal = br.ReadSingle(); val.submergeDepth = br.ReadSingle(); val.submergeSpeed = br.ReadSingle(); val.heroXpScale = br.ReadSingle(); val.attackDisplayPath = ModContent.CreatePrefabReference(br.ReadString()); val.submergeSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emergeSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.supportMutatorPriority = br.ReadInt32(); val.monkeySubParagonSupportModel = (MonkeySubParagonSupportModel)((ModByteLoader)this).m[br.ReadInt32()]; val.abilityCooldownSpeedScaleParagon = br.ReadSingle(); val.animateOnSubmerge = br.ReadInt32(); val.animateOnExitSubmerge = br.ReadInt32(); val.submergeEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.unsubmergeEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RemoveBloonModifiersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveBloonModifiersModel val = (RemoveBloonModifiersModel)((ModByteLoader)this).m[i + start]; val.cleanseRegen = br.ReadBoolean(); val.cleanseCamo = br.ReadBoolean(); val.cleanseLead = br.ReadBoolean(); val.cleanseFortified = br.ReadBoolean(); val.cleanseOnlyIfDamaged = br.ReadBoolean(); val.bloonTagExcludeList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonTagExplicitList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_IgnoreThrowMarkerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { IgnoreThrowMarkerModel val = (IgnoreThrowMarkerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_WeaponRateMinModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponRateMinModel val = (WeaponRateMinModel)((ModByteLoader)this).m[i + start]; val.min = br.ReadSingle(); } } private void Set_v_SubmergeEffectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SubmergeEffectModel val = (SubmergeEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.baseTowerRange = br.ReadSingle(); val.projectileModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.displayRadius = br.ReadSingle(); } } private void Set_v_LinkProjectileRadiusToTowerRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LinkProjectileRadiusToTowerRangeModel val = (LinkProjectileRadiusToTowerRangeModel)((ModByteLoader)this).m[i + start]; val.projectileModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.baseTowerRange = br.ReadSingle(); val.projectileRadiusOffset = br.ReadSingle(); val.displayRadius = br.ReadSingle(); } } private void Set_v_SubmergedTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { SubmergedTargetModel val = (SubmergedTargetModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_FilterOutTagModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutTagModel val = (FilterOutTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.disableWhenSupportMutatorIDs = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterBloonIfDamageTypeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterBloonIfDamageTypeModel val = (FilterBloonIfDamageTypeModel)((ModByteLoader)this).m[i + start]; val.ifCantHitBloonProperties = (BloonProperties)br.ReadInt32(); val.damageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AddTagToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddTagToBloonModel val2 = (AddTagToBloonModel)((ModByteLoader)this).m[i + start]; val2.bloonTag = (br.ReadBoolean() ? null : br.ReadString()); val2.layers = br.ReadInt32(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.isUnique = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } protected override TowerModel Load(byte[] bytes) { //IL_0a80: Unknown result type (might be due to invalid IL or missing references) //IL_0a87: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionWithOffsetsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ThrowMarkerOffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionCamoIfTargetIsCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionRotationOffProjectileDirectionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TrackTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AlternateAnimationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleSubIntelModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstSharedRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastSharedRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseSharedRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongSharedRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_InstantDamageEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_InstantModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectProjectileAfterTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForBloonTypeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SubCommanderSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInBaseTowerIdModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllExceptTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PreEmptiveStrikeLauncherModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SubmergeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveBloonModifiersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_IgnoreThrowMarkerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponRateMinModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SubmergeEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LinkProjectileRadiusToTowerRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SubmergedTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterBloonIfDamageTypeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddTagToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class MonkeyVillageLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "MonkeyVillages.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Single_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadSingle(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TowerSet_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); TowerSet[] array = (TowerSet[])(object)new TowerSet[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (TowerSet)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_SupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SupportModel val = (SupportModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.isGlobal = br.ReadBoolean(); val.isCustomRadius = br.ReadBoolean(); val.customRadius = br.ReadSingle(); val.appliesToOwningTower = br.ReadBoolean(); val.showBuffIcon = br.ReadBoolean(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.onlyAffectParagon = br.ReadBoolean(); } } private void Set_v_RangeSupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { RangeSupportModel val = (RangeSupportModel)((ModByteLoader)this).m[i + start]; val.multiplier = br.ReadSingle(); val.additive = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); val.maxStacks = br.ReadInt32(); } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_VisibilitySupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { VisibilitySupportModel val = (VisibilitySupportModel)((ModByteLoader)this).m[i + start]; val.isUnique = br.ReadBoolean(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_TowerBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorBuffModel val = (TowerBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.isGlobalRange = br.ReadBoolean(); } } private void Set_v_DiscountZoneModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { DiscountZoneModel val = (DiscountZoneModel)((ModByteLoader)this).m[i + start]; val.discountMultiplier = br.ReadSingle(); val.stackLimit = br.ReadInt32(); val.stackName = (br.ReadBoolean() ? null : br.ReadString()); val.affectSelf = br.ReadBoolean(); val.tierCap = br.ReadInt32(); val.tierMin = br.ReadInt32(); val.towerBaseIds = (br.ReadBoolean() ? null : br.ReadString()); val.towerBaseIdList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.isBuffFromArea = br.ReadBoolean(); val.upgradeId = (br.ReadBoolean() ? null : br.ReadString()); val.dontAffectOthersInCoop = br.ReadBoolean(); val.isGlobal = br.ReadBoolean(); } } private void Set_v_AddBehaviorToTowerSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { AddBehaviorToTowerSupportModel val = (AddBehaviorToTowerSupportModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CashIncreaseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CashIncreaseModel val = (CashIncreaseModel)((ModByteLoader)this).m[i + start]; val.increase = br.ReadSingle(); val.multiplier = br.ReadSingle(); } } private void Set_v_TowerBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorWithOverlayModel val = (TowerBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AddBehaviorToBloonInZoneModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorWithOverlayModel_Fields(start, count); for (int i = 0; i < count; i++) { AddBehaviorToBloonInZoneModel val = (AddBehaviorToBloonInZoneModel)((ModByteLoader)this).m[i + start]; val.zoneRadius = br.ReadSingle(); val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bindRadiusToTowerRange = br.ReadBoolean(); val.radiusOffset = br.ReadSingle(); } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_GrowBlockModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { GrowBlockModel val = (GrowBlockModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterWithTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagModel val = (FilterWithTagModel)((ModByteLoader)this).m[i + start]; val.moabTag = br.ReadBoolean(); val.camoTag = br.ReadBoolean(); val.growTag = br.ReadBoolean(); val.fortifiedTag = br.ReadBoolean(); val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.inclusive = br.ReadBoolean(); val.hasMoabTag = br.ReadBoolean(); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_DamageTypeSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageTypeSupportModel val = (DamageTypeSupportModel)((ModByteLoader)this).m[i + start]; val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.isUnique = br.ReadBoolean(); } } private void Set_v_SupportRemoveFilterOutTagModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { SupportRemoveFilterOutTagModel val = (SupportRemoveFilterOutTagModel)((ModByteLoader)this).m[i + start]; val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.removeScriptWithSupportMutatorId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_MonkeyCityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { MonkeyCityModel val = (MonkeyCityModel)((ModByteLoader)this).m[i + start]; val.roundsTillMultiplier = br.ReadInt32(); val.towerId = (br.ReadBoolean() ? null : br.ReadString()); val.multiplier = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_MonkeyCityIncomeSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { MonkeyCityIncomeSupportModel val = (MonkeyCityIncomeSupportModel)((ModByteLoader)this).m[i + start]; val.uniqueMutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.incomeModifier = br.ReadSingle(); } } private void Set_v_MonkeyopolisUpgradeCostModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { MonkeyopolisUpgradeCostModel val = (MonkeyopolisUpgradeCostModel)((ModByteLoader)this).m[i + start]; val.costPerFarm = br.ReadInt32(); val.path = br.ReadInt32(); val.towerFilter = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_ShowCashIconInsteadModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ShowCashIconInsteadModel val = (ShowCashIconInsteadModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_MonkeyopolisModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { MonkeyopolisModel val = (MonkeyopolisModel)((ModByteLoader)this).m[i + start]; val.filterTower = (br.ReadBoolean() ? null : br.ReadString()); val.valueRequiredForCrate = br.ReadInt32(); val.cashFromCrate = br.ReadInt32(); val.baseIncome = br.ReadInt32(); val.cratesPerRound = br.ReadInt32(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmmisionTowardsTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmmisionTowardsTargetModel val = (SingleEmmisionTowardsTargetModel)((ModByteLoader)this).m[i + start]; val.offset = br.ReadSingle(); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_PickupModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("delay", (BindingFlags)60); for (int i = 0; i < count; i++) { PickupModel val2 = (PickupModel)((ModByteLoader)this).m[i + start]; val2.collectRadius = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.isCamoPickup = br.ReadBoolean(); } } private void Set_v_CashModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CashModel val = (CashModel)((ModByteLoader)this).m[i + start]; val.minimum = br.ReadSingle(); val.maximum = br.ReadSingle(); val.bonusMultiplier = br.ReadSingle(); val.salvage = br.ReadSingle(); val.noTransformCash = br.ReadBoolean(); val.distributeSalvage = br.ReadBoolean(); val.forceCreateProjectile = br.ReadBoolean(); val.isDoubleable = br.ReadBoolean(); val.distributeBonusIncome = br.ReadBoolean(); val.emittedByCashEarnedMultiplier = br.ReadSingle(); val.isPowerCash = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateTextEffectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateTextEffectModel val = (CreateTextEffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.useTowerPosition = br.ReadBoolean(); } } private void Set_v_ScaleProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ScaleProjectileModel val = (ScaleProjectileModel)((ModByteLoader)this).m[i + start]; val.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_Curve_Fields(int start, int count) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("samples", (BindingFlags)60); for (int i = 0; i < count; i++) { Curve val2 = (Curve)((ModByteLoader)this).m[i + start]; val2.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_ArriveAtTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ArriveAtTargetModel val = (ArriveAtTargetModel)((ModByteLoader)this).m[i + start]; val.timeToTake = br.ReadSingle(); val.curveSamples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.filterCollisionWhileMoving = br.ReadBoolean(); val.expireOnArrival = br.ReadBoolean(); val.altSpeed = br.ReadSingle(); val.stopOnTargetReached = br.ReadBoolean(); val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; val.keepUpdatingTargetPos = br.ReadBoolean(); val.rotateToTarget = br.ReadBoolean(); val.maxTurnAngle = br.ReadSingle(); val.positionAboveMoabTypes = br.ReadBoolean(); } } private void Set_v_HeightOffsetProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { HeightOffsetProjectileModel val = (HeightOffsetProjectileModel)((ModByteLoader)this).m[i + start]; val.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionsPerRoundFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionsPerRoundFilterModel val = (EmissionsPerRoundFilterModel)((ModByteLoader)this).m[i + start]; val.count = br.ReadInt32(); } } private void Set_v_WeaponRateMinModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponRateMinModel val = (WeaponRateMinModel)((ModByteLoader)this).m[i + start]; val.min = br.ReadSingle(); } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_RandomPositionBasicModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomPositionBasicModel val = (RandomPositionBasicModel)((ModByteLoader)this).m[i + start]; val.minRadius = br.ReadSingle(); val.maxRadius = br.ReadSingle(); val.mapBorder = br.ReadSingle(); val.useTerrainHeight = br.ReadBoolean(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CallToArmsModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { CallToArmsModel val2 = (CallToArmsModel)((ModByteLoader)this).m[i + start]; val2.multiplier = br.ReadSingle(); val2.useRadius = br.ReadBoolean(); val2.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val2.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_RateSupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0097: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { RateSupportModel val = (RateSupportModel)((ModByteLoader)this).m[i + start]; val.multiplier = br.ReadSingle(); val.isUnique = br.ReadBoolean(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.priority = br.ReadInt32(); val.buffDisplayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PierceSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { PierceSupportModel val = (PierceSupportModel)((ModByteLoader)this).m[i + start]; val.pierce = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); } } private void Set_v_TowerFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { TowerFilterModel val = (TowerFilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInSetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerFilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInSetModel val = (FilterInSetModel)((ModByteLoader)this).m[i + start]; val.towerSets = Il2CppStructArray.op_Implicit((TowerSet[])((ModByteLoader)this).m[br.ReadInt32()]); val.towerSet = (TowerSet)br.ReadInt32(); } } private void Set_v_ProjectileSpeedSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileSpeedSupportModel val = (ProjectileSpeedSupportModel)((ModByteLoader)this).m[i + start]; val.multiplier = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); } } private void Set_v_FreeUpgradeSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { FreeUpgradeSupportModel val = (FreeUpgradeSupportModel)((ModByteLoader)this).m[i + start]; val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = br.ReadInt32(); } } private void Set_v_AbilityCooldownScaleSupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityCooldownScaleSupportModel val = (AbilityCooldownScaleSupportModel)((ModByteLoader)this).m[i + start]; val.isUnique = br.ReadBoolean(); val.abilityCooldownSpeedScale = br.ReadSingle(); val.affectsOnlyWater = br.ReadBoolean(); val.mutatorPriority = br.ReadInt32(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_RetargetOnContactModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("delay", (BindingFlags)60); for (int i = 0; i < count; i++) { RetargetOnContactModel val2 = (RetargetOnContactModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.minDistance = br.ReadSingle(); val2.maxBounces = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.targetType.id = br.ReadString(); val2.targetType.actionOnCreate = br.ReadBoolean(); val2.expireIfNoTargetFound = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_CollideExtraPierceReductionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CollideExtraPierceReductionModel val = (CollideExtraPierceReductionModel)((ModByteLoader)this).m[i + start]; val.bloonTag = (br.ReadBoolean() ? null : br.ReadString()); val.extraAmount = br.ReadInt32(); val.destroyProjectileIfPierceNotEnough = br.ReadBoolean(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } protected override TowerModel Load(byte[] bytes) { //IL_0a80: Unknown result type (might be due to invalid IL or missing references) //IL_0a87: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); Read_a_Single_Array(); CreateArraySet(); Read_a_TowerSet_Array(); Read_a_TargetType_Array(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RangeSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_VisibilitySupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DiscountZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToTowerSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CashIncreaseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToBloonInZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_GrowBlockModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageTypeSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SupportRemoveFilterOutTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MonkeyCityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MonkeyCityIncomeSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MonkeyopolisUpgradeCostModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ShowCashIconInsteadModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MonkeyopolisModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmmisionTowardsTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PickupModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CashModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateTextEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ScaleProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Curve_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArriveAtTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_HeightOffsetProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionsPerRoundFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponRateMinModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomPositionBasicModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CallToArmsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RateSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PierceSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInSetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileSpeedSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FreeUpgradeSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityCooldownScaleSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RetargetOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CollideExtraPierceReductionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class MortarMonkeyLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "MortarMonkeys.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RandomTargetSpreadModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomTargetSpreadModel val = (RandomTargetSpreadModel)((ModByteLoader)this).m[i + start]; val.spread = br.ReadSingle(); val.throwMarkerOffsets = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterAllModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllModel val = (FilterAllModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_InstantModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { InstantModel val = (InstantModel)((ModByteLoader)this).m[i + start]; val.destroyIfInvalid = br.ReadBoolean(); val.ignoreTargetZ = br.ReadBoolean(); val.dontFollowTarget = br.ReadBoolean(); } } private void Set_v_CreateProjectileOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustFractionModel val = (CreateProjectileOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.fraction = br.ReadSingle(); val.durationfraction = br.ReadSingle(); val.canCreateInBetweenRounds = br.ReadBoolean(); val.collideOnSubProjectile = br.ReadBoolean(); val.passOnCollidedWith = br.ReadBoolean(); } } private void Set_v_RemoveBloonModifiersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveBloonModifiersModel val = (RemoveBloonModifiersModel)((ModByteLoader)this).m[i + start]; val.cleanseRegen = br.ReadBoolean(); val.cleanseCamo = br.ReadBoolean(); val.cleanseLead = br.ReadBoolean(); val.cleanseFortified = br.ReadBoolean(); val.cleanseOnlyIfDamaged = br.ReadBoolean(); val.bloonTagExcludeList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonTagExplicitList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AddBehaviorToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBehaviorToBloonModel val2 = (AddBehaviorToBloonModel)((ModByteLoader)this).m[i + start]; val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.layers = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isUnique = br.ReadBoolean(); val2.lastAppliesFirst = br.ReadBoolean(); val2.collideThisFrame = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.glueLevel = br.ReadInt32(); val2.applyOnlyIfDamaged = br.ReadBoolean(); val2.stackCount = br.ReadInt32(); val2.dontCopy = br.ReadBoolean(); val2.parentDamageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_FilterOutTagModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutTagModel val = (FilterOutTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.disableWhenSupportMutatorIDs = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_BloonBehaviorModelWithTowerTracking_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModelWithTowerTracking val = (BloonBehaviorModelWithTowerTracking)((ModByteLoader)this).m[i + start]; } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageOverTimeModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); FieldInfo field2 = val.GetField("initialDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { DamageOverTimeModel val2 = (DamageOverTimeModel)((ModByteLoader)this).m[i + start]; val2.damage = br.ReadSingle(); val2.payloadCount = br.ReadInt32(); val2.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val2.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val2.displayLifetime = br.ReadSingle(); val2.triggerImmediate = br.ReadBoolean(); val2.rotateEffectWithBloon = br.ReadBoolean(); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.damageOnDestroy = br.ReadBoolean(); val2.overrideDistributionBlocker = br.ReadBoolean(); val2.distributeToChildren = br.ReadBoolean(); val2.damageModifierModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isFireBased = br.ReadBoolean(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_CreateSoundOnProjectileCollisionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCollisionModel val = (CreateSoundOnProjectileCollisionModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ChipMapBasedObjectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ChipMapBasedObjectModel val = (ChipMapBasedObjectModel)((ModByteLoader)this).m[i + start]; val.chipTag = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_DamageModifierForBloonStateModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForBloonStateModel val = (DamageModifierForBloonStateModel)((ModByteLoader)this).m[i + start]; val.bloonState = (br.ReadBoolean() ? null : br.ReadString()); val.bloonStates = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAdditive = br.ReadSingle(); val.mustIncludeAllStates = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.mustBeModified = br.ReadBoolean(); } } private void Set_v_CreateEffectOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustFractionModel val = (CreateEffectOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.fraction = br.ReadSingle(); val.durationFraction = br.ReadSingle(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_CreateSoundOnProjectileExhaustModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileExhaustModel val = (CreateSoundOnProjectileExhaustModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetSelectedPointModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSelectedPointModel val = (TargetSelectedPointModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.customName = (br.ReadBoolean() ? null : br.ReadString()); val.lockToInsideTowerRange = br.ReadBoolean(); val.startWithClosestTrackPoint = br.ReadBoolean(); val.displayInvalid = ModContent.CreatePrefabReference(br.ReadString()); val.alwaysShowTarget = br.ReadBoolean(); val.projectileToExpireOnTargetChangeModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTerrainHeight = br.ReadBoolean(); } } private void Set_v_RotateToPointerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToPointerModel val = (RotateToPointerModel)((ModByteLoader)this).m[i + start]; val.rate = br.ReadSingle(); val.rotateTower = br.ReadBoolean(); val.rotateOnlyOnEmit = br.ReadBoolean(); val.weaponEjectZ = br.ReadSingle(); } } private void Set_v_FilterWithTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagModel val = (FilterWithTagModel)((ModByteLoader)this).m[i + start]; val.moabTag = br.ReadBoolean(); val.camoTag = br.ReadBoolean(); val.growTag = br.ReadBoolean(); val.fortifiedTag = br.ReadBoolean(); val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.inclusive = br.ReadBoolean(); val.hasMoabTag = br.ReadBoolean(); } } private void Set_v_CreateEffectOnExhaustedModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustedModel val = (CreateEffectOnExhaustedModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.randomRotation = br.ReadBoolean(); } } private void Set_v_RefreshPierceModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); for (int i = 0; i < count; i++) { RefreshPierceModel val2 = (RefreshPierceModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.isBuffedByRate = br.ReadBoolean(); } } private void Set_v_ClearHitBloonsModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); for (int i = 0; i < count; i++) { ClearHitBloonsModel val2 = (ClearHitBloonsModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileZeroRotationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileZeroRotationModel val = (ProjectileZeroRotationModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RemoveMutatorOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveMutatorOnUpgradeModel val = (RemoveMutatorOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.firstPath = br.ReadInt32(); val.secondPath = br.ReadInt32(); val.thirdPath = br.ReadInt32(); val.paths = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ThrowMarkerOffsetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ThrowMarkerOffsetModel val = (ThrowMarkerOffsetModel)((ModByteLoader)this).m[i + start]; val.ejectX = br.ReadSingle(); val.ejectY = br.ReadSingle(); val.ejectZ = br.ReadSingle(); val.rotation = br.ReadSingle(); } } private void Set_v_CycleAnimationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CycleAnimationModel val = (CycleAnimationModel)((ModByteLoader)this).m[i + start]; val.minAnimationState = br.ReadInt32(); val.maxAnimationState = br.ReadInt32(); val.loopMode = (br.ReadBoolean() ? null : br.ReadString()); val.randomize = br.ReadBoolean(); } } private void Set_v_EjectEffectWithOffsetsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectWithOffsetsModel val = (EjectEffectWithOffsetsModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.rotateToWeapon = br.ReadBoolean(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TurboModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TurboModel val2 = (TurboModel)((ModByteLoader)this).m[i + start]; val2.multiplier = br.ReadSingle(); val2.projectileDisplay = (AssetPathModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.dontBlockActivation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.extraDamage = br.ReadInt32(); val2.projectileRadiusScaleBonus = br.ReadSingle(); val2.dontRemoveMutatorOnDestroy = br.ReadBoolean(); } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_SlowModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("multiplier", (BindingFlags)60); for (int i = 0; i < count; i++) { SlowModel val2 = (SlowModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.layers = br.ReadInt32(); val2.overlayLayer = br.ReadInt32(); val2.glueLevel = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.dontRefreshDuration = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.removeMutatorIfNotMatching = br.ReadBoolean(); val2.matchLayersWithDamage = br.ReadBoolean(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.countGlueAchievement = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_SupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SupportModel val = (SupportModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.isGlobal = br.ReadBoolean(); val.isCustomRadius = br.ReadBoolean(); val.customRadius = br.ReadSingle(); val.appliesToOwningTower = br.ReadBoolean(); val.showBuffIcon = br.ReadBoolean(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.onlyAffectParagon = br.ReadBoolean(); } } private void Set_v_DamageModifierSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierSupportModel val = (DamageModifierSupportModel)((ModByteLoader)this).m[i + start]; val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); val.damageModifierModel = (DamageModifierModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TowerFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { TowerFilterModel val = (TowerFilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInBaseTowerIdModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerFilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInBaseTowerIdModel val = (FilterInBaseTowerIdModel)((ModByteLoader)this).m[i + start]; val.baseIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterInTowerTiersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerFilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInTowerTiersModel val = (FilterInTowerTiersModel)((ModByteLoader)this).m[i + start]; val.path1MinTier = br.ReadInt32(); val.path1MaxTier = br.ReadInt32(); val.path2MinTier = br.ReadInt32(); val.path2MaxTier = br.ReadInt32(); val.path3MinTier = br.ReadInt32(); val.path3MaxTier = br.ReadInt32(); } } private void Set_v_SlowModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SlowModifierForTagModel val = (SlowModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.slowId = (br.ReadBoolean() ? null : br.ReadString()); val.slowMultiplier = br.ReadSingle(); val.resetToUnmodified = br.ReadBoolean(); val.preventMutation = br.ReadBoolean(); val.lifespanOverride = br.ReadSingle(); val.makeNotTag = br.ReadBoolean(); } } private void Set_v_DamageInRingRadiusModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_DamageModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageInRingRadiusModel val = (DamageInRingRadiusModel)((ModByteLoader)this).m[i + start]; val.innerRingRadius = br.ReadSingle(); } } protected override TowerModel Load(byte[] bytes) { //IL_09a8: Unknown result type (might be due to invalid IL or missing references) //IL_09af: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomTargetSpreadModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_InstantModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveBloonModifiersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageOverTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCollisionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ChipMapBasedObjectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForBloonStateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileExhaustModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetSelectedPointModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToPointerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RefreshPierceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ClearHitBloonsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileZeroRotationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveMutatorOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ThrowMarkerOffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CycleAnimationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectWithOffsetsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TurboModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInBaseTowerIdModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInTowerTiersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageInRingRadiusModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class NinjaMonkeyLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "NinjaMonkeys.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Single_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadSingle(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_RotateModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("angle", (BindingFlags)60); for (int i = 0; i < count; i++) { RotateModel val2 = (RotateModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_WindModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Expected O, but got Unknown //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); for (int i = 0; i < count; i++) { WindModel val = (WindModel)((ModByteLoader)this).m[i + start]; val.distanceMin = br.ReadSingle(); val.distanceMax = br.ReadSingle(); val.chance = br.ReadSingle(); val.affectMoab = br.ReadBoolean(); val.distanceScaleForTags = br.ReadSingle(); val.distanceScaleForTagsTags = (br.ReadBoolean() ? null : br.ReadString()); val.distanceScaleForTagsTagsList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.speedMultiplier = br.ReadSingle(); val.tagFilter = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.tagInclusive = br.ReadBoolean(); } } private void Set_v_TrackTargetModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("turnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { TrackTargetModel val2 = (TrackTargetModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.trackNewTargets = br.ReadBoolean(); val2.constantlyAquireNewTarget = br.ReadBoolean(); val2.maxSeekAngle = br.ReadSingle(); val2.ignoreSeekAngle = br.ReadBoolean(); val2.overrideRotation = br.ReadBoolean(); val2.useLifetimeAsDistance = br.ReadBoolean(); val2.expireOnContactTarget = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_TrackTargetWithinTimeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TrackTargetModel_Fields(start, count); for (int i = 0; i < count; i++) { TrackTargetWithinTimeModel val = (TrackTargetWithinTimeModel)((ModByteLoader)this).m[i + start]; val.timeInFrames = br.ReadSingle(); } } private void Set_v_RemoveBloonModifiersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveBloonModifiersModel val = (RemoveBloonModifiersModel)((ModByteLoader)this).m[i + start]; val.cleanseRegen = br.ReadBoolean(); val.cleanseCamo = br.ReadBoolean(); val.cleanseLead = br.ReadBoolean(); val.cleanseFortified = br.ReadBoolean(); val.cleanseOnlyIfDamaged = br.ReadBoolean(); val.bloonTagExcludeList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonTagExplicitList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForBloonStateModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForBloonStateModel val = (DamageModifierForBloonStateModel)((ModByteLoader)this).m[i + start]; val.bloonState = (br.ReadBoolean() ? null : br.ReadString()); val.bloonStates = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAdditive = br.ReadSingle(); val.mustIncludeAllStates = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.mustBeModified = br.ReadBoolean(); } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AlternateProjectileModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AlternateProjectileModel val = (AlternateProjectileModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emissionModel = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.interval = br.ReadInt32(); val.alternateAnimation = br.ReadInt32(); val.priority = br.ReadInt32(); } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SlowModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("multiplier", (BindingFlags)60); for (int i = 0; i < count; i++) { SlowModel val2 = (SlowModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.layers = br.ReadInt32(); val2.overlayLayer = br.ReadInt32(); val2.glueLevel = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.dontRefreshDuration = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.removeMutatorIfNotMatching = br.ReadBoolean(); val2.matchLayersWithDamage = br.ReadBoolean(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.countGlueAchievement = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_SlowModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SlowModifierForTagModel val = (SlowModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.slowId = (br.ReadBoolean() ? null : br.ReadString()); val.slowMultiplier = br.ReadSingle(); val.resetToUnmodified = br.ReadBoolean(); val.preventMutation = br.ReadBoolean(); val.lifespanOverride = br.ReadSingle(); val.makeNotTag = br.ReadBoolean(); } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateEffectOnContactModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnContactModel val = (CreateEffectOnContactModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnProjectileCollisionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCollisionModel val = (CreateSoundOnProjectileCollisionModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_TargetCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCamoModel val = (TargetCamoModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstPrioCamoModel val = (TargetFirstPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastPrioCamoModel val = (TargetLastPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetClosePrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetClosePrioCamoModel val = (TargetClosePrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongPrioCamoModel val = (TargetStrongPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_ClearHitBloonsModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); for (int i = 0; i < count; i++) { ClearHitBloonsModel val2 = (ClearHitBloonsModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ArriveAtTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ArriveAtTargetModel val = (ArriveAtTargetModel)((ModByteLoader)this).m[i + start]; val.timeToTake = br.ReadSingle(); val.curveSamples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.filterCollisionWhileMoving = br.ReadBoolean(); val.expireOnArrival = br.ReadBoolean(); val.altSpeed = br.ReadSingle(); val.stopOnTargetReached = br.ReadBoolean(); val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; val.keepUpdatingTargetPos = br.ReadBoolean(); val.rotateToTarget = br.ReadBoolean(); val.maxTurnAngle = br.ReadSingle(); val.positionAboveMoabTypes = br.ReadBoolean(); } } private void Set_v_Curve_Fields(int start, int count) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("samples", (BindingFlags)60); for (int i = 0; i < count; i++) { Curve val2 = (Curve)((ModByteLoader)this).m[i + start]; val2.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetTrackModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetTrackModel val = (TargetTrackModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.maxOffset = br.ReadSingle(); val.onlyTargetPathsWithBloons = br.ReadBoolean(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_SelfStackingSupportCompoundingModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { SelfStackingSupportCompoundingModel val = (SelfStackingSupportCompoundingModel)((ModByteLoader)this).m[i + start]; val.maxStacks = br.ReadInt32(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TowerBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorBuffModel val = (TowerBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.isGlobalRange = br.ReadBoolean(); } } private void Set_v_SupportShinobiTacticsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SelfStackingSupportCompoundingModel_Fields(start, count); for (int i = 0; i < count; i++) { SupportShinobiTacticsModel val = (SupportShinobiTacticsModel)((ModByteLoader)this).m[i + start]; val.multiplier = br.ReadSingle(); } } private void Set_v_TowerFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { TowerFilterModel val = (TowerFilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInBaseTowerIdModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerFilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInBaseTowerIdModel val = (FilterInBaseTowerIdModel)((ModByteLoader)this).m[i + start]; val.baseIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterAllExceptTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllExceptTargetModel val = (FilterAllExceptTargetModel)((ModByteLoader)this).m[i + start]; val.cantbePaused = br.ReadBoolean(); } } private void Set_v_FilterMoabModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterMoabModel val = (FilterMoabModel)((ModByteLoader)this).m[i + start]; val.flip = br.ReadBoolean(); } } private void Set_v_FilterMutatedTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterMutatedTargetModel val = (FilterMutatedTargetModel)((ModByteLoader)this).m[i + start]; val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.mutationIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.inverse = br.ReadBoolean(); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AddBehaviorToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBehaviorToBloonModel val2 = (AddBehaviorToBloonModel)((ModByteLoader)this).m[i + start]; val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.layers = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isUnique = br.ReadBoolean(); val2.lastAppliesFirst = br.ReadBoolean(); val2.collideThisFrame = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.glueLevel = br.ReadInt32(); val2.applyOnlyIfDamaged = br.ReadBoolean(); val2.stackCount = br.ReadInt32(); val2.dontCopy = br.ReadBoolean(); val2.parentDamageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_BloonBehaviorModelWithTowerTracking_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModelWithTowerTracking val = (BloonBehaviorModelWithTowerTracking)((ModByteLoader)this).m[i + start]; } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageOverTimeModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); FieldInfo field2 = val.GetField("initialDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { DamageOverTimeModel val2 = (DamageOverTimeModel)((ModByteLoader)this).m[i + start]; val2.damage = br.ReadSingle(); val2.payloadCount = br.ReadInt32(); val2.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val2.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val2.displayLifetime = br.ReadSingle(); val2.triggerImmediate = br.ReadBoolean(); val2.rotateEffectWithBloon = br.ReadBoolean(); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.damageOnDestroy = br.ReadBoolean(); val2.overrideDistributionBlocker = br.ReadBoolean(); val2.distributeToChildren = br.ReadBoolean(); val2.damageModifierModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isFireBased = br.ReadBoolean(); } } private void Set_v_ProjectileOverTimeModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); FieldInfo field2 = val.GetField("initialDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileOverTimeModel val2 = (ProjectileOverTimeModel)((ModByteLoader)this).m[i + start]; val2.projectileModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.emissionModel = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val2.displayLifetime = br.ReadSingle(); val2.triggerImmediate = br.ReadBoolean(); val2.rotateEffectWithBloon = br.ReadBoolean(); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emitOnDestroy = br.ReadBoolean(); val2.collideWithSelf = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_SlowMinusAbilityDurationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SlowModel_Fields(start, count); for (int i = 0; i < count; i++) { SlowMinusAbilityDurationModel val = (SlowMinusAbilityDurationModel)((ModByteLoader)this).m[i + start]; val.abilityId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_DestroyProjectileIfTowerDestroyedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DestroyProjectileIfTowerDestroyedModel val = (DestroyProjectileIfTowerDestroyedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterWithTagsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagsModel val = (FilterWithTagsModel)((ModByteLoader)this).m[i + start]; val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.inclusive = br.ReadBoolean(); } } private void Set_v_DamagePercentOfMaxModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamagePercentOfMaxModel val = (DamagePercentOfMaxModel)((ModByteLoader)this).m[i + start]; val.percent = br.ReadSingle(); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageBloonsOffscreenOnly = br.ReadBoolean(); val.isUnique = br.ReadBoolean(); } } private void Set_v_AbilityBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorBuffModel val = (AbilityBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.showBuffIcon = br.ReadBoolean(); val.isGlobal = br.ReadBoolean(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_ActivateRangeSupportZoneModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorBuffModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateRangeSupportZoneModel val2 = (ActivateRangeSupportZoneModel)((ModByteLoader)this).m[i + start]; val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val2.isUnique = br.ReadBoolean(); val2.multiplier = br.ReadSingle(); val2.additive = br.ReadSingle(); val2.range = br.ReadSingle(); val2.maxNumTowersModified = br.ReadSingle(); val2.canAffectThisTower = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterInTowerTiersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerFilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInTowerTiersModel val = (FilterInTowerTiersModel)((ModByteLoader)this).m[i + start]; val.path1MinTier = br.ReadInt32(); val.path1MaxTier = br.ReadInt32(); val.path2MinTier = br.ReadInt32(); val.path2MaxTier = br.ReadInt32(); val.path3MinTier = br.ReadInt32(); val.path3MaxTier = br.ReadInt32(); } } private void Set_v_ActivateDamageModifierSupportZoneModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Expected O, but got Unknown Set_v_AbilityBehaviorBuffModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateDamageModifierSupportZoneModel val2 = (ActivateDamageModifierSupportZoneModel)((ModByteLoader)this).m[i + start]; val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val2.isUnique = br.ReadBoolean(); val2.range = br.ReadSingle(); val2.maxNumTowersModified = br.ReadSingle(); val2.canAffectThisTower = br.ReadBoolean(); val2.oneShotInRange = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.damageModifierModel = (DamageModifierModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RandomAngleOffsetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomAngleOffsetModel val = (RandomAngleOffsetModel)((ModByteLoader)this).m[i + start]; val.minOffset = br.ReadInt32(); val.maxOffset = br.ReadInt32(); } } protected override TowerModel Load(byte[] bytes) { //IL_0a31: Unknown result type (might be due to invalid IL or missing references) //IL_0a38: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); Read_a_Single_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WindModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TrackTargetWithinTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveBloonModifiersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForBloonStateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AlternateProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCollisionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetClosePrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ClearHitBloonsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArriveAtTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Curve_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetTrackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SupportShinobiTacticsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInBaseTowerIdModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllExceptTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterMoabModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterMutatedTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageOverTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileOverTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowMinusAbilityDurationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DestroyProjectileIfTowerDestroyedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamagePercentOfMaxModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateRangeSupportZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInTowerTiersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateDamageModifierSupportZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomAngleOffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class PortableLakeProLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "PortableLakePros.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Vector3_Array() { //IL_0057: Unknown result type (might be due to invalid IL or missing references) int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TowerSet_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); TowerSet[] array = (TowerSet[])(object)new TowerSet[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (TowerSet)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RectangleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { RectangleFootprintModel val = (RectangleFootprintModel)((ModByteLoader)this).m[i + start]; val.xWidth = br.ReadSingle(); val.yWidth = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_PowerProTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PowerProTowerModel val = (PowerProTowerModel)((ModByteLoader)this).m[i + start]; val.powerId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_IgnoreAllMutatorsTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { IgnoreAllMutatorsTowerModel val = (IgnoreAllMutatorsTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_PlayAnimationIndexModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PlayAnimationIndexModel val = (PlayAnimationIndexModel)((ModByteLoader)this).m[i + start]; val.placeAnimation = br.ReadInt32(); val.upgradeAnimation = br.ReadInt32(); } } private void Set_v_AddMakeshiftAreaModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Expected O, but got Unknown //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AddMakeshiftAreaModel val = (AddMakeshiftAreaModel)((ModByteLoader)this).m[i + start]; val.points = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.newAreaType = (AreaType)br.ReadInt32(); val.filterInTowerSizes = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.filterInTowerSets = Il2CppStructArray.op_Implicit((TowerSet[])((ModByteLoader)this).m[br.ReadInt32()]); val.filterOutSpecificTowers = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.renderHeightOffset = br.ReadSingle(); val.ignoreZAxisTowerCollision = br.ReadBoolean(); val.destroyTowersOnAreaWhenSold = br.ReadBoolean(); val.dontDestroyTowersWhenAreaChanges = br.ReadBoolean(); val.lockedArea = br.ReadBoolean(); val.prohibitTrackPlacement = br.ReadBoolean(); } } private void Set_v_MakeshiftAreaSupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { MakeshiftAreaSupportModel val = (MakeshiftAreaSupportModel)((ModByteLoader)this).m[i + start]; val.showBuffIcon = br.ReadBoolean(); val.restrictToAreas = (br.ReadBoolean() ? null : br.ReadString()); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_MakeshiftAreaRangeSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_MakeshiftAreaSupportModel_Fields(start, count); for (int i = 0; i < count; i++) { MakeshiftAreaRangeSupportModel val = (MakeshiftAreaRangeSupportModel)((ModByteLoader)this).m[i + start]; val.rangeMultiplier = br.ReadSingle(); } } private void Set_v_TowerFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { TowerFilterModel val = (TowerFilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterTowerByPlaceableAreaModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerFilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterTowerByPlaceableAreaModel val = (FilterTowerByPlaceableAreaModel)((ModByteLoader)this).m[i + start]; val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.exclusive = br.ReadBoolean(); } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_MakeshiftAreaFootprintSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_MakeshiftAreaSupportModel_Fields(start, count); for (int i = 0; i < count; i++) { MakeshiftAreaFootprintSupportModel val = (MakeshiftAreaFootprintSupportModel)((ModByteLoader)this).m[i + start]; val.sizeMultiplier = br.ReadSingle(); } } private void Set_v_MakeshiftAreaTowerDisplayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_MakeshiftAreaSupportModel_Fields(start, count); for (int i = 0; i < count; i++) { MakeshiftAreaTowerDisplayModel val = (MakeshiftAreaTowerDisplayModel)((ModByteLoader)this).m[i + start]; val.towerDisplay = ModContent.CreatePrefabReference(br.ReadString()); val.towerPositionHeightOffset = br.ReadSingle(); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_BonusLivesPerRoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BonusLivesPerRoundModel val = (BonusLivesPerRoundModel)((ModByteLoader)this).m[i + start]; val.amount = br.ReadInt32(); val.lifespan = br.ReadSingle(); val.assetId = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_MakeshiftAreaAcidicMixtureSupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_MakeshiftAreaSupportModel_Fields(start, count); for (int i = 0; i < count; i++) { MakeshiftAreaAcidicMixtureSupportModel val = (MakeshiftAreaAcidicMixtureSupportModel)((ModByteLoader)this).m[i + start]; val.acidicMixtureModel = (AcidicMixtureModel)((ModByteLoader)this).m[br.ReadInt32()]; val.acidicMixtureCheckModel = (AcidicMixtureCheckModel)((ModByteLoader)this).m[br.ReadInt32()]; val.maxAmmo = br.ReadInt32(); val.canRefreshOnCooldown = br.ReadBoolean(); val.refreshCooldown = br.ReadSingle(); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AcidicMixtureModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AcidicMixtureModel val = (AcidicMixtureModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AcidicMixtureCheckModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AcidicMixtureCheckModel val = (AcidicMixtureCheckModel)((ModByteLoader)this).m[i + start]; val.maxCount = br.ReadInt32(); val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateSoundOnAttachedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAttachedModel val = (CreateSoundOnAttachedModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmissionAtTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionAtTowerModel val = (SingleEmissionAtTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_FilterMoabModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterMoabModel val = (FilterMoabModel)((ModByteLoader)this).m[i + start]; val.flip = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_SlowModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("multiplier", (BindingFlags)60); for (int i = 0; i < count; i++) { SlowModel val2 = (SlowModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.layers = br.ReadInt32(); val2.overlayLayer = br.ReadInt32(); val2.glueLevel = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.dontRefreshDuration = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.removeMutatorIfNotMatching = br.ReadBoolean(); val2.matchLayersWithDamage = br.ReadBoolean(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.countGlueAchievement = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionBehaviorModel val = (EmissionBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionRotationOffDisplayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionRotationOffDisplayModel val = (EmissionRotationOffDisplayModel)((ModByteLoader)this).m[i + start]; val.offsetRotation = br.ReadInt32(); } } private void Set_v_FilterAllModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllModel val = (FilterAllModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_InstantModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { InstantModel val = (InstantModel)((ModByteLoader)this).m[i + start]; val.destroyIfInvalid = br.ReadBoolean(); val.ignoreTargetZ = br.ReadBoolean(); val.dontFollowTarget = br.ReadBoolean(); } } private void Set_v_CreateProjectileOnIntervalModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_010b: Unknown result type (might be due to invalid IL or missing references) //IL_0115: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnIntervalModel val = (CreateProjectileOnIntervalModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.intervalFrames = br.ReadInt32(); val.onlyIfHasTarget = br.ReadBoolean(); val.range = br.ReadSingle(); val.targetType.id = br.ReadString(); val.targetType.actionOnCreate = br.ReadBoolean(); val.isBuffedByRate = br.ReadBoolean(); val.useRawWeaponRate = br.ReadBoolean(); val.onlyEmitOnce = br.ReadBoolean(); val.effect = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_WeaponRateAnimationSpeedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponRateAnimationSpeedModel val = (WeaponRateAnimationSpeedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterTargetAngleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterTargetAngleModel val = (FilterTargetAngleModel)((ModByteLoader)this).m[i + start]; val.fieldOfView = br.ReadSingle(); val.baseTowerRotationOffset = br.ReadSingle(); val.ignoreTowerRotation = br.ReadBoolean(); } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_RotateToTargetAttackOffsetModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_RotateToTargetModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("ignoreParentRotationTime", (BindingFlags)60); for (int i = 0; i < count; i++) { RotateToTargetAttackOffsetModel val2 = (RotateToTargetAttackOffsetModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.startRotation = br.ReadSingle(); val2.alwaysIgnoreParentRotation = br.ReadBoolean(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_FilterOutBloonModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutBloonModel val = (FilterOutBloonModel)((ModByteLoader)this).m[i + start]; val.bloonId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_KnockBloonOutOfBoundsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { KnockBloonOutOfBoundsModel val = (KnockBloonOutOfBoundsModel)((ModByteLoader)this).m[i + start]; val.bloonTravelSpeed = br.ReadSingle(); val.bloonSpinSpeed = br.ReadSingle(); } } private void Set_v_CashPerTowerInMakeshiftAreaModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CashPerTowerInMakeshiftAreaModel val = (CashPerTowerInMakeshiftAreaModel)((ModByteLoader)this).m[i + start]; val.cashAmount = br.ReadInt32(); val.cashTxtAssetId = ModContent.CreatePrefabReference(br.ReadString()); val.assetLifespan = br.ReadSingle(); } } private void Set_v_RemoveBloonModifiersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveBloonModifiersModel val = (RemoveBloonModifiersModel)((ModByteLoader)this).m[i + start]; val.cleanseRegen = br.ReadBoolean(); val.cleanseCamo = br.ReadBoolean(); val.cleanseLead = br.ReadBoolean(); val.cleanseFortified = br.ReadBoolean(); val.cleanseOnlyIfDamaged = br.ReadBoolean(); val.bloonTagExcludeList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonTagExplicitList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_IgnoreThrowMarkerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { IgnoreThrowMarkerModel val = (IgnoreThrowMarkerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_WeaponRateMinModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponRateMinModel val = (WeaponRateMinModel)((ModByteLoader)this).m[i + start]; val.min = br.ReadSingle(); } } private void Set_v_FollowTouchSettingModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { FollowTouchSettingModel val = (FollowTouchSettingModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_LockInPlaceSettingModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { LockInPlaceSettingModel val = (LockInPlaceSettingModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.display = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_PatrolPointsSettingModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lineDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { PatrolPointsSettingModel val2 = (PatrolPointsSettingModel)((ModByteLoader)this).m[i + start]; val2.isSelectable = br.ReadBoolean(); val2.pointSwitchDistance = br.ReadSingle(); val2.pointSwitchDistanceSquared = br.ReadSingle(); val2.minimumPointDistance = br.ReadSingle(); val2.minimumPointDistanceSquared = br.ReadSingle(); val2.dotSpacing = br.ReadSingle(); val2.dotOffset = br.ReadSingle(); val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.lineDisplay = ModContent.CreatePrefabReference(br.ReadString()); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_RotateToTargetAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_RotateToTargetModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetAirUnitModel val = (RotateToTargetAirUnitModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_PursuitSettingModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { PursuitSettingModel val = (PursuitSettingModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.pursuitDistance = br.ReadSingle(); } } private void Set_v_AirUnitModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AirUnitModel val = (AirUnitModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.displayScale = br.ReadSingle(); val.isAirUnitSelectable = br.ReadBoolean(); val.selectableRadius = br.ReadSingle(); val.blocksPlacement = br.ReadBoolean(); val.blockingRadius = br.ReadSingle(); } } private void Set_v_HeliMovementModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { HeliMovementModel val = (HeliMovementModel)((ModByteLoader)this).m[i + start]; val.maxSpeed = br.ReadSingle(); val.rotationSpeed = br.ReadSingle(); val.strafeDistance = br.ReadSingle(); val.strafeDistanceSquared = br.ReadSingle(); val.otherHeliRepulsionRange = br.ReadSingle(); val.otherHeliRepulsionRangeSquared = br.ReadSingle(); val.movementForceStart = br.ReadSingle(); val.movementForceEnd = br.ReadSingle(); val.movementForceEndSquared = br.ReadSingle(); val.brakeForce = br.ReadSingle(); val.otherHeliRepulsonForce = br.ReadSingle(); val.slowdownRadiusMax = br.ReadSingle(); val.slowdownRadiusMaxSquared = br.ReadSingle(); val.slowdownRadiusMin = br.ReadSingle(); val.slowdownRadiusMinSquared = br.ReadSingle(); val.minVelocityCapScale = br.ReadSingle(); val.destinationYOffset = br.ReadSingle(); val.tiltAngle = br.ReadSingle(); val.patrolPursuitRadius = br.ReadSingle(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DoorGunnerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0081: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DoorGunnerModel val = (DoorGunnerModel)((ModByteLoader)this).m[i + start]; val.selectionObjectPath = ModContent.CreatePrefabReference(br.ReadString()); val.isSelectableGameObject = ModContent.CreatePrefabReference(br.ReadString()); val.activateSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.pickupSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontHideTower = br.ReadBoolean(); val.messageLocKey = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_DeployModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DeployModel val = (DeployModel)((ModByteLoader)this).m[i + start]; val.activateSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dropOffSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } protected override TowerModel Load(byte[] bytes) { //IL_0a80: Unknown result type (might be due to invalid IL or missing references) //IL_0a87: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_Vector3_Array(); Read_a_TowerSet_Array(); CreateArraySet(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RectangleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PowerProTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_IgnoreAllMutatorsTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PlayAnimationIndexModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddMakeshiftAreaModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MakeshiftAreaRangeSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterTowerByPlaceableAreaModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MakeshiftAreaFootprintSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MakeshiftAreaTowerDisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BonusLivesPerRoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MakeshiftAreaAcidicMixtureSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AcidicMixtureModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AcidicMixtureCheckModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAttachedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionAtTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterMoabModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionRotationOffDisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_InstantModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnIntervalModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponRateAnimationSpeedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterTargetAngleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetAttackOffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_KnockBloonOutOfBoundsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CashPerTowerInMakeshiftAreaModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveBloonModifiersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_IgnoreThrowMarkerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponRateMinModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FollowTouchSettingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LockInPlaceSettingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PatrolPointsSettingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PursuitSettingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_HeliMovementModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DoorGunnerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DeployModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class SkywardenLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "Skywardens.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Single_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadSingle(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_PrefabReference_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); PrefabReference[] array = (PrefabReference[])(object)new PrefabReference[num3]; for (int j = 0; j < array.Length; j++) { array[j] = ModContent.CreatePrefabReference(br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = array; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void Read_l_Single_List() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); List val = new List(num3); for (int j = 0; j < num3; j++) { val.Add(br.ReadSingle()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_ZephyrSenseToggleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ZephyrSenseToggleModel val = (ZephyrSenseToggleModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ToggleFocusStanceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ToggleFocusStanceModel val = (ToggleFocusStanceModel)((ModByteLoader)this).m[i + start]; val.rangeMultiplier = br.ReadSingle(); val.rateMultiplier = br.ReadSingle(); val.projectilelifespanMultiplier = br.ReadSingle(); val.cooldown = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); val.swapWeapon = br.ReadBoolean(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_RandomArcEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ArcEmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomArcEmissionModel val = (RandomArcEmissionModel)((ModByteLoader)this).m[i + start]; val.randomAngle = br.ReadSingle(); val.startOffset = br.ReadSingle(); } } private void Set_v_EmissionBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionBehaviorModel val = (EmissionBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionRotationOffProjectileDirectionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionRotationOffProjectileDirectionModel val = (EmissionRotationOffProjectileDirectionModel)((ModByteLoader)this).m[i + start]; val.startingOffset = br.ReadSingle(); val.angleInBetween = br.ReadSingle(); val.alwaysCentre = br.ReadBoolean(); val.useTransformRotation = br.ReadBoolean(); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageImmunityBypassModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageImmunityBypassModel val = (DamageImmunityBypassModel)((ModByteLoader)this).m[i + start]; val.properties = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_ArriveAtTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ArriveAtTargetModel val = (ArriveAtTargetModel)((ModByteLoader)this).m[i + start]; val.timeToTake = br.ReadSingle(); val.curveSamples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.filterCollisionWhileMoving = br.ReadBoolean(); val.expireOnArrival = br.ReadBoolean(); val.altSpeed = br.ReadSingle(); val.stopOnTargetReached = br.ReadBoolean(); val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; val.keepUpdatingTargetPos = br.ReadBoolean(); val.rotateToTarget = br.ReadBoolean(); val.maxTurnAngle = br.ReadSingle(); val.positionAboveMoabTypes = br.ReadBoolean(); } } private void Set_v_Curve_Fields(int start, int count) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("samples", (BindingFlags)60); for (int i = 0; i < count; i++) { Curve val2 = (Curve)((ModByteLoader)this).m[i + start]; val2.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateDistanceProjectileOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateDistanceProjectileOnExhaustFractionModel val = (CreateDistanceProjectileOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.fraction = br.ReadSingle(); val.durationfraction = br.ReadSingle(); val.canCreateInBetweenRounds = br.ReadBoolean(); val.collideOnSubProjectile = br.ReadBoolean(); val.passOnCollidedWith = br.ReadBoolean(); val.distanceInterval = br.ReadSingle(); val.piercePerInterval = br.ReadSingle(); val.radiusPerInterval = br.ReadSingle(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DamageModifierForBloonStateAndTypeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForBloonStateAndTypeModel val = (DamageModifierForBloonStateAndTypeModel)((ModByteLoader)this).m[i + start]; val.bloonStates = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonTypes = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAdditive = br.ReadSingle(); val.mustIncludeAllStates = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.mustBeModified = br.ReadBoolean(); val.includeChildren = br.ReadBoolean(); } } private void Set_v_DamageModifierForBloonStateModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForBloonStateModel val = (DamageModifierForBloonStateModel)((ModByteLoader)this).m[i + start]; val.bloonState = (br.ReadBoolean() ? null : br.ReadString()); val.bloonStates = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAdditive = br.ReadSingle(); val.mustIncludeAllStates = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.mustBeModified = br.ReadBoolean(); } } private void Set_v_CollideReducePierceForBloonStateModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CollideReducePierceForBloonStateModel val = (CollideReducePierceForBloonStateModel)((ModByteLoader)this).m[i + start]; val.bloonStates = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.extraPierce = br.ReadInt32(); val.mustIncludeAllStates = br.ReadBoolean(); val.mustBeModified = br.ReadBoolean(); val.percentChanceOfPierceReduce = br.ReadSingle(); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_GalvanizedModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Expected O, but got Unknown //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Expected O, but got Unknown //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_013d: Expected O, but got Unknown //IL_0151: Unknown result type (might be due to invalid IL or missing references) //IL_015b: Expected O, but got Unknown //IL_016f: Unknown result type (might be due to invalid IL or missing references) //IL_0179: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); for (int i = 0; i < count; i++) { GalvanizedModel val = (GalvanizedModel)((ModByteLoader)this).m[i + start]; val.duration = br.ReadSingle(); val.radius = br.ReadSingle(); val.turnStrength = br.ReadSingle(); val.maxAngle = br.ReadSingle(); val.magnetBloonProperties = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.chainLightningDamageTypes = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.overlayStageTwo = (br.ReadBoolean() ? null : br.ReadString()); val.overlayStageThree = (br.ReadBoolean() ? null : br.ReadString()); val.stunDuration = br.ReadSingle(); val.stunSpeedMultiplier = br.ReadSingle(); val.stunDamage = br.ReadSingle(); val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.effect = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateLightningEffectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateLightningEffectModel val = (CreateLightningEffectModel)((ModByteLoader)this).m[i + start]; val.lifeSpan = br.ReadSingle(); val.displayPaths = Il2CppReferenceArray.op_Implicit((PrefabReference[])((ModByteLoader)this).m[br.ReadInt32()]); val.displayLengths = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_LightningModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("delay", (BindingFlags)60); for (int i = 0; i < count; i++) { LightningModel val2 = (LightningModel)((ModByteLoader)this).m[i + start]; val2.splits = br.ReadInt32(); val2.emissionModel = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.splitRange = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.targetLast = br.ReadBoolean(); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_BloonTagDamageOverrideModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonTagDamageOverrideModel val = (BloonTagDamageOverrideModel)((ModByteLoader)this).m[i + start]; val.bloonId = (br.ReadBoolean() ? null : br.ReadString()); val.bloonIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageAdditive = br.ReadSingle(); val.includeChildren = br.ReadBoolean(); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_ChilledModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00d7: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Expected O, but got Unknown //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Expected O, but got Unknown //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011d: Expected O, but got Unknown //IL_0175: Unknown result type (might be due to invalid IL or missing references) //IL_017f: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); for (int i = 0; i < count; i++) { ChilledModel val = (ChilledModel)((ModByteLoader)this).m[i + start]; val.chilledDuration = br.ReadSingle(); val.slowDuration = br.ReadSingle(); val.pierceCost = br.ReadSingle(); val.multiplier = br.ReadSingle(); val.radiusMultiplier = br.ReadSingle(); val.slowRadius = br.ReadSingle(); val.affectMoab = br.ReadBoolean(); val.moabStageOneSlowMod = br.ReadSingle(); val.moabStageTwoSlowMod = br.ReadSingle(); val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.effect = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.overlayStageTwo = (br.ReadBoolean() ? null : br.ReadString()); val.overlayStageThree = (br.ReadBoolean() ? null : br.ReadString()); val.pierceEffect = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_FreezeModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Expected O, but got Unknown //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { FreezeModel val2 = (FreezeModel)((ModByteLoader)this).m[i + start]; val2.speed = br.ReadSingle(); val2.layers = br.ReadInt32(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.percentChanceToFreeze = br.ReadSingle(); val2.enablePercentChanceToFreeze = br.ReadBoolean(); val2.damageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.canFreezeMoabs = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.growBlockModel = (GrowBlockModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.applyAfterDamage = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_GrowBlockModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { GrowBlockModel val = (GrowBlockModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } private void Set_v_CreateEffectOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustFractionModel val = (CreateEffectOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.fraction = br.ReadSingle(); val.durationFraction = br.ReadSingle(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCamoModel val = (TargetCamoModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstPrioCamoModel val = (TargetFirstPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastPrioCamoModel val = (TargetLastPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetClosePrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetClosePrioCamoModel val = (TargetClosePrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongPrioCamoModel val = (TargetStrongPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetSelectedPointModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSelectedPointModel val = (TargetSelectedPointModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.customName = (br.ReadBoolean() ? null : br.ReadString()); val.lockToInsideTowerRange = br.ReadBoolean(); val.startWithClosestTrackPoint = br.ReadBoolean(); val.displayInvalid = ModContent.CreatePrefabReference(br.ReadString()); val.alwaysShowTarget = br.ReadBoolean(); val.projectileToExpireOnTargetChangeModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTerrainHeight = br.ReadBoolean(); } } private void Set_v_DamageBasedAttackSpeedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageBasedAttackSpeedModel val = (DamageBasedAttackSpeedModel)((ModByteLoader)this).m[i + start]; val.damageThreshold = br.ReadSingle(); val.increasePerThreshold = br.ReadSingle(); val.maxStacks = br.ReadInt32(); val.maxTimeInFramesWithoutDamage = br.ReadInt32(); val.damageCap = br.ReadSingle(); } } private void Set_v_StatePoppedBasedPierceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { StatePoppedBasedPierceModel val = (StatePoppedBasedPierceModel)((ModByteLoader)this).m[i + start]; val.bloonStates = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.buffDuration = br.ReadSingle(); val.pierceMultiplier = br.ReadSingle(); val.pierceAdditive = br.ReadSingle(); val.pierceCap = br.ReadSingle(); val.mustBeModified = br.ReadBoolean(); } } private void Set_v_EmitOnDamageWithStateModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmitOnDamageWithStateModel val = (EmitOnDamageWithStateModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonStates = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.mustBePopped = br.ReadBoolean(); val.mustIncludeAllStates = br.ReadBoolean(); val.mustBeModified = br.ReadBoolean(); val.bloonIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.includeChildren = br.ReadBoolean(); } } private void Set_v_AgeRandomModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_AgeModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("minLifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("maxLifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeRandomModel val2 = (AgeRandomModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_SlowModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("multiplier", (BindingFlags)60); for (int i = 0; i < count; i++) { SlowModel val2 = (SlowModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.layers = br.ReadInt32(); val2.overlayLayer = br.ReadInt32(); val2.glueLevel = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.dontRefreshDuration = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.removeMutatorIfNotMatching = br.ReadBoolean(); val2.matchLayersWithDamage = br.ReadBoolean(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.countGlueAchievement = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_CreateProjectileOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustFractionModel val = (CreateProjectileOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.fraction = br.ReadSingle(); val.durationfraction = br.ReadSingle(); val.canCreateInBetweenRounds = br.ReadBoolean(); val.collideOnSubProjectile = br.ReadBoolean(); val.passOnCollidedWith = br.ReadBoolean(); } } private void Set_v_EmissionAtClosestPathSegmentModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionAtClosestPathSegmentModel val = (EmissionAtClosestPathSegmentModel)((ModByteLoader)this).m[i + start]; val.count = br.ReadInt32(); val.spacing = br.ReadSingle(); } } private void Set_v_WintersMercyTowerBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WintersMercyTowerBuffModel val = (WintersMercyTowerBuffModel)((ModByteLoader)this).m[i + start]; val.bloonInRangeDamageBuff = br.ReadSingle(); val.buffPerBloonAmount = br.ReadSingle(); val.maxDamageBonus = br.ReadSingle(); val.destroyFrozenBuffDuration = br.ReadSingle(); } } private void Set_v_ProjectileBehaviorWithBloonTrackingModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithBloonTrackingModel val = (ProjectileBehaviorWithBloonTrackingModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FrozenRemainsExplosionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorWithBloonTrackingModel_Fields(start, count); for (int i = 0; i < count; i++) { FrozenRemainsExplosionModel val = (FrozenRemainsExplosionModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.fraction = br.ReadSingle(); val.durationfraction = br.ReadSingle(); val.canCreateInBetweenRounds = br.ReadBoolean(); val.collideOnSubProjectile = br.ReadBoolean(); val.passOnCollidedWith = br.ReadBoolean(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorBuffModel val = (AbilityBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.showBuffIcon = br.ReadBoolean(); val.isGlobal = br.ReadBoolean(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ActivateProjectileSpeedSupportZoneModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Expected O, but got Unknown Set_v_AbilityBehaviorBuffModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateProjectileSpeedSupportZoneModel val2 = (ActivateProjectileSpeedSupportZoneModel)((ModByteLoader)this).m[i + start]; val2.range = br.ReadSingle(); val2.speedIncrease = br.ReadSingle(); val2.maxNumTowersModified = br.ReadSingle(); val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val2.isUnique = br.ReadBoolean(); val2.canEffectThisTower = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.useTowerRange = br.ReadBoolean(); val2.oneShotInRange = br.ReadBoolean(); } } private void Set_v_ActivateRicochetSupportZoneModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown Set_v_AbilityBehaviorBuffModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateRicochetSupportZoneModel val2 = (ActivateRicochetSupportZoneModel)((ModByteLoader)this).m[i + start]; val2.range = br.ReadSingle(); val2.maxNumTowersModified = br.ReadSingle(); val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val2.isUnique = br.ReadBoolean(); val2.canEffectThisTower = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.useTowerRange = br.ReadBoolean(); val2.distance = br.ReadSingle(); val2.minDistance = br.ReadSingle(); val2.maxBounces = br.ReadInt32(); val2.targetType = (br.ReadBoolean() ? null : br.ReadString()); val2.delay = br.ReadSingle(); val2.expireIfNoTargetFound = br.ReadBoolean(); } } private void Set_v_ActivateDamageBypassSupportZoneModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown Set_v_AbilityBehaviorBuffModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateDamageBypassSupportZoneModel val2 = (ActivateDamageBypassSupportZoneModel)((ModByteLoader)this).m[i + start]; val2.range = br.ReadSingle(); val2.maxNumTowersModified = br.ReadSingle(); val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val2.isUnique = br.ReadBoolean(); val2.canEffectThisTower = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.useTowerRange = br.ReadBoolean(); val2.properties = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_LightningRodManagerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LightningRodManagerModel val = (LightningRodManagerModel)((ModByteLoader)this).m[i + start]; val.damageTypesToZap = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PointLineEffectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PointLineEffectModel val = (PointLineEffectModel)((ModByteLoader)this).m[i + start]; val.lineDisplayPath = (AssetPathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lineDisplayLength = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.useLineProjectileEmissionShowEffect = br.ReadBoolean(); val.effectDuration = br.ReadSingle(); } } private void Set_v_AssetPathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { AssetPathModel val = (AssetPathModel)((ModByteLoader)this).m[i + start]; val.assetPath = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_EmissionArcRotationOffTowerDirectionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionArcRotationOffTowerDirectionModel val = (EmissionArcRotationOffTowerDirectionModel)((ModByteLoader)this).m[i + start]; val.offsetRotation = br.ReadInt32(); } } private void Set_v_LightningRodEmitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LightningRodEmitModel val = (LightningRodEmitModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.cooldown = br.ReadSingle(); val.minEmitDistance = br.ReadSingle(); } } private void Set_v_LightningRodModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Expected O, but got Unknown //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LightningRodModel val = (LightningRodModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); val.scaleWithTowerRadius = br.ReadBoolean(); val.towerBaseRadius = br.ReadSingle(); val.zapCooldown = br.ReadSingle(); val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ActivateLightningRodZapModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ActivateLightningRodZapModel val = (ActivateLightningRodZapModel)((ModByteLoader)this).m[i + start]; val.rate = br.ReadSingle(); val.damage = br.ReadSingle(); val.piercePerJump = br.ReadSingle(); val.delayPerJump = br.ReadSingle(); val.duration = br.ReadSingle(); val.lightningRod = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lineEmission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_LineProjectileEmissionModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: Expected O, but got Unknown //IL_00cd: Unknown result type (might be due to invalid IL or missing references) //IL_00d7: Expected O, but got Unknown //IL_015d: Unknown result type (might be due to invalid IL or missing references) //IL_0167: Expected O, but got Unknown //IL_017b: Unknown result type (might be due to invalid IL or missing references) //IL_0185: Expected O, but got Unknown //IL_0199: Unknown result type (might be due to invalid IL or missing references) //IL_01a3: Expected O, but got Unknown //IL_01c9: Unknown result type (might be due to invalid IL or missing references) //IL_01d3: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("effectAtEndRate", (BindingFlags)60); for (int i = 0; i < count; i++) { LineProjectileEmissionModel val2 = (LineProjectileEmissionModel)((ModByteLoader)this).m[i + start]; val2.useTargetAsEndPoint = br.ReadBoolean(); val2.displayPath = (AssetPathModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.displayLength = br.ReadSingle(); val2.displayLifetime = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.effectAtEndModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.effectAtStartModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.dontUseTowerPosition = br.ReadBoolean(); val2.useTowerRotation = br.ReadBoolean(); val2.useLengthSpeed = br.ReadBoolean(); val2.lengthSpeed = br.ReadSingle(); val2.lengthPerFrame = br.ReadSingle(); val2.projectileInitialHitModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.projectileAtEndModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.emissionAtEndModel = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.endProjectileSharesPierce = br.ReadBoolean(); val2.effectAtCollision = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.maxCollisionEffects = br.ReadInt32(); val2.emitFromTarget = br.ReadBoolean(); val2.emitFromTargetLength = br.ReadSingle(); } } private void Set_v_TravelStraitSlowdownModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Set_v_TravelStraitModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("slowdownSpeed", (BindingFlags)60); FieldInfo field2 = val.GetField("minSpeed", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitSlowdownModel val2 = (TravelStraitSlowdownModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.maxDistance = br.ReadSingle(); val2.canReducePierce = br.ReadBoolean(); val2.startingPierce = br.ReadInt32(); val2.endPierce = br.ReadInt32(); } } private void Set_v_TrackTargetModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("turnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { TrackTargetModel val2 = (TrackTargetModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.trackNewTargets = br.ReadBoolean(); val2.constantlyAquireNewTarget = br.ReadBoolean(); val2.maxSeekAngle = br.ReadSingle(); val2.ignoreSeekAngle = br.ReadBoolean(); val2.overrideRotation = br.ReadBoolean(); val2.useLifetimeAsDistance = br.ReadBoolean(); val2.expireOnContactTarget = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_SupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SupportModel val = (SupportModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.isGlobal = br.ReadBoolean(); val.isCustomRadius = br.ReadBoolean(); val.customRadius = br.ReadSingle(); val.appliesToOwningTower = br.ReadBoolean(); val.showBuffIcon = br.ReadBoolean(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.onlyAffectParagon = br.ReadBoolean(); } } private void Set_v_RangeSupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { RangeSupportModel val = (RangeSupportModel)((ModByteLoader)this).m[i + start]; val.multiplier = br.ReadSingle(); val.additive = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); val.maxStacks = br.ReadInt32(); } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_WindlashModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Expected O, but got Unknown //IL_00bf: Unknown result type (might be due to invalid IL or missing references) //IL_00c9: Expected O, but got Unknown //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Expected O, but got Unknown //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_0105: Expected O, but got Unknown //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_0123: Expected O, but got Unknown //IL_0137: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); for (int i = 0; i < count; i++) { WindlashModel val = (WindlashModel)((ModByteLoader)this).m[i + start]; val.windlashDuration = br.ReadSingle(); val.distanceMin = br.ReadSingle(); val.distanceMax = br.ReadSingle(); val.windInterval = br.ReadSingle(); val.speedMultiplier = br.ReadSingle(); val.affectMoab = br.ReadBoolean(); val.windProjectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.effect = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.vacuumProjectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.vacuumEmission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.vacuumEffect = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.overlayStageTwo = (br.ReadBoolean() ? null : br.ReadString()); val.overlayStageThree = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_WindModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Expected O, but got Unknown //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); for (int i = 0; i < count; i++) { WindModel val = (WindModel)((ModByteLoader)this).m[i + start]; val.distanceMin = br.ReadSingle(); val.distanceMax = br.ReadSingle(); val.chance = br.ReadSingle(); val.affectMoab = br.ReadBoolean(); val.distanceScaleForTags = br.ReadSingle(); val.distanceScaleForTagsTags = (br.ReadBoolean() ? null : br.ReadString()); val.distanceScaleForTagsTagsList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.speedMultiplier = br.ReadSingle(); val.tagFilter = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.tagInclusive = br.ReadBoolean(); } } private void Set_v_TravelAlongPathModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelAlongPathModel val2 = (TravelAlongPathModel)((ModByteLoader)this).m[i + start]; val2.range = br.ReadSingle(); val2.reverse = br.ReadBoolean(); val2.disableRotateWithPathDirection = br.ReadBoolean(); val2.speed = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.rotationLerp = br.ReadSingle(); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_BurstWeaponIncreasingArcBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BurstWeaponIncreasingArcBehaviorModel val = (BurstWeaponIncreasingArcBehaviorModel)((ModByteLoader)this).m[i + start]; val.interval = br.ReadSingle(); val.intervalFrames = br.ReadInt32(); val.count = br.ReadInt32(); val.alwaysEmptyClip = br.ReadBoolean(); val.angleIncreases = (List)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TowerBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorWithOverlayModel val = (TowerBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CamoBlockZoneModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorWithOverlayModel_Fields(start, count); for (int i = 0; i < count; i++) { CamoBlockZoneModel val = (CamoBlockZoneModel)((ModByteLoader)this).m[i + start]; val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.isDisabled = br.ReadBoolean(); } } private void Set_v_TowerRangeDamageBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerRangeDamageBuffModel val = (TowerRangeDamageBuffModel)((ModByteLoader)this).m[i + start]; val.baseRange = br.ReadSingle(); val.bonusTierRange = br.ReadSingle(); val.bonusAmount = br.ReadSingle(); val.damageCap = br.ReadSingle(); } } protected override TowerModel Load(byte[] bytes) { //IL_0cab: Unknown result type (might be due to invalid IL or missing references) //IL_0cb2: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); Read_a_Single_Array(); Read_a_PrefabReference_Array(); CreateListSet(); Read_l_Single_List(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ZephyrSenseToggleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ToggleFocusStanceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionRotationOffProjectileDirectionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageImmunityBypassModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArriveAtTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Curve_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateDistanceProjectileOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForBloonStateAndTypeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForBloonStateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CollideReducePierceForBloonStateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_GalvanizedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateLightningEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LightningModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BloonTagDamageOverrideModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ChilledModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FreezeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_GrowBlockModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetClosePrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetSelectedPointModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageBasedAttackSpeedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_StatePoppedBasedPierceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmitOnDamageWithStateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeRandomModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionAtClosestPathSegmentModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WintersMercyTowerBuffModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FrozenRemainsExplosionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateProjectileSpeedSupportZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateRicochetSupportZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateDamageBypassSupportZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LightningRodManagerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PointLineEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AssetPathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionArcRotationOffTowerDirectionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LightningRodEmitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LightningRodModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateLightningRodZapModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LineProjectileEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitSlowdownModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TrackTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RangeSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WindlashModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WindModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelAlongPathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BurstWeaponIncreasingArcBehaviorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CamoBlockZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TowerRangeDamageBuffModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class SniperMonkeyLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "SniperMonkeys.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_InstantDamageEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { InstantDamageEmissionModel val = (InstantDamageEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_FilterAllExceptTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllExceptTargetModel val = (FilterAllExceptTargetModel)((ModByteLoader)this).m[i + start]; val.cantbePaused = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_InstantModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { InstantModel val = (InstantModel)((ModByteLoader)this).m[i + start]; val.destroyIfInvalid = br.ReadBoolean(); val.ignoreTargetZ = br.ReadBoolean(); val.dontFollowTarget = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EmitOnDamageModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmitOnDamageModel val = (EmitOnDamageModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.cooldown = br.ReadSingle(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } private void Set_v_RetargetOnContactModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("delay", (BindingFlags)60); for (int i = 0; i < count; i++) { RetargetOnContactModel val2 = (RetargetOnContactModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.minDistance = br.ReadSingle(); val2.maxBounces = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.targetType.id = br.ReadString(); val2.targetType.actionOnCreate = br.ReadBoolean(); val2.expireIfNoTargetFound = br.ReadBoolean(); } } private void Set_v_CreateEffectFromCollisionToCollisionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectFromCollisionToCollisionModel val = (CreateEffectFromCollisionToCollisionModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.effectLength = br.ReadSingle(); } } private void Set_v_CreateEffectOnContactModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnContactModel val = (CreateEffectOnContactModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CheckTargetsWithoutOffsetsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CheckTargetsWithoutOffsetsModel val = (CheckTargetsWithoutOffsetsModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCamoModel val = (TargetCamoModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstPrioCamoModel val = (TargetFirstPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastPrioCamoModel val = (TargetLastPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetClosePrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetClosePrioCamoModel val = (TargetClosePrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongPrioCamoModel val = (TargetStrongPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_LeakDangerAttackSpeedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LeakDangerAttackSpeedModel val = (LeakDangerAttackSpeedModel)((ModByteLoader)this).m[i + start]; val.maxRateIncreasePercent = br.ReadSingle(); } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TurboModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TurboModel val2 = (TurboModel)((ModByteLoader)this).m[i + start]; val2.multiplier = br.ReadSingle(); val2.projectileDisplay = (AssetPathModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.dontBlockActivation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.extraDamage = br.ReadInt32(); val2.projectileRadiusScaleBonus = br.ReadSingle(); val2.dontRemoveMutatorOnDestroy = br.ReadBoolean(); } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateProjectileOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustFractionModel val = (CreateProjectileOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.fraction = br.ReadSingle(); val.durationfraction = br.ReadSingle(); val.canCreateInBetweenRounds = br.ReadBoolean(); val.collideOnSubProjectile = br.ReadBoolean(); val.passOnCollidedWith = br.ReadBoolean(); } } private void Set_v_FilterAllModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllModel val = (FilterAllModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_PickupModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("delay", (BindingFlags)60); for (int i = 0; i < count; i++) { PickupModel val2 = (PickupModel)((ModByteLoader)this).m[i + start]; val2.collectRadius = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.isCamoPickup = br.ReadBoolean(); } } private void Set_v_CreateSoundOnPickupModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnPickupModel val = (CreateSoundOnPickupModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CashModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CashModel val = (CashModel)((ModByteLoader)this).m[i + start]; val.minimum = br.ReadSingle(); val.maximum = br.ReadSingle(); val.bonusMultiplier = br.ReadSingle(); val.salvage = br.ReadSingle(); val.noTransformCash = br.ReadBoolean(); val.distributeSalvage = br.ReadBoolean(); val.forceCreateProjectile = br.ReadBoolean(); val.isDoubleable = br.ReadBoolean(); val.distributeBonusIncome = br.ReadBoolean(); val.emittedByCashEarnedMultiplier = br.ReadSingle(); val.isPowerCash = br.ReadBoolean(); } } private void Set_v_CreateTextEffectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateTextEffectModel val = (CreateTextEffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.useTowerPosition = br.ReadBoolean(); } } private void Set_v_OffsetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { OffsetModel val = (OffsetModel)((ModByteLoader)this).m[i + start]; val.range = br.ReadSingle(); val.angleOffset = br.ReadSingle(); } } private void Set_v_RandomPositionBasicModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomPositionBasicModel val = (RandomPositionBasicModel)((ModByteLoader)this).m[i + start]; val.minRadius = br.ReadSingle(); val.maxRadius = br.ReadSingle(); val.mapBorder = br.ReadSingle(); val.useTerrainHeight = br.ReadBoolean(); } } private void Set_v_ActivateAbilitiesOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ActivateAbilitiesOnAbilityModel val = (ActivateAbilitiesOnAbilityModel)((ModByteLoader)this).m[i + start]; val.abilityToFind = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_SwitchTargetSupplierOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SwitchTargetSupplierOnUpgradeModel val = (SwitchTargetSupplierOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.targetSupplierName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_TargetEliteTargettingModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetEliteTargettingModel val = (TargetEliteTargettingModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.percentageThroughMap = br.ReadSingle(); } } private void Set_v_SupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SupportModel val = (SupportModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.isGlobal = br.ReadBoolean(); val.isCustomRadius = br.ReadBoolean(); val.customRadius = br.ReadSingle(); val.appliesToOwningTower = br.ReadBoolean(); val.showBuffIcon = br.ReadBoolean(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.onlyAffectParagon = br.ReadBoolean(); } } private void Set_v_TargetSupplierSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierSupportModel val = (TargetSupplierSupportModel)((ModByteLoader)this).m[i + start]; val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.targetSupplier = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TowerFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { TowerFilterModel val = (TowerFilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInBaseTowerIdModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerFilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInBaseTowerIdModel val = (FilterInBaseTowerIdModel)((ModByteLoader)this).m[i + start]; val.baseIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RateSupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0097: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { RateSupportModel val = (RateSupportModel)((ModByteLoader)this).m[i + start]; val.multiplier = br.ReadSingle(); val.isUnique = br.ReadBoolean(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.priority = br.ReadInt32(); val.buffDisplayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_SlowMaimMoabModel_Fields(int start, int count) { //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("moabDuration", (BindingFlags)60); FieldInfo field2 = val.GetField("bfbDuration", (BindingFlags)60); FieldInfo field3 = val.GetField("zomgDuration", (BindingFlags)60); FieldInfo field4 = val.GetField("ddtDuration", (BindingFlags)60); FieldInfo field5 = val.GetField("badDuration", (BindingFlags)60); for (int i = 0; i < count; i++) { SlowMaimMoabModel val2 = (SlowMaimMoabModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field4.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field5.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.multiplier = br.ReadSingle(); val2.bloonPerHitDamageAddition = br.ReadSingle(); } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } protected override TowerModel Load(byte[] bytes) { //IL_09b0: Unknown result type (might be due to invalid IL or missing references) //IL_09b7: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_InstantDamageEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllExceptTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_InstantModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmitOnDamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RetargetOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectFromCollisionToCollisionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CheckTargetsWithoutOffsetsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetClosePrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LeakDangerAttackSpeedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TurboModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PickupModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnPickupModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CashModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateTextEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_OffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomPositionBasicModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAbilitiesOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SwitchTargetSupplierOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetEliteTargettingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetSupplierSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInBaseTowerIdModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RateSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowMaimMoabModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class SpikeFactoryLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "SpikeFactorys.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Single_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadSingle(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_PrefabReference_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); PrefabReference[] array = (PrefabReference[])(object)new PrefabReference[num3]; for (int j = 0; j < array.Length; j++) { array[j] = ModContent.CreatePrefabReference(br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = array; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_StartOfRoundRateBuffModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("duration", (BindingFlags)60); for (int i = 0; i < count; i++) { StartOfRoundRateBuffModel val2 = (StartOfRoundRateBuffModel)((ModByteLoader)this).m[i + start]; val2.modifier = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.isUnique = br.ReadBoolean(); val2.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmmisionTowardsTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmmisionTowardsTargetModel val = (SingleEmmisionTowardsTargetModel)((ModByteLoader)this).m[i + start]; val.offset = br.ReadSingle(); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EndOfRoundClearBypassModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EndOfRoundClearBypassModel val = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[i + start]; val.gameModes = (br.ReadBoolean() ? null : br.ReadString()); val.gameModesList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ClearHitBloonsModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); for (int i = 0; i < count; i++) { ClearHitBloonsModel val2 = (ClearHitBloonsModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ScaleProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ScaleProjectileModel val = (ScaleProjectileModel)((ModByteLoader)this).m[i + start]; val.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_Curve_Fields(int start, int count) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("samples", (BindingFlags)60); for (int i = 0; i < count; i++) { Curve val2 = (Curve)((ModByteLoader)this).m[i + start]; val2.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SetSpriteFromPierceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SetSpriteFromPierceModel val = (SetSpriteFromPierceModel)((ModByteLoader)this).m[i + start]; val.sprites = Il2CppReferenceArray.op_Implicit((PrefabReference[])((ModByteLoader)this).m[br.ReadInt32()]); val.loopMode = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FadeProjectileModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("startFadingAt", (BindingFlags)60); for (int i = 0; i < count; i++) { FadeProjectileModel val2 = (FadeProjectileModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ArriveAtTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ArriveAtTargetModel val = (ArriveAtTargetModel)((ModByteLoader)this).m[i + start]; val.timeToTake = br.ReadSingle(); val.curveSamples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.filterCollisionWhileMoving = br.ReadBoolean(); val.expireOnArrival = br.ReadBoolean(); val.altSpeed = br.ReadSingle(); val.stopOnTargetReached = br.ReadBoolean(); val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; val.keepUpdatingTargetPos = br.ReadBoolean(); val.rotateToTarget = br.ReadBoolean(); val.maxTurnAngle = br.ReadSingle(); val.positionAboveMoabTypes = br.ReadBoolean(); } } private void Set_v_HeightOffsetProjectileModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { HeightOffsetProjectileModel val = (HeightOffsetProjectileModel)((ModByteLoader)this).m[i + start]; val.samples = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.curve = (Curve)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ExpireProjectileOnBossSpawnedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ExpireProjectileOnBossSpawnedModel val = (ExpireProjectileOnBossSpawnedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RandomRotationWeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomRotationWeaponBehaviorModel val = (RandomRotationWeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetTrackModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetTrackModel val = (TargetTrackModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.maxOffset = br.ReadSingle(); val.onlyTargetPathsWithBloons = br.ReadBoolean(); } } private void Set_v_CloseTargetTrackModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { CloseTargetTrackModel val = (CloseTargetTrackModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); val.maxOffset = br.ReadSingle(); } } private void Set_v_SmartTargetTrackModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { SmartTargetTrackModel val = (SmartTargetTrackModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); val.maxOffset = br.ReadSingle(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_TargetSelectedPointModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSelectedPointModel val = (TargetSelectedPointModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.customName = (br.ReadBoolean() ? null : br.ReadString()); val.lockToInsideTowerRange = br.ReadBoolean(); val.startWithClosestTrackPoint = br.ReadBoolean(); val.displayInvalid = ModContent.CreatePrefabReference(br.ReadString()); val.alwaysShowTarget = br.ReadBoolean(); val.projectileToExpireOnTargetChangeModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTerrainHeight = br.ReadBoolean(); } } private void Set_v_AutoTargetTrackModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { AutoTargetTrackModel val = (AutoTargetTrackModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); val.maxOffset = br.ReadSingle(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AgeRandomModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_AgeModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("minLifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("maxLifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeRandomModel val2 = (AgeRandomModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_WeaponRateMinModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponRateMinModel val = (WeaponRateMinModel)((ModByteLoader)this).m[i + start]; val.min = br.ReadSingle(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_ActivateAbilityAfterIntervalModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAbilityAfterIntervalModel val2 = (ActivateAbilityAfterIntervalModel)((ModByteLoader)this).m[i + start]; val2.abilityModel = (AbilityModel)((ModByteLoader)this).m[br.ReadInt32()]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_DamageModifierForBloonTypeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForBloonTypeModel val = (DamageModifierForBloonTypeModel)((ModByteLoader)this).m[i + start]; val.bloonId = (br.ReadBoolean() ? null : br.ReadString()); val.bloonIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAdditive = br.ReadSingle(); val.includeChildren = br.ReadBoolean(); } } private void Set_v_CreateProjectileOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustFractionModel val = (CreateProjectileOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.fraction = br.ReadSingle(); val.durationfraction = br.ReadSingle(); val.canCreateInBetweenRounds = br.ReadBoolean(); val.collideOnSubProjectile = br.ReadBoolean(); val.passOnCollidedWith = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AddBehaviorToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBehaviorToBloonModel val2 = (AddBehaviorToBloonModel)((ModByteLoader)this).m[i + start]; val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.layers = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isUnique = br.ReadBoolean(); val2.lastAppliesFirst = br.ReadBoolean(); val2.collideThisFrame = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.glueLevel = br.ReadInt32(); val2.applyOnlyIfDamaged = br.ReadBoolean(); val2.stackCount = br.ReadInt32(); val2.dontCopy = br.ReadBoolean(); val2.parentDamageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_BloonBehaviorModelWithTowerTracking_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModelWithTowerTracking val = (BloonBehaviorModelWithTowerTracking)((ModByteLoader)this).m[i + start]; } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageOverTimeModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); FieldInfo field2 = val.GetField("initialDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { DamageOverTimeModel val2 = (DamageOverTimeModel)((ModByteLoader)this).m[i + start]; val2.damage = br.ReadSingle(); val2.payloadCount = br.ReadInt32(); val2.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val2.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val2.displayLifetime = br.ReadSingle(); val2.triggerImmediate = br.ReadBoolean(); val2.rotateEffectWithBloon = br.ReadBoolean(); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.damageOnDestroy = br.ReadBoolean(); val2.overrideDistributionBlocker = br.ReadBoolean(); val2.distributeToChildren = br.ReadBoolean(); val2.damageModifierModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isFireBased = br.ReadBoolean(); } } private void Set_v_CreateSoundOnProjectileExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileExpireModel val = (CreateSoundOnProjectileExpireModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.limiter = br.ReadInt32(); } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateEffectOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustFractionModel val = (CreateEffectOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.fraction = br.ReadSingle(); val.durationFraction = br.ReadSingle(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateProjectileOnExpireModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExpireModel val = (CreateProjectileOnExpireModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useRotation = br.ReadBoolean(); val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTargetPosition = br.ReadBoolean(); } } private void Set_v_CreateProjectileOnExhaustPierceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnExhaustPierceModel val = (CreateProjectileOnExhaustPierceModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.pierceInterval = br.ReadSingle(); val.count = br.ReadInt32(); val.minimumTimeDifferenceInFrames = br.ReadInt32(); val.destroyProjectile = br.ReadBoolean(); val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.displayLifetime = br.ReadSingle(); val.displayFullscreen = br.ReadBoolean(); val.useBloonPosition = br.ReadBoolean(); } } protected override TowerModel Load(byte[] bytes) { //IL_08c2: Unknown result type (might be due to invalid IL or missing references) //IL_08c9: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); Read_a_Single_Array(); Read_a_PrefabReference_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_StartOfRoundRateBuffModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmmisionTowardsTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EndOfRoundClearBypassModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ClearHitBloonsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ScaleProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Curve_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SetSpriteFromPierceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FadeProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArriveAtTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_HeightOffsetProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ExpireProjectileOnBossSpawnedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomRotationWeaponBehaviorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetTrackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CloseTargetTrackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SmartTargetTrackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetSelectedPointModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AutoTargetTrackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeRandomModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponRateMinModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAbilityAfterIntervalModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForBloonTypeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageOverTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Projectiles_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnExhaustPierceModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class SuperMonkeyBeaconLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "SuperMonkeyBeacons.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateSoundOnMonkeyMoneyActivatedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnMonkeyMoneyActivatedModel val = (CreateSoundOnMonkeyMoneyActivatedModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_PowerProTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PowerProTowerModel val = (PowerProTowerModel)((ModByteLoader)this).m[i + start]; val.powerId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PlayAnimationIndexModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PlayAnimationIndexModel val = (PlayAnimationIndexModel)((ModByteLoader)this).m[i + start]; val.placeAnimation = br.ReadInt32(); val.upgradeAnimation = br.ReadInt32(); } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterMoabModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterMoabModel val = (FilterMoabModel)((ModByteLoader)this).m[i + start]; val.flip = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_SlowModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); FieldInfo field2 = val.GetField("multiplier", (BindingFlags)60); for (int i = 0; i < count; i++) { SlowModel val2 = (SlowModel)((ModByteLoader)this).m[i + start]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.layers = br.ReadInt32(); val2.overlayLayer = br.ReadInt32(); val2.glueLevel = br.ReadInt32(); val2.isUnique = br.ReadBoolean(); val2.dontRefreshDuration = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.removeMutatorIfNotMatching = br.ReadBoolean(); val2.matchLayersWithDamage = br.ReadBoolean(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.countGlueAchievement = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageUpPerAbilityActivateModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageUpPerAbilityActivateModifierModel val = (DamageUpPerAbilityActivateModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageUpPerAbilityActivateModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageUpPerAbilityActivateModel val = (DamageUpPerAbilityActivateModel)((ModByteLoader)this).m[i + start]; val.abilityName = (br.ReadBoolean() ? null : br.ReadString()); val.percentPerAbility = br.ReadSingle(); val.activationMax = br.ReadInt32(); } } private void Set_v_AddFreeTowerAfterRoundsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AddFreeTowerAfterRoundsModel val = (AddFreeTowerAfterRoundsModel)((ModByteLoader)this).m[i + start]; val.towerId = (br.ReadBoolean() ? null : br.ReadString()); val.rounds = br.ReadInt32(); } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } private void Set_v_RandomArcEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ArcEmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomArcEmissionModel val = (RandomArcEmissionModel)((ModByteLoader)this).m[i + start]; val.randomAngle = br.ReadSingle(); val.startOffset = br.ReadSingle(); } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCamoModel val = (TargetCamoModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstPrioCamoModel val = (TargetFirstPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastPrioCamoModel val = (TargetLastPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetClosePrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetClosePrioCamoModel val = (TargetClosePrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongPrioCamoModel val = (TargetStrongPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_CreateSoundOnProjectileCreatedModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCreatedModel val = (CreateSoundOnProjectileCreatedModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.type = (br.ReadBoolean() ? null : br.ReadString()); val.altType = (br.ReadBoolean() ? null : br.ReadString()); val.projectileId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_WeaponRateMinModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponRateMinModel val = (WeaponRateMinModel)((ModByteLoader)this).m[i + start]; val.min = br.ReadSingle(); } } protected override TowerModel Load(byte[] bytes) { //IL_06f6: Unknown result type (might be due to invalid IL or missing references) //IL_06fd: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); Read_a_TargetType_Array(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnMonkeyMoneyActivatedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PowerProTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PlayAnimationIndexModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterMoabModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SlowModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageUpPerAbilityActivateModifierModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageUpPerAbilityActivateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddFreeTowerAfterRoundsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetClosePrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCreatedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponRateMinModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class SuperMonkeyLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "SuperMonkeys.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_Vector3_Array() { //IL_0057: Unknown result type (might be due to invalid IL or missing references) int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_TowerRadiusModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerRadiusModel val = (TowerRadiusModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnAttachedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAttachedModel val = (CreateSoundOnAttachedModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_OverrideCamoDetectionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { OverrideCamoDetectionModel val = (OverrideCamoDetectionModel)((ModByteLoader)this).m[i + start]; val.detectCamo = br.ReadBoolean(); } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_RandomArcEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ArcEmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomArcEmissionModel val = (RandomArcEmissionModel)((ModByteLoader)this).m[i + start]; val.randomAngle = br.ReadSingle(); val.startOffset = br.ReadSingle(); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_KnockbackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { KnockbackModel val2 = (KnockbackModel)((ModByteLoader)this).m[i + start]; val2.moabMultiplier = br.ReadSingle(); val2.heavyMultiplier = br.ReadSingle(); val2.lightMultiplier = br.ReadSingle(); val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ShowTextOnHitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ShowTextOnHitModel val = (ShowTextOnHitModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.useTowerPosition = br.ReadBoolean(); val.text = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_UseAttackRotationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { UseAttackRotationModel val = (UseAttackRotationModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CritMultiplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CritMultiplierModel val = (CritMultiplierModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.lower = br.ReadInt32(); val.upper = br.ReadInt32(); val.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val.distributeToChildren = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToMiddleOfTargetsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToMiddleOfTargetsModel val = (RotateToMiddleOfTargetsModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetRightHandModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetRightHandModel val = (TargetRightHandModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCamoModel val = (TargetCamoModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetFirstPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstPrioCamoModel val = (TargetFirstPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastPrioCamoModel val = (TargetLastPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetClosePrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetClosePrioCamoModel val = (TargetClosePrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongPrioCamoModel val = (TargetStrongPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLeftHandModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLeftHandModel val = (TargetLeftHandModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DarkshiftModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00f9: Expected O, but got Unknown //IL_010d: Unknown result type (might be due to invalid IL or missing references) //IL_0117: Expected O, but got Unknown //IL_012b: Unknown result type (might be due to invalid IL or missing references) //IL_0135: Expected O, but got Unknown //IL_0149: Unknown result type (might be due to invalid IL or missing references) //IL_0153: Expected O, but got Unknown //IL_0167: Unknown result type (might be due to invalid IL or missing references) //IL_0171: Expected O, but got Unknown //IL_0185: Unknown result type (might be due to invalid IL or missing references) //IL_018f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("towerSpawnDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { DarkshiftModel val2 = (DarkshiftModel)((ModByteLoader)this).m[i + start]; val2.restrictToTowerRadius = br.ReadBoolean(); val2.placementZoneAssetRadius = br.ReadSingle(); val2.helperMessageLocsKey = (br.ReadBoolean() ? null : br.ReadString()); val2.yOffset = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.delaySpawnUntilEffectIsFinished = br.ReadBoolean(); val2.maxSpawnDelay = br.ReadSingle(); val2.resetRotation = br.ReadBoolean(); val2.placementZoneAsset = (AssetPathModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.darkshiftSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.disappearEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.reappearEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.createProjectileOnFinish = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.projectileEmission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AssetPathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { AssetPathModel val = (AssetPathModel)((ModByteLoader)this).m[i + start]; val.assetPath = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EmissionWithOffsetsModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionWithOffsetsModel val = (EmissionWithOffsetsModel)((ModByteLoader)this).m[i + start]; val.throwMarkerOffsetModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.projectileCount = br.ReadInt32(); val.rotateProjectileWithTower = br.ReadBoolean(); val.randomRotationCone = br.ReadSingle(); val.spreadProjectilesAcrossMarkers = br.ReadBoolean(); } } private void Set_v_ThrowMarkerOffsetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ThrowMarkerOffsetModel val = (ThrowMarkerOffsetModel)((ModByteLoader)this).m[i + start]; val.ejectX = br.ReadSingle(); val.ejectY = br.ReadSingle(); val.ejectZ = br.ReadSingle(); val.rotation = br.ReadSingle(); } } private void Set_v_RetargetOnContactModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("delay", (BindingFlags)60); for (int i = 0; i < count; i++) { RetargetOnContactModel val2 = (RetargetOnContactModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.minDistance = br.ReadSingle(); val2.maxBounces = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.targetType.id = br.ReadString(); val2.targetType.actionOnCreate = br.ReadBoolean(); val2.expireIfNoTargetFound = br.ReadBoolean(); } } private void Set_v_ImmunityModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Expected O, but got Unknown //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_0086: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ImmunityModel val2 = (ImmunityModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.excludeTags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DistributeToChildrenBloonModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DistributeToChildrenBloonModifierModel val = (DistributeToChildrenBloonModifierModel)((ModByteLoader)this).m[i + start]; val.bloonTag = (br.ReadBoolean() ? null : br.ReadString()); val.bloonTags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TowerBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorBuffModel val = (TowerBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.isGlobalRange = br.ReadBoolean(); } } private void Set_v_CanBuffIndicatorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { CanBuffIndicatorModel val = (CanBuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.isDisabled = br.ReadBoolean(); } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_RectangleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { RectangleFootprintModel val = (RectangleFootprintModel)((ModByteLoader)this).m[i + start]; val.xWidth = br.ReadSingle(); val.yWidth = br.ReadSingle(); } } private void Set_v_RotateToDefaultPositionTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToDefaultPositionTowerModel val = (RotateToDefaultPositionTowerModel)((ModByteLoader)this).m[i + start]; val.rotation = br.ReadSingle(); val.onlyOnReachingTier = br.ReadInt32(); } } private void Set_v_KeepTowerZAtTerrainHeightModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { KeepTowerZAtTerrainHeightModel val = (KeepTowerZAtTerrainHeightModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_WindModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Expected O, but got Unknown //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); for (int i = 0; i < count; i++) { WindModel val = (WindModel)((ModByteLoader)this).m[i + start]; val.distanceMin = br.ReadSingle(); val.distanceMax = br.ReadSingle(); val.chance = br.ReadSingle(); val.affectMoab = br.ReadBoolean(); val.distanceScaleForTags = br.ReadSingle(); val.distanceScaleForTagsTags = (br.ReadBoolean() ? null : br.ReadString()); val.distanceScaleForTagsTagsList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.speedMultiplier = br.ReadSingle(); val.tagFilter = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.tagInclusive = br.ReadBoolean(); } } private void Set_v_CheckTempleCanFireModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CheckTempleCanFireModel val = (CheckTempleCanFireModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_MonkeyTempleModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Expected O, but got Unknown //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown //IL_00b5: Unknown result type (might be due to invalid IL or missing references) //IL_00bf: Expected O, but got Unknown //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown //IL_019d: Unknown result type (might be due to invalid IL or missing references) //IL_01a7: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("weaponDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { MonkeyTempleModel val2 = (MonkeyTempleModel)((ModByteLoader)this).m[i + start]; val2.towerGroupCount = br.ReadInt32(); val2.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.towerEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.heroEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.darkTransformSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.darkAltTransformSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.animation = br.ReadInt32(); val2.upgradeAnimation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.templeId = (br.ReadBoolean() ? null : br.ReadString()); val2.checkForThereCanOnlyBeOne = br.ReadBoolean(); val2.transformationEffect = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.theAntiBloonSacrificeEffect = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.legendOfTheNightSacrificeEffect = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.transformationAnimation = br.ReadInt32(); val2.transformationWeaponDelay = br.ReadSingle(); val2.heroOverlapYAdjustment = br.ReadSingle(); } } private void Set_v_TempleTowerMutatorGroupModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerMutatorGroupModel_Fields(start, count); for (int i = 0; i < count; i++) { TempleTowerMutatorGroupModel val = (TempleTowerMutatorGroupModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadInt32(); val.towerSet = (TowerSet)br.ReadInt32(); } } private void Set_v_TowerMutatorGroupModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerMutatorGroupModel val = (TowerMutatorGroupModel)((ModByteLoader)this).m[i + start]; val.mutators = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TempleTowerMutatorGroupTierOneModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TempleTowerMutatorGroupModel_Fields(start, count); for (int i = 0; i < count; i++) { TempleTowerMutatorGroupTierOneModel val = (TempleTowerMutatorGroupTierOneModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TowerMutatorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { TowerMutatorModel val = (TowerMutatorModel)((ModByteLoader)this).m[i + start]; val.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val.conditionalId = (ConditionalModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AddAttackTowerMutatorModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Expected O, but got Unknown Set_v_TowerMutatorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddAttackTowerMutatorModel val2 = (AddAttackTowerMutatorModel)((ModByteLoader)this).m[i + start]; val2.attackModel = (TowerBehaviorModel)((ModByteLoader)this).m[br.ReadInt32()]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_SingleEmmisionTowardsTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmmisionTowardsTargetModel val = (SingleEmmisionTowardsTargetModel)((ModByteLoader)this).m[i + start]; val.offset = br.ReadSingle(); } } private void Set_v_FollowPathModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); for (int i = 0; i < count; i++) { FollowPathModel val2 = (FollowPathModel)((ModByteLoader)this).m[i + start]; val2.path = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.easePath = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.destroyAtEndOfPath = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_RotateModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("angle", (BindingFlags)60); for (int i = 0; i < count; i++) { RotateModel val2 = (RotateModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_UseParentEjectModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { UseParentEjectModel val = (UseParentEjectModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_UseTowerRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { UseTowerRangeModel val = (UseTowerRangeModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_ConditionalModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ConditionalModel val = (ConditionalModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CheckTempleUnderLevelModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ConditionalModel_Fields(start, count); for (int i = 0; i < count; i++) { CheckTempleUnderLevelModel val = (CheckTempleUnderLevelModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadInt32(); val.towerSet = (TowerSet)br.ReadInt32(); val.templeType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_ReloadTimeTowerMutatorModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerMutatorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ReloadTimeTowerMutatorModel val2 = (ReloadTimeTowerMutatorModel)((ModByteLoader)this).m[i + start]; val2.multiplier = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } private void Set_v_FilterAllExceptTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllExceptTargetModel val = (FilterAllExceptTargetModel)((ModByteLoader)this).m[i + start]; val.cantbePaused = br.ReadBoolean(); } } private void Set_v_TrackTargetModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("turnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { TrackTargetModel val2 = (TrackTargetModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.trackNewTargets = br.ReadBoolean(); val2.constantlyAquireNewTarget = br.ReadBoolean(); val2.maxSeekAngle = br.ReadSingle(); val2.ignoreSeekAngle = br.ReadBoolean(); val2.overrideRotation = br.ReadBoolean(); val2.useLifetimeAsDistance = br.ReadBoolean(); val2.expireOnContactTarget = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_CreateEffectOnContactModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnContactModel val = (CreateEffectOnContactModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_FilterWithTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterWithTagModel val = (FilterWithTagModel)((ModByteLoader)this).m[i + start]; val.moabTag = br.ReadBoolean(); val.camoTag = br.ReadBoolean(); val.growTag = br.ReadBoolean(); val.fortifiedTag = br.ReadBoolean(); val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.inclusive = br.ReadBoolean(); val.hasMoabTag = br.ReadBoolean(); } } private void Set_v_AttackMinimumRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackMinimumRangeModel val = (AttackMinimumRangeModel)((ModByteLoader)this).m[i + start]; val.minimumRange = br.ReadSingle(); } } private void Set_v_DamageTowerMutatorModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerMutatorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { DamageTowerMutatorModel val2 = (DamageTowerMutatorModel)((ModByteLoader)this).m[i + start]; val2.damage = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileSpeedTowerMutatorModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerMutatorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileSpeedTowerMutatorModel val2 = (ProjectileSpeedTowerMutatorModel)((ModByteLoader)this).m[i + start]; val2.speedModifier = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CreateTowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateTowerModel val = (CreateTowerModel)((ModByteLoader)this).m[i + start]; val.tower = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val.height = br.ReadSingle(); val.positionAtTarget = br.ReadBoolean(); val.destroySubTowersOnCreateNewTower = br.ReadBoolean(); val.useProjectileRotation = br.ReadBoolean(); val.useParentTargetPriority = br.ReadBoolean(); val.carryMutatorsFromDestroyedTower = br.ReadBoolean(); } } private void Set_v_SavedSubTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SavedSubTowerModel val = (SavedSubTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TowerExpireOnParentDestroyedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerExpireOnParentDestroyedModel val = (TowerExpireOnParentDestroyedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreditPopsToParentTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreditPopsToParentTowerModel val = (CreditPopsToParentTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FireFromAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FireFromAirUnitModel val = (FireFromAirUnitModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AlternateProjectileModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AlternateProjectileModel val = (AlternateProjectileModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emissionModel = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.interval = br.ReadInt32(); val.alternateAnimation = br.ReadInt32(); val.priority = br.ReadInt32(); } } private void Set_v_CirclePatternModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { CirclePatternModel val = (CirclePatternModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); val.reverse = br.ReadBoolean(); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.displayCount = br.ReadInt32(); } } private void Set_v_TargetFirstAirUnitModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstAirUnitModel val = (TargetFirstAirUnitModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_AirUnitModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AirUnitModel val = (AirUnitModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.displayScale = br.ReadSingle(); val.isAirUnitSelectable = br.ReadBoolean(); val.selectableRadius = br.ReadSingle(); val.blocksPlacement = br.ReadBoolean(); val.blockingRadius = br.ReadSingle(); } } private void Set_v_PathMovementModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PathMovementModel val = (PathMovementModel)((ModByteLoader)this).m[i + start]; val.speed = br.ReadSingle(); val.rotation = br.ReadSingle(); val.bankRotation = br.ReadSingle(); val.bankRotationMul = br.ReadSingle(); val.ignoreTargetType = br.ReadBoolean(); val.catchUpSpeed = br.ReadSingle(); val.takeOffTime = br.ReadSingle(); val.takeOffExponent = br.ReadSingle(); val.takeOffAnimTime = br.ReadSingle(); val.takeOffScale = br.ReadSingle(); val.takeOffScaleExponent = br.ReadSingle(); val.takeOffPitch = br.ReadSingle(); val.takeOffPitchExponent = br.ReadSingle(); val.fixedPathSupplierId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_SubTowerFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SubTowerFilterModel val = (SubTowerFilterModel)((ModByteLoader)this).m[i + start]; val.baseSubTowerId = (br.ReadBoolean() ? null : br.ReadString()); val.baseSubTowerIds = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.maxNumberOfSubTowers = br.ReadSingle(); val.checkForPreExisting = br.ReadBoolean(); } } private void Set_v_PierceTowerMutatorModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerMutatorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { PierceTowerMutatorModel val2 = (PierceTowerMutatorModel)((ModByteLoader)this).m[i + start]; val2.pierce = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileSizeTowerMutatorModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerMutatorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileSizeTowerMutatorModel val2 = (ProjectileSizeTowerMutatorModel)((ModByteLoader)this).m[i + start]; val2.sizeModifier = br.ReadSingle(); val2.assetSizeModifier = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_WindChanceTowerMutatorModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerMutatorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { WindChanceTowerMutatorModel val2 = (WindChanceTowerMutatorModel)((ModByteLoader)this).m[i + start]; val2.windChance = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_FilterOutTagModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOutTagModel val = (FilterOutTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.disableWhenSupportMutatorIDs = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RemoveMutatorsFromBloonModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveMutatorsFromBloonModel val = (RemoveMutatorsFromBloonModel)((ModByteLoader)this).m[i + start]; val.key = (br.ReadBoolean() ? null : br.ReadString()); val.keys = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.mutatorIds = (br.ReadBoolean() ? null : br.ReadString()); val.mutatorIdList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CollideExtraPierceReductionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CollideExtraPierceReductionModel val = (CollideExtraPierceReductionModel)((ModByteLoader)this).m[i + start]; val.bloonTag = (br.ReadBoolean() ? null : br.ReadString()); val.extraAmount = br.ReadInt32(); val.destroyProjectileIfPierceNotEnough = br.ReadBoolean(); } } private void Set_v_FilterAllModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllModel val = (FilterAllModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TowerExpireModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TowerExpireModel val2 = (TowerExpireModel)((ModByteLoader)this).m[i + start]; val2.expireOnRoundComplete = br.ReadBoolean(); val2.expireOnDefeatScreen = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.rounds = br.ReadInt32(); } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_InstantModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { InstantModel val = (InstantModel)((ModByteLoader)this).m[i + start]; val.destroyIfInvalid = br.ReadBoolean(); val.ignoreTargetZ = br.ReadBoolean(); val.dontFollowTarget = br.ReadBoolean(); } } private void Set_v_WeaponRateMinModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponRateMinModel val = (WeaponRateMinModel)((ModByteLoader)this).m[i + start]; val.min = br.ReadSingle(); } } private void Set_v_RandomPositionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { RandomPositionModel val = (RandomPositionModel)((ModByteLoader)this).m[i + start]; val.minDistance = br.ReadSingle(); val.maxDistance = br.ReadSingle(); val.targetRadius = br.ReadSingle(); val.targetRadiusSquared = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); val.pointDistance = br.ReadSingle(); val.dontUseTowerPosition = br.ReadBoolean(); val.areaType = (br.ReadBoolean() ? null : br.ReadString()); val.useInverted = br.ReadBoolean(); val.ignoreTerrain = br.ReadBoolean(); val.idealDistanceWithinTrack = br.ReadSingle(); val.towerSet = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_RangeTowerMutatorModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerMutatorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { RangeTowerMutatorModel val2 = (RangeTowerMutatorModel)((ModByteLoader)this).m[i + start]; val2.rangeIncrease = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AddBehaviorToTowerMutatorModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerMutatorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBehaviorToTowerMutatorModel val2 = (AddBehaviorToTowerMutatorModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PerRoundCashBonusTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PerRoundCashBonusTowerModel val = (PerRoundCashBonusTowerModel)((ModByteLoader)this).m[i + start]; val.cashPerRound = br.ReadSingle(); val.cashRoundBonusMultiplier = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.distributeCash = br.ReadBoolean(); } } private void Set_v_BonusCashZoneModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BonusCashZoneModel val = (BonusCashZoneModel)((ModByteLoader)this).m[i + start]; val.multiplier = br.ReadSingle(); val.stackName = (br.ReadBoolean() ? null : br.ReadString()); val.groupName = (br.ReadBoolean() ? null : br.ReadString()); val.stackLimit = br.ReadInt32(); } } private void Set_v_SupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SupportModel val = (SupportModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.isGlobal = br.ReadBoolean(); val.isCustomRadius = br.ReadBoolean(); val.customRadius = br.ReadSingle(); val.appliesToOwningTower = br.ReadBoolean(); val.showBuffIcon = br.ReadBoolean(); val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.onlyAffectParagon = br.ReadBoolean(); } } private void Set_v_RateSupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0097: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { RateSupportModel val = (RateSupportModel)((ModByteLoader)this).m[i + start]; val.multiplier = br.ReadSingle(); val.isUnique = br.ReadBoolean(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.priority = br.ReadInt32(); val.buffDisplayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DiscountZoneModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { DiscountZoneModel val = (DiscountZoneModel)((ModByteLoader)this).m[i + start]; val.discountMultiplier = br.ReadSingle(); val.stackLimit = br.ReadInt32(); val.stackName = (br.ReadBoolean() ? null : br.ReadString()); val.affectSelf = br.ReadBoolean(); val.tierCap = br.ReadInt32(); val.tierMin = br.ReadInt32(); val.towerBaseIds = (br.ReadBoolean() ? null : br.ReadString()); val.towerBaseIdList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.isBuffFromArea = br.ReadBoolean(); val.upgradeId = (br.ReadBoolean() ? null : br.ReadString()); val.dontAffectOthersInCoop = br.ReadBoolean(); val.isGlobal = br.ReadBoolean(); } } private void Set_v_PierceSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { PierceSupportModel val = (PierceSupportModel)((ModByteLoader)this).m[i + start]; val.pierce = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); } } private void Set_v_RangeSupportModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { RangeSupportModel val = (RangeSupportModel)((ModByteLoader)this).m[i + start]; val.multiplier = br.ReadSingle(); val.additive = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); val.maxStacks = br.ReadInt32(); } } private void Set_v_DamageSupportModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_SupportModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageSupportModel val = (DamageSupportModel)((ModByteLoader)this).m[i + start]; val.increase = br.ReadSingle(); val.mutatorId = (br.ReadBoolean() ? null : br.ReadString()); val.isUnique = br.ReadBoolean(); } } private void Set_v_TempleTowerMutatorGroupTierTwoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TempleTowerMutatorGroupModel_Fields(start, count); for (int i = 0; i < count; i++) { TempleTowerMutatorGroupTierTwoModel val = (TempleTowerMutatorGroupTierTwoModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FigureEightPatternModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { FigureEightPatternModel val = (FigureEightPatternModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); val.rotated = br.ReadBoolean(); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.displayCount = br.ReadInt32(); val.useTowerPosition = br.ReadBoolean(); } } protected override TowerModel Load(byte[] bytes) { //IL_116b: Unknown result type (might be due to invalid IL or missing references) //IL_1172: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); Read_a_Vector3_Array(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TowerRadiusModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAttachedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_OverrideCamoDetectionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_KnockbackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ShowTextOnHitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UseAttackRotationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CritMultiplierModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToMiddleOfTargetsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetRightHandModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetClosePrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLeftHandModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DarkshiftModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AssetPathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionWithOffsetsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ThrowMarkerOffsetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RetargetOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ImmunityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DistributeToChildrenBloonModifierModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CanBuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RectangleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToDefaultPositionTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_KeepTowerZAtTerrainHeightModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WindModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CheckTempleCanFireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MonkeyTempleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TempleTowerMutatorGroupTierOneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddAttackTowerMutatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmmisionTowardsTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FollowPathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UseParentEjectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UseTowerRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CheckTempleUnderLevelModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ReloadTimeTowerMutatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllExceptTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TrackTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterWithTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackMinimumRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageTowerMutatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileSpeedTowerMutatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SavedSubTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TowerExpireOnParentDestroyedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreditPopsToParentTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FireFromAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AlternateProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CirclePatternModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstAirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AirUnitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PathMovementModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SubTowerFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PierceTowerMutatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileSizeTowerMutatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WindChanceTowerMutatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOutTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveMutatorsFromBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CollideExtraPierceReductionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TowerExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_InstantModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponRateMinModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RandomPositionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RangeTowerMutatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToTowerMutatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PerRoundCashBonusTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BonusCashZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RateSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DiscountZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PierceSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RangeSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageSupportModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TempleTowerMutatorGroupTierTwoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FigureEightPatternModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class TackShooterLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "TackShooters.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetCloseModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCloseModel val = (TargetCloseModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ActivateAttackModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { ActivateAttackModel val2 = (ActivateAttackModel)((ModByteLoader)this).m[i + start]; val2.attacks = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.processOnActivate = br.ReadBoolean(); val2.cancelIfNoTargets = br.ReadBoolean(); val2.turnOffExisting = br.ReadBoolean(); val2.endOnRoundEnd = br.ReadBoolean(); val2.endOnDefeatScreen = br.ReadBoolean(); val2.isOneShot = br.ReadBoolean(); val2.isSaved = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_SpinModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("rotationPerSecond", (BindingFlags)60); for (int i = 0; i < count; i++) { SpinModel val2 = (SpinModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_LinkProjectileRadiusToTowerRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LinkProjectileRadiusToTowerRangeModel val = (LinkProjectileRadiusToTowerRangeModel)((ModByteLoader)this).m[i + start]; val.projectileModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.baseTowerRange = br.ReadSingle(); val.projectileRadiusOffset = br.ReadSingle(); val.displayRadius = br.ReadSingle(); } } private void Set_v_FilterBloonIfDamageTypeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterBloonIfDamageTypeModel val = (FilterBloonIfDamageTypeModel)((ModByteLoader)this).m[i + start]; val.ifCantHitBloonProperties = (BloonProperties)br.ReadInt32(); val.damageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_LinkDisplayScaleToTowerRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { LinkDisplayScaleToTowerRangeModel val = (LinkDisplayScaleToTowerRangeModel)((ModByteLoader)this).m[i + start]; val.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val.baseTowerRange = br.ReadSingle(); val.displayRadius = br.ReadSingle(); val.hideIfAttackPausedId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_SwitchTargetSupplierOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SwitchTargetSupplierOnUpgradeModel val = (SwitchTargetSupplierOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.targetSupplierName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectWhileAttackingModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectWhileAttackingModel val = (CreateEffectWhileAttackingModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.exitEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmmisionTowardsTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmmisionTowardsTargetModel val = (SingleEmmisionTowardsTargetModel)((ModByteLoader)this).m[i + start]; val.offset = br.ReadSingle(); } } private void Set_v_FilterAllExceptTargetModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterAllExceptTargetModel val = (FilterAllExceptTargetModel)((ModByteLoader)this).m[i + start]; val.cantbePaused = br.ReadBoolean(); } } private void Set_v_TrackTargetModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("turnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { TrackTargetModel val2 = (TrackTargetModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.trackNewTargets = br.ReadBoolean(); val2.constantlyAquireNewTarget = br.ReadBoolean(); val2.maxSeekAngle = br.ReadSingle(); val2.ignoreSeekAngle = br.ReadBoolean(); val2.overrideRotation = br.ReadBoolean(); val2.useLifetimeAsDistance = br.ReadBoolean(); val2.expireOnContactTarget = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AddBehaviorToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBehaviorToBloonModel val2 = (AddBehaviorToBloonModel)((ModByteLoader)this).m[i + start]; val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.layers = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isUnique = br.ReadBoolean(); val2.lastAppliesFirst = br.ReadBoolean(); val2.collideThisFrame = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.glueLevel = br.ReadInt32(); val2.applyOnlyIfDamaged = br.ReadBoolean(); val2.stackCount = br.ReadInt32(); val2.dontCopy = br.ReadBoolean(); val2.parentDamageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_BloonBehaviorModelWithTowerTracking_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModelWithTowerTracking val = (BloonBehaviorModelWithTowerTracking)((ModByteLoader)this).m[i + start]; } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageOverTimeModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); FieldInfo field2 = val.GetField("initialDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { DamageOverTimeModel val2 = (DamageOverTimeModel)((ModByteLoader)this).m[i + start]; val2.damage = br.ReadSingle(); val2.payloadCount = br.ReadInt32(); val2.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val2.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val2.displayLifetime = br.ReadSingle(); val2.triggerImmediate = br.ReadBoolean(); val2.rotateEffectWithBloon = br.ReadBoolean(); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.damageOnDestroy = br.ReadBoolean(); val2.overrideDistributionBlocker = br.ReadBoolean(); val2.distributeToChildren = br.ReadBoolean(); val2.damageModifierModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isFireBased = br.ReadBoolean(); } } private void Set_v_CreateEffectOnExhaustFractionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustFractionModel val = (CreateEffectOnExhaustFractionModel)((ModByteLoader)this).m[i + start]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.fraction = br.ReadSingle(); val.durationFraction = br.ReadSingle(); val.randomRotation = br.ReadBoolean(); val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetFirstModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstModel val = (TargetFirstModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastModel val = (TargetLastModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongModel val = (TargetStrongModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } protected override TowerModel Load(byte[] bytes) { //IL_0770: Unknown result type (might be due to invalid IL or missing references) //IL_0777: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetCloseModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateAttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SpinModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LinkProjectileRadiusToTowerRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterBloonIfDamageTypeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_LinkDisplayScaleToTowerRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SwitchTargetSupplierOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectWhileAttackingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmmisionTowardsTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterAllExceptTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TrackTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageOverTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustFractionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class TechBotPrimeLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "TechBotPrimes.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_PowerProTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PowerProTowerModel val = (PowerProTowerModel)((ModByteLoader)this).m[i + start]; val.powerId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PlayAnimationIndexModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { PlayAnimationIndexModel val = (PlayAnimationIndexModel)((ModByteLoader)this).m[i + start]; val.placeAnimation = br.ReadInt32(); val.upgradeAnimation = br.ReadInt32(); } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_TechAmbushBotSpawnerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TechAmbushBotSpawnerModel val = (TechAmbushBotSpawnerModel)((ModByteLoader)this).m[i + start]; val.tower = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val.withinTowerRange = br.ReadBoolean(); val.targetDisplay = ModContent.CreatePrefabReference(br.ReadString()); val.targetDisplayInvalid = ModContent.CreatePrefabReference(br.ReadString()); val.spawnCooldown = br.ReadSingle(); val.towerLimit = br.ReadInt32(); } } private void Set_v_SavedSubTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SavedSubTowerModel val = (SavedSubTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_IgnoreAllMutatorsTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { IgnoreAllMutatorsTowerModel val = (IgnoreAllMutatorsTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AmbushTechModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AmbushTechModel val = (AmbushTechModel)((ModByteLoader)this).m[i + start]; val.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val.radius = br.ReadSingle(); } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_TechBotLinkModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Expected O, but got Unknown //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_012a: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TechBotLinkModel val = (TechBotLinkModel)((ModByteLoader)this).m[i + start]; val.selectionObjectPath = ModContent.CreatePrefabReference(br.ReadString()); val.isSelectableGameObject = ModContent.CreatePrefabReference(br.ReadString()); val.activateSound = ModContent.CreateAudioClipReference(br.ReadString()); val.confirmSound = ModContent.CreateAudioClipReference(br.ReadString()); val.activatedTowerAbilityEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lineDisplayPath = ModContent.CreatePrefabReference(br.ReadString()); val.lineDotOffset = br.ReadSingle(); val.lineDotSpacing = br.ReadSingle(); val.activateAnimationState = br.ReadInt32(); val.linkAnimationState = br.ReadInt32(); val.idleAnimationState = br.ReadInt32(); val.travelEffectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.travelEffectSpeed = br.ReadSingle(); val.ambushTechActive = br.ReadBoolean(); val.linkedTowerMax = br.ReadInt32(); val.zoneActive = br.ReadBoolean(); val.activateInRadius = br.ReadBoolean(); } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_TechBotUnlinkModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TechBotUnlinkModel val = (TechBotUnlinkModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_AmbushPointsSettingModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lineDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { AmbushPointsSettingModel val2 = (AmbushPointsSettingModel)((ModByteLoader)this).m[i + start]; val2.isSelectable = br.ReadBoolean(); val2.pointSwitchDistance = br.ReadSingle(); val2.pointSwitchDistanceSquared = br.ReadSingle(); val2.minimumPointDistance = br.ReadSingle(); val2.minimumPointDistanceSquared = br.ReadSingle(); val2.dotSpacing = br.ReadSingle(); val2.dotOffset = br.ReadSingle(); val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.lineDisplay = ModContent.CreatePrefabReference(br.ReadString()); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_NoAmbushSettingModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { NoAmbushSettingModel val = (NoAmbushSettingModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TechLinkCooldownScaleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TechLinkCooldownScaleModel val = (TechLinkCooldownScaleModel)((ModByteLoader)this).m[i + start]; val.isUnique = br.ReadBoolean(); val.abilityCooldownSpeedScale = br.ReadSingle(); val.mutatorPriority = br.ReadInt32(); val.displayPath = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_TechLinkActivateRadiusModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TechLinkActivateRadiusModel val = (TechLinkActivateRadiusModel)((ModByteLoader)this).m[i + start]; val.cooldownReductionTimer = br.ReadSingle(); val.cooldownReductionChance = br.ReadSingle(); val.cooldownReductionAmount = br.ReadSingle(); val.towersSkipCooldownPercent = br.ReadSingle(); } } private void Set_v_TechBotTriggerToggleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TechBotTriggerToggleModel val = (TechBotTriggerToggleModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ActivateTechBotModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ActivateTechBotModel val = (ActivateTechBotModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TechLinkAbilityProjectileDamageModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TechLinkAbilityProjectileDamageModel val = (TechLinkAbilityProjectileDamageModel)((ModByteLoader)this).m[i + start]; val.isUnique = br.ReadBoolean(); val.abilityDamageModifier = br.ReadSingle(); val.mutatorPriority = br.ReadInt32(); val.displayPath = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_TechLinkTriggerUnlinkedAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TechLinkTriggerUnlinkedAbilityModel val = (TechLinkTriggerUnlinkedAbilityModel)((ModByteLoader)this).m[i + start]; val.isUnique = br.ReadBoolean(); val.displayPath = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_TechLinkActivateTowerDamageModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TechLinkActivateTowerDamageModel val = (TechLinkActivateTowerDamageModel)((ModByteLoader)this).m[i + start]; val.isUnique = br.ReadBoolean(); val.abilityDamageModifier = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.mutatorPriority = br.ReadInt32(); val.displayPath = ModContent.CreatePrefabReference(br.ReadString()); } } protected override TowerModel Load(byte[] bytes) { //IL_0572: Unknown result type (might be due to invalid IL or missing references) //IL_0579: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PowerProTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PlayAnimationIndexModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TechAmbushBotSpawnerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SavedSubTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_IgnoreAllMutatorsTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AmbushTechModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TechBotLinkModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TechBotUnlinkModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AmbushPointsSettingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_NoAmbushSettingModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TechLinkCooldownScaleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TechLinkActivateRadiusModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TechBotTriggerToggleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ActivateTechBotModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TechLinkAbilityProjectileDamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TechLinkTriggerUnlinkedAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TechLinkActivateTowerDamageModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } public class WizardMonkeyLoader : ModByteLoader { private const BindingFlags bindFlags = (BindingFlags)60; private BinaryReader br = null; private int mIndex = 1; protected override string BytesFileName => "WizardMonkeys.bytes"; private void LinkArray() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Il2CppReferenceArray val = (Il2CppReferenceArray)((ModByteLoader)this).m[num2]; for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (T)((ModByteLoader)this).m[br.ReadInt32()]; } } } private void LinkList() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); List val = (List)((ModByteLoader)this).m[num2]; for (int j = 0; j < val.Capacity; j++) { val.Add((T)((ModByteLoader)this).m[br.ReadInt32()]); } } } private void LinkDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); Dictionary val = (Dictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void LinkSerializableDictionary() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { string text = br.ReadString(); int num4 = br.ReadInt32(); val[text] = (T)((ModByteLoader)this).m[num4]; } } } private void LinkModelSerializableDictionary() where T : Model { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { int num2 = br.ReadInt32(); SerializableDictionary val = (SerializableDictionary)((ModByteLoader)this).m[num2]; int num3 = br.ReadInt32(); for (int j = 0; j < num3; j++) { int num4 = br.ReadInt32(); T val2 = (T)((ModByteLoader)this).m[num4]; val[((Model)val2).name] = val2; } } } private void Read_a_Int32_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStructArray val = new Il2CppStructArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_String_Array() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppStringArray val = new Il2CppStringArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = (br.ReadBoolean() ? null : br.ReadString()); } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_TargetType_Array() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); Il2CppReferenceArray val = new Il2CppReferenceArray((long)num3); for (int j = 0; j < ((Il2CppArrayBase)(object)val).Length; j++) { ((Il2CppArrayBase)(object)val)[j] = new TargetType { id = br.ReadString(), isActionable = br.ReadBoolean() }; } ((ModByteLoader)this).m[mIndex++] = val; } } private void Read_a_AreaType_Array() { int num = br.ReadInt32(); int num2 = num; for (int i = 0; i < num2; i++) { int num3 = br.ReadInt32(); AreaType[] array = (AreaType[])(object)new AreaType[num3]; for (int j = 0; j < array.Length; j++) { array[j] = (AreaType)br.ReadInt32(); } ((ModByteLoader)this).m[mIndex++] = array; } } private void CreateArraySet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Il2CppReferenceArray((long)br.ReadInt32()); } } private void CreateListSet() where T : Il2CppObjectBase { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new List(br.ReadInt32()); } } private void CreateDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new Dictionary(br.ReadInt32()); } } private void CreateSerializableDictionarySet() { int num = br.ReadInt32(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = new SerializableDictionary(br.ReadInt32()); } } private void Create_Records() where T : Il2CppObjectBase { int num = br.ReadInt32(); Type val = Il2CppType.Of(); for (int i = 0; i < num; i++) { ((ModByteLoader)this).m[mIndex++] = ((Il2CppObjectBase)FormatterServices.GetUninitializedObject(val)).Cast(); } } private void Set_v_EntityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityModel val = (EntityModel)((ModByteLoader)this).m[i + start]; val.baseId = (br.ReadBoolean() ? null : br.ReadString()); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.radius = br.ReadSingle(); } } private void Set_v_Model_Fields(int start, int count) { //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Expected O, but got Unknown Type val = Il2CppType.Of(); FieldInfo field = val.GetField("runtimeTypeIndex", (BindingFlags)60); FieldInfo field2 = val.GetField("isTower", (BindingFlags)60); FieldInfo field3 = val.GetField("childDependants", (BindingFlags)60); FieldInfo field4 = val.GetField("_name", (BindingFlags)60); for (int i = 0; i < count; i++) { Model val2 = (Model)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadBoolean())); field3.SetValue((Object)(object)val2, (Object)(object)(List)((ModByteLoader)this).m[br.ReadInt32()]); field4.SetValue((Object)(object)val2, Object.op_Implicit(br.ReadBoolean() ? null : string.Intern(br.ReadString()))); } } private void Set_v_TowerModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Expected O, but got Unknown Set_v_EntityModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerModel val = (TowerModel)((ModByteLoader)this).m[i + start]; val.cost = br.ReadSingle(); val.range = br.ReadSingle(); val.ignoreBlockers = br.ReadBoolean(); val.isGlobalRange = br.ReadBoolean(); val.tier = br.ReadInt32(); val.tiers = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val.towerSet = (TowerSet)br.ReadInt32(); val.towerTheme = (br.ReadBoolean() ? null : br.ReadString()); val.icon = ModContent.CreateSpriteReference(br.ReadString()); val.icon3D = ModContent.CreatePrefabReference(br.ReadString()); val.portrait = ModContent.CreateSpriteReference(br.ReadString()); val.instaIcon = ModContent.CreateSpriteReference(br.ReadString()); val.areaTypes = Il2CppStructArray.op_Implicit((AreaType[])((ModByteLoader)this).m[br.ReadInt32()]); val.mods = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.ignoreTowerForSelection = br.ReadBoolean(); val.footprint = (FootprintModel)((ModByteLoader)this).m[br.ReadInt32()]; val.dontDisplayUpgrades = br.ReadBoolean(); val.emoteSpriteSmall = ModContent.CreateSpriteReference(br.ReadString()); val.emoteSpriteLarge = ModContent.CreateSpriteReference(br.ReadString()); val.doesntRotate = br.ReadBoolean(); val.hideInfoButton = br.ReadBoolean(); val.bonusSelectionRadius = br.ReadSingle(); val.upgrades = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.appliedUpgrades = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.targetTypes = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.paragonUpgrade = (UpgradePathModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isSubTower = br.ReadBoolean(); val.isBakable = br.ReadBoolean(); val.powerName = (br.ReadBoolean() ? null : br.ReadString()); val.showPowerTowerBuffs = br.ReadBoolean(); val.animationSpeed = br.ReadSingle(); val.towerSelectionMenuThemeId = (br.ReadBoolean() ? null : br.ReadString()); val.secondarySelectionMenu = ModContent.CreatePrefabReference(br.ReadString()); val.ignoreCoopAreas = br.ReadBoolean(); val.ignoreAreaChanges = br.ReadBoolean(); val.canAlwaysBeSold = br.ReadBoolean(); val.blockSelling = br.ReadBoolean(); val.isParagon = br.ReadBoolean(); val.ignoreMaxSellPercent = br.ReadBoolean(); val.isStunned = br.ReadBoolean(); val.ignoreStun = br.ReadBoolean(); val.isPrimedForRedeploy = br.ReadBoolean(); val.geraldoItemName = (br.ReadBoolean() ? null : br.ReadString()); val.sellbackModifierAdd = br.ReadSingle(); val.skinName = (br.ReadBoolean() ? null : br.ReadString()); val.dontAddMutatorsFromParent = br.ReadBoolean(); val.showBuffs = br.ReadBoolean(); val.destroyTowerOnRedistribution = br.ReadBoolean(); val.displayScale = br.ReadSingle(); val.useAirUnitHeight = br.ReadBoolean(); val.isTransformedTower = br.ReadBoolean(); val.cantBeStunned = br.ReadBoolean(); val.frontierId = br.ReadInt32(); } } private void Set_v_ApplyModModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { ApplyModModel val = (ApplyModModel)((ModByteLoader)this).m[i + start]; val.mod = (br.ReadBoolean() ? null : br.ReadString()); val.target = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_FootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { FootprintModel val = (FootprintModel)((ModByteLoader)this).m[i + start]; val.doesntBlockTowerPlacement = br.ReadBoolean(); val.ignoresPlacementCheck = br.ReadBoolean(); val.ignoresTowerOverlap = br.ReadBoolean(); } } private void Set_v_TowerBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorModel val = (TowerBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EntityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EntityBehaviorModel val = (EntityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CircleFootprintModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FootprintModel_Fields(start, count); for (int i = 0; i < count; i++) { CircleFootprintModel val = (CircleFootprintModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); } } private void Set_v_UpgradePathModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { UpgradePathModel val = (UpgradePathModel)((ModByteLoader)this).m[i + start]; val.tower = (br.ReadBoolean() ? null : br.ReadString()); val.upgrade = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_CreateEffectOnPlaceModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnPlaceModel val = (CreateEffectOnPlaceModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_EffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EffectModel val = (EffectModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.useCenterPosition = br.ReadBoolean(); val.useTransformPosition = br.ReadBoolean(); val.useTransfromRotation = br.ReadBoolean(); val.destroyOnTransformDestroy = br.ReadBoolean(); val.alwaysUseAge = br.ReadBoolean(); val.useRoundTime = br.ReadBoolean(); } } private void Set_v_CreateSoundOnUpgradeModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnUpgradeModel val = (CreateSoundOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound6 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound7 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound8 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SoundModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { SoundModel val = (SoundModel)((ModByteLoader)this).m[i + start]; val.assetId = ModContent.CreateAudioClipReference(br.ReadString()); } } private void Set_v_CreateSoundOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnSellModel val = (CreateSoundOnSellModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnSellModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnSellModel val = (CreateEffectOnSellModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown //IL_0161: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnTowerPlaceModel val = (CreateSoundOnTowerPlaceModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.waterSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.reactSoundAlt3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.towerType1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin1 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin2 = (br.ReadBoolean() ? null : br.ReadString()); val.towerType3 = (br.ReadBoolean() ? null : br.ReadString()); val.towerSkin3 = (br.ReadBoolean() ? null : br.ReadString()); val.reactDelay = br.ReadSingle(); } } private void Set_v_CreateEffectOnUpgradeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnUpgradeModel val = (CreateEffectOnUpgradeModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.createOnAirUnit = br.ReadBoolean(); } } private void Set_v_AttackModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackModel val = (AttackModel)((ModByteLoader)this).m[i + start]; val.weapons = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val.range = br.ReadSingle(); val.targetProvider = (TargetSupplierModel)((ModByteLoader)this).m[br.ReadInt32()]; val.offsetX = br.ReadSingle(); val.offsetY = br.ReadSingle(); val.offsetZ = br.ReadSingle(); val.attackThroughWalls = br.ReadBoolean(); val.fireWithoutTarget = br.ReadBoolean(); val.framesBeforeRetarget = br.ReadInt32(); val.addsToSharedGrid = br.ReadBoolean(); val.sharedGridRange = br.ReadSingle(); val.drawRangeCircle = br.ReadBoolean(); val.disableOnCreate = br.ReadBoolean(); val.fixedRange = br.ReadBoolean(); } } private void Set_v_WeaponModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field2 = val.GetField("rate", (BindingFlags)60); FieldInfo field3 = val.GetField("customStartCooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { WeaponModel val2 = (WeaponModel)((ModByteLoader)this).m[i + start]; val2.animation = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.ejectX = br.ReadSingle(); val2.ejectY = br.ReadSingle(); val2.ejectZ = br.ReadSingle(); val2.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.fireWithoutTarget = br.ReadBoolean(); val2.fireBetweenRounds = br.ReadBoolean(); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.useAttackPosition = br.ReadBoolean(); val2.startInCooldown = br.ReadBoolean(); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.animateOnMainAttack = br.ReadBoolean(); val2.isStunned = br.ReadBoolean(); val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_EmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionModel val = (EmissionModel)((ModByteLoader)this).m[i + start]; val.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SingleEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { SingleEmissionModel val = (SingleEmissionModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown Set_v_Model_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("checkCollisionInterval", (BindingFlags)60); for (int i = 0; i < count; i++) { ProjectileModel val2 = (ProjectileModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.id = (br.ReadBoolean() ? null : br.ReadString()); val2.maxPierce = br.ReadSingle(); val2.pierce = br.ReadSingle(); val2.scale = br.ReadSingle(); val2.ignoreBlockers = br.ReadBoolean(); val2.usePointCollisionWithBloons = br.ReadBoolean(); val2.canCollisionBeBlockedByMapLos = br.ReadBoolean(); val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.collisionPasses = (Il2CppStructArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.canCollideWithBloons = br.ReadBoolean(); val2.radius = br.ReadSingle(); val2.vsBlockerRadius = br.ReadSingle(); val2.hasDamageModifiers = br.ReadBoolean(); val2.dontUseCollisionChecker = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreNonTargetable = br.ReadBoolean(); val2.ignorePierceExhaustion = br.ReadBoolean(); val2.saveId = (br.ReadBoolean() ? null : br.ReadString()); val2.displayModel = (DisplayModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.cantCreateSubProjectiles = br.ReadBoolean(); } } private void Set_v_FilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { FilterModel val = (FilterModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_FilterInvisibleModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterInvisibleModel val = (FilterInvisibleModel)((ModByteLoader)this).m[i + start]; val.isActive = br.ReadBoolean(); val.ignoreBroadPhase = br.ReadBoolean(); } } private void Set_v_ProjectileBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorModel val = (ProjectileBehaviorModel)((ModByteLoader)this).m[i + start]; val.collisionPass = br.ReadInt32(); } } private void Set_v_DamageModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModel val = (DamageModel)((ModByteLoader)this).m[i + start]; val.damage = br.ReadSingle(); val.maxDamage = br.ReadSingle(); val.distributeToChildren = br.ReadBoolean(); val.overrideDistributeBlocker = br.ReadBoolean(); val.createPopEffect = br.ReadBoolean(); val.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); val.ignoreImmunityDestroy = br.ReadBoolean(); val.ignoreDamageMultipliers = br.ReadBoolean(); } } private void Set_v_TravelStraitModel_Fields(int start, int count) { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); FieldInfo field2 = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelStraitModel val2 = (TravelStraitModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_ProjectileFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileFilterModel val = (ProjectileFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_DisplayModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { DisplayModel val = (DisplayModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.layer = br.ReadInt32(); val.positionOffset = new Vector3(br.ReadSingle(), br.ReadSingle(), br.ReadSingle()); val.scale = br.ReadSingle(); val.ignoreRotation = br.ReadBoolean(); val.animationChanges = (List)((ModByteLoader)this).m[br.ReadInt32()]; val.delayedReveal = br.ReadSingle(); val.category = (DisplayCategory)br.ReadUInt16(); val.isAnimationPaused = br.ReadBoolean(); } } private void Set_v_AttackBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackBehaviorModel val = (AttackBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_RotateToTargetModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToTargetModel val = (RotateToTargetModel)((ModByteLoader)this).m[i + start]; val.onlyRotateDuringThrow = br.ReadBoolean(); val.useThrowMarkerHeight = br.ReadBoolean(); val.rotateOnlyOnThrow = br.ReadBoolean(); val.additionalRotation = br.ReadInt32(); val.rotateTower = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_AttackFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AttackFilterModel val = (AttackFilterModel)((ModByteLoader)this).m[i + start]; val.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_TargetCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetCamoModel val = (TargetCamoModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetSupplierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_AttackBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSupplierModel val = (TargetSupplierModel)((ModByteLoader)this).m[i + start]; val.isOnSubTower = br.ReadBoolean(); } } private void Set_v_TargetFirstPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetFirstPrioCamoModel val = (TargetFirstPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetLastPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetLastPrioCamoModel val = (TargetLastPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetClosePrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetClosePrioCamoModel val = (TargetClosePrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_TargetStrongPrioCamoModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetCamoModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetStrongPrioCamoModel val = (TargetStrongPrioCamoModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); } } private void Set_v_ArcEmissionModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("Count", (BindingFlags)60); for (int i = 0; i < count; i++) { ArcEmissionModel val2 = (ArcEmissionModel)((ModByteLoader)this).m[i + start]; val2.angle = br.ReadSingle(); val2.offset = br.ReadSingle(); val2.useProjectileRotation = br.ReadBoolean(); val2.useAirUnitRotation = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadInt32())); } } private void Set_v_CreateProjectileOnContactModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateProjectileOnContactModel val = (CreateProjectileOnContactModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emission = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.passOnCollidedWith = br.ReadBoolean(); val.dontCreateAtBloon = br.ReadBoolean(); val.passOnDirectionToContact = br.ReadBoolean(); } } private void Set_v_AgeModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AgeModel val2 = (AgeModel)((ModByteLoader)this).m[i + start]; val2.rounds = br.ReadInt32(); val2.useRoundTime = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.endOfRoundClearBypassModel = (EndOfRoundClearBypassModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateEffectOnContactModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnContactModel val = (CreateEffectOnContactModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_CreateSoundOnProjectileCollisionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCollisionModel val = (CreateSoundOnProjectileCollisionModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_RemoveBloonModifiersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RemoveBloonModifiersModel val = (RemoveBloonModifiersModel)((ModByteLoader)this).m[i + start]; val.cleanseRegen = br.ReadBoolean(); val.cleanseCamo = br.ReadBoolean(); val.cleanseLead = br.ReadBoolean(); val.cleanseFortified = br.ReadBoolean(); val.cleanseOnlyIfDamaged = br.ReadBoolean(); val.bloonTagExcludeList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.bloonTagExplicitList = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_WeaponBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { WeaponBehaviorModel val = (WeaponBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EjectEffectModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EjectEffectModel val = (EjectEffectModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.rotateToWeapon = br.ReadBoolean(); val.useEjectPoint = br.ReadBoolean(); val.useEmittedFrom = br.ReadBoolean(); val.useMainAttackRotation = br.ReadBoolean(); } } private void Set_v_FilterOnlyCamoInModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOnlyCamoInModel val = (FilterOnlyCamoInModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateEffectOnExhaustedModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExhaustedModel val = (CreateEffectOnExhaustedModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.assetId = ModContent.CreatePrefabReference(br.ReadString()); val.lifespan = br.ReadSingle(); val.fullscreen = (Fullscreen)br.ReadInt32(); val.randomRotation = br.ReadBoolean(); } } private void Set_v_RefreshPierceModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); for (int i = 0; i < count; i++) { RefreshPierceModel val2 = (RefreshPierceModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.isBuffedByRate = br.ReadBoolean(); } } private void Set_v_ClearHitBloonsModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); for (int i = 0; i < count; i++) { ClearHitBloonsModel val2 = (ClearHitBloonsModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_InstantModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { InstantModel val = (InstantModel)((ModByteLoader)this).m[i + start]; val.destroyIfInvalid = br.ReadBoolean(); val.ignoreTargetZ = br.ReadBoolean(); val.dontFollowTarget = br.ReadBoolean(); } } private void Set_v_DestroyProjectileIfTowerDestroyedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DestroyProjectileIfTowerDestroyedModel val = (DestroyProjectileIfTowerDestroyedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateSoundOnProjectileCreatedModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Expected O, but got Unknown //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Expected O, but got Unknown //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnProjectileCreatedModel val = (CreateSoundOnProjectileCreatedModel)((ModByteLoader)this).m[i + start]; val.sound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.sound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound1 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound3 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound4 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.altSound5 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.type = (br.ReadBoolean() ? null : br.ReadString()); val.altType = (br.ReadBoolean() ? null : br.ReadString()); val.projectileId = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_ZeroRotationModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ZeroRotationModel val = (ZeroRotationModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_TargetTrackOrDefaultModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetTrackOrDefaultModel val = (TargetTrackOrDefaultModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); val.useTowerRange = br.ReadBoolean(); val.forceTargetTrack = br.ReadBoolean(); val.useClosestTrack = br.ReadBoolean(); val.maxTrackOffset = br.ReadSingle(); } } private void Set_v_FilterOfftrackModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_FilterModel_Fields(start, count); for (int i = 0; i < count; i++) { FilterOfftrackModel val = (FilterOfftrackModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_ProjectileBehaviorWithOverlayModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { ProjectileBehaviorWithOverlayModel val = (ProjectileBehaviorWithOverlayModel)((ModByteLoader)this).m[i + start]; val.overlayType = (br.ReadBoolean() ? null : br.ReadString()); } } private void Set_v_AddBehaviorToBloonModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Expected O, but got Unknown Set_v_ProjectileBehaviorWithOverlayModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { AddBehaviorToBloonModel val2 = (AddBehaviorToBloonModel)((ModByteLoader)this).m[i + start]; val2.mutationId = (br.ReadBoolean() ? null : br.ReadString()); val2.layers = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.filter = (FilterModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.filters = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isUnique = br.ReadBoolean(); val2.lastAppliesFirst = br.ReadBoolean(); val2.collideThisFrame = br.ReadBoolean(); val2.cascadeMutators = br.ReadBoolean(); val2.glueLevel = br.ReadInt32(); val2.applyOnlyIfDamaged = br.ReadBoolean(); val2.stackCount = br.ReadInt32(); val2.dontCopy = br.ReadBoolean(); val2.parentDamageModel = (DamageModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.chance = br.ReadSingle(); val2.dontRemoveOnBloonDegrade = br.ReadBoolean(); } } private void Set_v_BloonBehaviorModelWithTowerTracking_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_BloonBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModelWithTowerTracking val = (BloonBehaviorModelWithTowerTracking)((ModByteLoader)this).m[i + start]; } } private void Set_v_BloonBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { BloonBehaviorModel val = (BloonBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageOverTimeModel_Fields(int start, int count) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown Set_v_BloonBehaviorModelWithTowerTracking_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("interval", (BindingFlags)60); FieldInfo field2 = val.GetField("initialDelay", (BindingFlags)60); for (int i = 0; i < count; i++) { DamageOverTimeModel val2 = (DamageOverTimeModel)((ModByteLoader)this).m[i + start]; val2.damage = br.ReadSingle(); val2.payloadCount = br.ReadInt32(); val2.immuneBloonProperties = (BloonProperties)br.ReadInt32(); val2.immuneBloonPropertiesOriginal = (BloonProperties)br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.displayPath = ModContent.CreatePrefabReference(br.ReadString()); val2.displayLifetime = br.ReadSingle(); val2.triggerImmediate = br.ReadBoolean(); val2.rotateEffectWithBloon = br.ReadBoolean(); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.damageOnDestroy = br.ReadBoolean(); val2.overrideDistributionBlocker = br.ReadBoolean(); val2.distributeToChildren = br.ReadBoolean(); val2.damageModifierModels = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.isFireBased = br.ReadBoolean(); } } private void Set_v_DamageModifierModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierModel val = (DamageModifierModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_DamageModifierForTagModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown Set_v_DamageModifierModel_Fields(start, count); for (int i = 0; i < count; i++) { DamageModifierForTagModel val = (DamageModifierForTagModel)((ModByteLoader)this).m[i + start]; val.tag = (br.ReadBoolean() ? null : br.ReadString()); val.tags = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.damageMultiplier = br.ReadSingle(); val.damageAddative = br.ReadSingle(); val.mustIncludeAllTags = br.ReadBoolean(); val.applyOverMaxDamage = br.ReadBoolean(); val.ignoreTag = br.ReadBoolean(); } } private void Set_v_NecromancerZoneModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { NecromancerZoneModel val = (NecromancerZoneModel)((ModByteLoader)this).m[i + start]; val.attackUsedForRangeModel = (AttackModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_NecromancerEmissionModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { NecromancerEmissionModel val = (NecromancerEmissionModel)((ModByteLoader)this).m[i + start]; val.minBloonsSpawnedPerWave = br.ReadInt32(); val.maxBloonsSpawnedPerWave = br.ReadInt32(); val.maxRbeSpawnedPerSecond = br.ReadInt32(); val.maxPathRandomRange = br.ReadInt32(); val.maxPiercePerBloon = br.ReadInt32(); val.maxPathOffset = br.ReadInt32(); val.maxRbeStored = br.ReadInt32(); val.rateStackMax = br.ReadInt32(); val.rateRbePerStack = br.ReadInt32(); val.damageStackMax = br.ReadInt32(); val.damageRbePerStack = br.ReadInt32(); val.roundsBeforeDecay = br.ReadInt32(); } } private void Set_v_TravelAlongPathModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TravelAlongPathModel val2 = (TravelAlongPathModel)((ModByteLoader)this).m[i + start]; val2.range = br.ReadSingle(); val2.reverse = br.ReadBoolean(); val2.disableRotateWithPathDirection = br.ReadBoolean(); val2.speed = br.ReadSingle(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.rotationLerp = br.ReadSingle(); } } private void Set_v_NecroEmissionFilterModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { NecroEmissionFilterModel val = (NecroEmissionFilterModel)((ModByteLoader)this).m[i + start]; val.isPriceOfDakrnessEmission = br.ReadBoolean(); } } private void Set_v_TargetTrackModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetTrackModel val = (TargetTrackModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.maxOffset = br.ReadSingle(); val.onlyTargetPathsWithBloons = br.ReadBoolean(); } } private void Set_v_NecromancerTargetTrackWithinRangeModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetTrackModel_Fields(start, count); for (int i = 0; i < count; i++) { NecromancerTargetTrackWithinRangeModel val = (NecromancerTargetTrackWithinRangeModel)((ModByteLoader)this).m[i + start]; val.display = ModContent.CreatePrefabReference(br.ReadString()); val.displayInvalid = ModContent.CreatePrefabReference(br.ReadString()); } } private void Set_v_RotateToDefaultPositionTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { RotateToDefaultPositionTowerModel val = (RotateToDefaultPositionTowerModel)((ModByteLoader)this).m[i + start]; val.rotation = br.ReadSingle(); val.onlyOnReachingTier = br.ReadInt32(); } } private void Set_v_TowerBehaviorBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerBehaviorBuffModel val = (TowerBehaviorBuffModel)((ModByteLoader)this).m[i + start]; val.buffLocsName = (br.ReadBoolean() ? null : br.ReadString()); val.buffIconName = (br.ReadBoolean() ? null : br.ReadString()); val.maxStackSize = br.ReadInt32(); val.isGlobalRange = br.ReadBoolean(); } } private void Set_v_PrinceOfDarknessZombieBuffModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorBuffModel_Fields(start, count); for (int i = 0; i < count; i++) { PrinceOfDarknessZombieBuffModel val = (PrinceOfDarknessZombieBuffModel)((ModByteLoader)this).m[i + start]; val.damageIncrease = br.ReadSingle(); val.distanceMultiplier = br.ReadSingle(); } } private void Set_v_BuffIndicatorModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { BuffIndicatorModel val = (BuffIndicatorModel)((ModByteLoader)this).m[i + start]; val.buffName = (br.ReadBoolean() ? null : br.ReadString()); val.iconName = (br.ReadBoolean() ? null : br.ReadString()); val.stackable = br.ReadBoolean(); val.maxStackSize = br.ReadInt32(); val.globalRange = br.ReadBoolean(); val.onlyShowBuffIfMutated = br.ReadBoolean(); val.dontShowX = br.ReadBoolean(); } } private void Set_v_EmissionBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_Model_Fields(start, count); for (int i = 0; i < count; i++) { EmissionBehaviorModel val = (EmissionBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_EmissionRotationOffBloonDirectionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EmissionBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { EmissionRotationOffBloonDirectionModel val = (EmissionRotationOffBloonDirectionModel)((ModByteLoader)this).m[i + start]; val.useAirUnitPosition = br.ReadBoolean(); val.dontSetAfterEmit = br.ReadBoolean(); } } private void Set_v_PrinceOfDarknessEmissionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_EmissionModel_Fields(start, count); for (int i = 0; i < count; i++) { PrinceOfDarknessEmissionModel val = (PrinceOfDarknessEmissionModel)((ModByteLoader)this).m[i + start]; val.alternateProjectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.maxPathRandomRange = br.ReadInt32(); val.minPiercePerBloon = br.ReadInt32(); val.maxPathOffset = br.ReadInt32(); } } private void Set_v_SyncTargetPriorityWithSubTowersModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0085: Expected O, but got Unknown //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SyncTargetPriorityWithSubTowersModel val = (SyncTargetPriorityWithSubTowersModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.targetTypeMustExist = br.ReadBoolean(); val.ignoreTowersList = (br.ReadBoolean() ? null : br.ReadString()); val.ignoreTowers = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; val.placeOnlyForTowersList = (br.ReadBoolean() ? null : br.ReadString()); val.placeOnlyForTowers = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_OverrideCamoDetectionModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { OverrideCamoDetectionModel val = (OverrideCamoDetectionModel)((ModByteLoader)this).m[i + start]; val.detectCamo = br.ReadBoolean(); } } private void Set_v_AbilityModel_Fields(int start, int count) { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("cooldownSpeedScale", (BindingFlags)60); FieldInfo field2 = val.GetField("animationOffset", (BindingFlags)60); FieldInfo field3 = val.GetField("cooldown", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityModel val2 = (AbilityModel)((ModByteLoader)this).m[i + start]; val2.modelName = (br.ReadBoolean() ? null : br.ReadString()); val2.displayName = (br.ReadBoolean() ? null : br.ReadString()); val2.description = (br.ReadBoolean() ? null : br.ReadString()); val2.icon = ModContent.CreateSpriteReference(br.ReadString()); val2.behaviors = (Il2CppReferenceArray)((ModByteLoader)this).m[br.ReadInt32()]; val2.activateOnPreLeak = br.ReadBoolean(); val2.activateOnLeak = br.ReadBoolean(); val2.addedViaUpgrade = (br.ReadBoolean() ? null : br.ReadString()); val2.livesCost = br.ReadInt32(); val2.maxActivationsPerRound = br.ReadInt32(); val2.maxActivationsPerGame = br.ReadInt32(); val2.animation = br.ReadInt32(); val2.enabled = br.ReadBoolean(); val2.canActivateBetweenRounds = br.ReadBoolean(); val2.resetCooldownOnTierUpgrade = br.ReadBoolean(); val2.activateOnLivesLost = br.ReadBoolean(); val2.sharedCooldown = br.ReadBoolean(); val2.dontShowStacked = br.ReadBoolean(); val2.animateOnMainAttackDisplay = br.ReadBoolean(); val2.additionalCharges = br.ReadInt32(); val2.hideAbilityIfInCooldown = br.ReadBoolean(); val2.startOffCooldown = br.ReadBoolean(); val2.alwaysSetAnimationState = br.ReadBoolean(); val2.rechargeMonkeyMoneyCost = br.ReadInt32(); val2.activateOnRoundEnd = br.ReadBoolean(); val2.restrictAbilityAfterMaxRoundTimer = br.ReadBoolean(); val2.isHidden = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field2.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); field3.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_AbilityBehaviorModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_EntityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AbilityBehaviorModel val = (AbilityBehaviorModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreateSoundOnAbilityModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateSoundOnAbilityModel val = (CreateSoundOnAbilityModel)((ModByteLoader)this).m[i + start]; val.sound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; val.heroSound2 = (SoundModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_AbilityCreateTowerModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("towerLifetime", (BindingFlags)60); for (int i = 0; i < count; i++) { AbilityCreateTowerModel val2 = (AbilityCreateTowerModel)((ModByteLoader)this).m[i + start]; val2.towerModel = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.isAirBasedTower = br.ReadBoolean(); val2.trackCirclePosition = br.ReadBoolean(); val2.hideMainTower = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.towerLifetimeFrames = br.ReadInt32(); } } private void Set_v_TowerExpireModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { TowerExpireModel val2 = (TowerExpireModel)((ModByteLoader)this).m[i + start]; val2.expireOnRoundComplete = br.ReadBoolean(); val2.expireOnDefeatScreen = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.rounds = br.ReadInt32(); } } private void Set_v_TowerExpireOnParentDestroyedModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerExpireOnParentDestroyedModel val = (TowerExpireOnParentDestroyedModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_CreditPopsToParentTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreditPopsToParentTowerModel val = (CreditPopsToParentTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_IgnoreTowersBlockerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { IgnoreTowersBlockerModel val = (IgnoreTowersBlockerModel)((ModByteLoader)this).m[i + start]; val.filteredTowers = (Il2CppStringArray)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_PathMovementFromScreenCenterModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("speed", (BindingFlags)60); for (int i = 0; i < count; i++) { PathMovementFromScreenCenterModel val2 = (PathMovementFromScreenCenterModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.ignoreTargetType = br.ReadBoolean(); } } private void Set_v_Il2CppAssets_Scripts_Models_Towers_Behaviors_CreateEffectOnExpireModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnExpireModel val = (CreateEffectOnExpireModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; } } private void Set_v_SavedSubTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { SavedSubTowerModel val = (SavedSubTowerModel)((ModByteLoader)this).m[i + start]; } } private void Set_v_PathMovementFromScreenCenterPatternModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { PathMovementFromScreenCenterPatternModel val = (PathMovementFromScreenCenterPatternModel)((ModByteLoader)this).m[i + start]; val.radius = br.ReadSingle(); val.isSelectable = br.ReadBoolean(); } } private void Set_v_TowerCreateTowerModel_Fields(int start, int count) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown Set_v_TowerBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { TowerCreateTowerModel val = (TowerCreateTowerModel)((ModByteLoader)this).m[i + start]; val.towerModel = (TowerModel)((ModByteLoader)this).m[br.ReadInt32()]; val.isAirBasedTower = br.ReadBoolean(); } } private void Set_v_CreateEffectOnAbilityModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { CreateEffectOnAbilityModel val = (CreateEffectOnAbilityModel)((ModByteLoader)this).m[i + start]; val.effectModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val.randomRotation = br.ReadBoolean(); val.centerEffect = br.ReadBoolean(); val.destroyOnEnd = br.ReadBoolean(); val.useAttackTransform = br.ReadBoolean(); val.canSave = br.ReadBoolean(); } } private void Set_v_AlternateProjectileModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Expected O, but got Unknown Set_v_WeaponBehaviorModel_Fields(start, count); for (int i = 0; i < count; i++) { AlternateProjectileModel val = (AlternateProjectileModel)((ModByteLoader)this).m[i + start]; val.projectile = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.emissionModel = (EmissionModel)((ModByteLoader)this).m[br.ReadInt32()]; val.interval = br.ReadInt32(); val.alternateAnimation = br.ReadInt32(); val.priority = br.ReadInt32(); } } private void Set_v_SwitchDisplayModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { SwitchDisplayModel val2 = (SwitchDisplayModel)((ModByteLoader)this).m[i + start]; val2.display = ModContent.CreatePrefabReference(br.ReadString()); val2.excludeSubTowers = br.ReadBoolean(); val2.createEffectOnSwitchBackModel = (EffectModel)((ModByteLoader)this).m[br.ReadInt32()]; val2.resetOnDefeatScreen = br.ReadBoolean(); val2.animationStateOnActivate = br.ReadInt32(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_MutateRemoveAllAttacksOnAbilityActivateModel_Fields(int start, int count) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown Set_v_AbilityBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("lifespan", (BindingFlags)60); for (int i = 0; i < count; i++) { MutateRemoveAllAttacksOnAbilityActivateModel val2 = (MutateRemoveAllAttacksOnAbilityActivateModel)((ModByteLoader)this).m[i + start]; field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); val2.excludeAbilityAttacks = br.ReadBoolean(); } } private void Set_v_TrackTargetModel_Fields(int start, int count) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown Set_v_ProjectileBehaviorModel_Fields(start, count); Type val = Il2CppType.Of(); FieldInfo field = val.GetField("turnRate", (BindingFlags)60); for (int i = 0; i < count; i++) { TrackTargetModel val2 = (TrackTargetModel)((ModByteLoader)this).m[i + start]; val2.distance = br.ReadSingle(); val2.trackNewTargets = br.ReadBoolean(); val2.constantlyAquireNewTarget = br.ReadBoolean(); val2.maxSeekAngle = br.ReadSingle(); val2.ignoreSeekAngle = br.ReadBoolean(); val2.overrideRotation = br.ReadBoolean(); val2.useLifetimeAsDistance = br.ReadBoolean(); val2.expireOnContactTarget = br.ReadBoolean(); field.SetValue((Object)(object)val2, Il2CppSystemObjectExt.ToIl2Cpp(br.ReadSingle())); } } private void Set_v_TargetSelectedPointModel_Fields(int start, int count) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Expected O, but got Unknown Set_v_TargetSupplierModel_Fields(start, count); for (int i = 0; i < count; i++) { TargetSelectedPointModel val = (TargetSelectedPointModel)((ModByteLoader)this).m[i + start]; val.isSelectable = br.ReadBoolean(); val.display = ModContent.CreatePrefabReference(br.ReadString()); val.scale = br.ReadSingle(); val.customName = (br.ReadBoolean() ? null : br.ReadString()); val.lockToInsideTowerRange = br.ReadBoolean(); val.startWithClosestTrackPoint = br.ReadBoolean(); val.displayInvalid = ModContent.CreatePrefabReference(br.ReadString()); val.alwaysShowTarget = br.ReadBoolean(); val.projectileToExpireOnTargetChangeModel = (ProjectileModel)((ModByteLoader)this).m[br.ReadInt32()]; val.useTerrainHeight = br.ReadBoolean(); } } protected override TowerModel Load(byte[] bytes) { //IL_0bcc: Unknown result type (might be due to invalid IL or missing references) //IL_0bd3: Expected O, but got Unknown using MemoryStream input = new MemoryStream(bytes); using BinaryReader binaryReader = new BinaryReader(input); br = binaryReader; int num = br.ReadInt32(); ((ModByteLoader)this).m = new object[num]; Read_a_AreaType_Array(); CreateArraySet(); Read_a_Int32_Array(); CreateArraySet(); CreateArraySet(); Read_a_String_Array(); Read_a_TargetType_Array(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateArraySet(); CreateListSet(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Create_Records(); Set_v_TowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ApplyModModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CircleFootprintModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_UpgradePathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SoundModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnSellModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnTowerPlaceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnUpgradeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_WeaponModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SingleEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterInvisibleModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelStraitModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ProjectileFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AttackFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetFirstPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetLastPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetClosePrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetStrongPrioCamoModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ArcEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateProjectileOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AgeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnContactModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCollisionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RemoveBloonModifiersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EjectEffectModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOnlyCamoInModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnExhaustedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RefreshPierceModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ClearHitBloonsModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_InstantModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DestroyProjectileIfTowerDestroyedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnProjectileCreatedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_ZeroRotationModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetTrackOrDefaultModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_FilterOfftrackModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AddBehaviorToBloonModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageOverTimeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_DamageModifierForTagModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_NecromancerZoneModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_NecromancerEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TravelAlongPathModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_NecroEmissionFilterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_NecromancerTargetTrackWithinRangeModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_RotateToDefaultPositionTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PrinceOfDarknessZombieBuffModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_EmissionRotationOffBloonDirectionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PrinceOfDarknessEmissionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SyncTargetPriorityWithSubTowersModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_OverrideCamoDetectionModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AbilityCreateTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TowerExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TowerExpireOnParentDestroyedModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreditPopsToParentTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_IgnoreTowersBlockerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PathMovementFromScreenCenterModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_Il2CppAssets_Scripts_Models_Towers_Behaviors_CreateEffectOnExpireModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SavedSubTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_PathMovementFromScreenCenterPatternModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TowerCreateTowerModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_CreateEffectOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_AlternateProjectileModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_SwitchDisplayModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_MutateRemoveAllAttacksOnAbilityActivateModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TrackTargetModel_Fields(br.ReadInt32(), br.ReadInt32()); Set_v_TargetSelectedPointModel_Fields(br.ReadInt32(), br.ReadInt32()); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkArray(); LinkList(); int num2 = br.ReadInt32(); Debug.Assert(br.BaseStream.Position == br.BaseStream.Length); return (TowerModel)((ModByteLoader)this).m[num2]; } } }