Please disclose if your mod was created primarily using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of RtDOcean v1.2.5
RtDOcean.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using Jotunn.Configs; using Jotunn.Entities; using Jotunn.Managers; using Jotunn.Utils; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("RtDOcean")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("RtDOcean")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("65c4b6bd-3f13-4e92-9e13-24dbfb33c9ff")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace OceanBiome { [BepInPlugin("RtDOcean.Soloredis", "RtDOcean", "1.2.5")] [NetworkCompatibility(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] internal class Ocean : BaseUnityPlugin { public const string PluginGUID = "RtDOcean.Soloredis"; public const string PluginName = "RtDOcean"; public const string PluginVersion = "1.2.5"; internal static ManualLogSource Log; public AssetBundle MyAssets; public ConfigEntry<bool> ShipEnable; private void Awake() { Log = ((BaseUnityPlugin)this).Logger; LoadBundle(); AddClutter(); AddCoral(); SunkenShipConfig(); if (ShipEnable.Value) { AddLocations(); } } private void LoadBundle() { try { MyAssets = AssetUtils.LoadAssetBundleFromResources("rtd_ocean", Assembly.GetExecutingAssembly()); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while loading bundle: {arg}"); } } public void SunkenShipConfig() { //IL_002e: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Expected O, but got Unknown ((BaseUnityPlugin)this).Config.SaveOnConfigSet = true; ShipEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Sunken Ships", "Enable", true, new ConfigDescription("Enable or Disable sunken ships with treasure", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes { IsAdminOnly = true } })); SynchronizationManager.OnConfigurationSynchronized += delegate(object obj, ConfigurationSynchronizationEventArgs attr) { if (attr.InitialSynchronization) { ((BaseUnityPlugin)this).Logger.LogMessage((object)"Initial Config sync received"); } else { ((BaseUnityPlugin)this).Logger.LogMessage((object)"Config sync received"); } }; SynchronizationManager.OnAdminStatusChanged += delegate { ((BaseUnityPlugin)this).Logger.LogMessage((object)("Admin status recieved: " + (SynchronizationManager.Instance.PlayerIsAdmin ? "Congrats you're an admin!" : "Welcome to hell hahahahahaha"))); }; } private void AddClutter() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Expected O, but got Unknown //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_0102: Expected O, but got Unknown //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_01bc: Unknown result type (might be due to invalid IL or missing references) //IL_01c2: Expected O, but got Unknown //IL_01e3: Unknown result type (might be due to invalid IL or missing references) //IL_01ea: Expected O, but got Unknown //IL_0206: Unknown result type (might be due to invalid IL or missing references) //IL_02a4: Unknown result type (might be due to invalid IL or missing references) //IL_02ab: Expected O, but got Unknown //IL_02cd: Unknown result type (might be due to invalid IL or missing references) //IL_02d4: Expected O, but got Unknown //IL_02f0: Unknown result type (might be due to invalid IL or missing references) //IL_038e: Unknown result type (might be due to invalid IL or missing references) //IL_0395: Expected O, but got Unknown //IL_03b7: Unknown result type (might be due to invalid IL or missing references) //IL_03be: Expected O, but got Unknown //IL_03da: Unknown result type (might be due to invalid IL or missing references) //IL_0478: Unknown result type (might be due to invalid IL or missing references) //IL_047f: Expected O, but got Unknown //IL_04a1: Unknown result type (might be due to invalid IL or missing references) //IL_04a8: Expected O, but got Unknown //IL_04c4: Unknown result type (might be due to invalid IL or missing references) //IL_0562: Unknown result type (might be due to invalid IL or missing references) //IL_0569: Expected O, but got Unknown //IL_058b: Unknown result type (might be due to invalid IL or missing references) //IL_0592: Expected O, but got Unknown //IL_05ae: Unknown result type (might be due to invalid IL or missing references) //IL_064c: Unknown result type (might be due to invalid IL or missing references) //IL_0653: Expected O, but got Unknown //IL_0675: Unknown result type (might be due to invalid IL or missing references) //IL_067c: Expected O, but got Unknown //IL_0698: Unknown result type (might be due to invalid IL or missing references) //IL_0736: Unknown result type (might be due to invalid IL or missing references) //IL_073d: Expected O, but got Unknown //IL_075f: Unknown result type (might be due to invalid IL or missing references) //IL_0766: Expected O, but got Unknown //IL_0782: Unknown result type (might be due to invalid IL or missing references) //IL_0820: Unknown result type (might be due to invalid IL or missing references) //IL_0827: Expected O, but got Unknown //IL_0849: Unknown result type (might be due to invalid IL or missing references) //IL_0850: Expected O, but got Unknown //IL_086c: Unknown result type (might be due to invalid IL or missing references) //IL_090a: Unknown result type (might be due to invalid IL or missing references) //IL_0911: Expected O, but got Unknown //IL_0933: Unknown result type (might be due to invalid IL or missing references) //IL_093a: Expected O, but got Unknown //IL_0956: Unknown result type (might be due to invalid IL or missing references) //IL_09f4: Unknown result type (might be due to invalid IL or missing references) //IL_09fb: Expected O, but got Unknown //IL_0a1d: Unknown result type (might be due to invalid IL or missing references) //IL_0a24: Expected O, but got Unknown //IL_0a40: Unknown result type (might be due to invalid IL or missing references) //IL_0ade: Unknown result type (might be due to invalid IL or missing references) //IL_0ae5: Expected O, but got Unknown //IL_0b07: Unknown result type (might be due to invalid IL or missing references) //IL_0b0e: Expected O, but got Unknown //IL_0b2a: Unknown result type (might be due to invalid IL or missing references) //IL_0bc8: Unknown result type (might be due to invalid IL or missing references) //IL_0bcf: Expected O, but got Unknown //IL_0bf1: Unknown result type (might be due to invalid IL or missing references) //IL_0bf8: Expected O, but got Unknown //IL_0c14: Unknown result type (might be due to invalid IL or missing references) //IL_0cb2: Unknown result type (might be due to invalid IL or missing references) //IL_0cb9: Expected O, but got Unknown //IL_0cdb: Unknown result type (might be due to invalid IL or missing references) //IL_0ce2: Expected O, but got Unknown //IL_0cfe: Unknown result type (might be due to invalid IL or missing references) //IL_0d9c: Unknown result type (might be due to invalid IL or missing references) //IL_0da3: Expected O, but got Unknown //IL_0dc5: Unknown result type (might be due to invalid IL or missing references) //IL_0dcc: Expected O, but got Unknown //IL_0de8: Unknown result type (might be due to invalid IL or missing references) //IL_0e86: Unknown result type (might be due to invalid IL or missing references) //IL_0e8d: Expected O, but got Unknown //IL_0eaf: Unknown result type (might be due to invalid IL or missing references) //IL_0eb6: Expected O, but got Unknown //IL_0ed2: Unknown result type (might be due to invalid IL or missing references) //IL_0f70: Unknown result type (might be due to invalid IL or missing references) //IL_0f77: Expected O, but got Unknown //IL_0f99: Unknown result type (might be due to invalid IL or missing references) //IL_0fa0: Expected O, but got Unknown //IL_0fbc: Unknown result type (might be due to invalid IL or missing references) //IL_105a: Unknown result type (might be due to invalid IL or missing references) //IL_1061: Expected O, but got Unknown try { GameObject val = MyAssets.LoadAsset<GameObject>("InstancedSeaWeed01_RtD"); ClutterConfig val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj = val2; Biome[] array = new Biome[8]; RuntimeHelpers.InitializeArray(array, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array); val2.Instanced = true; val2.Amount = 3; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val3 = new CustomClutter(val, true, val2); ZoneManager.Instance.AddCustomClutter(val3); GameObject val4 = MyAssets.LoadAsset<GameObject>("InstancedSeaWeed02_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj2 = val2; Biome[] array2 = new Biome[8]; RuntimeHelpers.InitializeArray(array2, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array2); val2.Instanced = true; val2.Amount = 3; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val5 = new CustomClutter(val4, true, val2); ZoneManager.Instance.AddCustomClutter(val5); GameObject val6 = MyAssets.LoadAsset<GameObject>("InstancedSeaWeed03_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj3 = val2; Biome[] array3 = new Biome[8]; RuntimeHelpers.InitializeArray(array3, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj3.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array3); val2.Instanced = true; val2.Amount = 3; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val7 = new CustomClutter(val6, true, val2); ZoneManager.Instance.AddCustomClutter(val7); GameObject val8 = MyAssets.LoadAsset<GameObject>("InstancedSeaWeed04_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj4 = val2; Biome[] array4 = new Biome[8]; RuntimeHelpers.InitializeArray(array4, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj4.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array4); val2.Instanced = true; val2.Amount = 3; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val9 = new CustomClutter(val8, true, val2); ZoneManager.Instance.AddCustomClutter(val9); GameObject val10 = MyAssets.LoadAsset<GameObject>("InstancedSeaWeed05_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj5 = val2; Biome[] array5 = new Biome[8]; RuntimeHelpers.InitializeArray(array5, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj5.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array5); val2.Instanced = true; val2.Amount = 3; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val11 = new CustomClutter(val10, true, val2); ZoneManager.Instance.AddCustomClutter(val11); GameObject val12 = MyAssets.LoadAsset<GameObject>("InstancedSeaWeed06_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj6 = val2; Biome[] array6 = new Biome[8]; RuntimeHelpers.InitializeArray(array6, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj6.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array6); val2.Instanced = true; val2.Amount = 3; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val13 = new CustomClutter(val12, true, val2); ZoneManager.Instance.AddCustomClutter(val13); GameObject val14 = MyAssets.LoadAsset<GameObject>("InstancedSeaWeed07_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj7 = val2; Biome[] array7 = new Biome[8]; RuntimeHelpers.InitializeArray(array7, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj7.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array7); val2.Instanced = true; val2.Amount = 3; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val15 = new CustomClutter(val14, true, val2); ZoneManager.Instance.AddCustomClutter(val15); GameObject val16 = MyAssets.LoadAsset<GameObject>("InstancedSeaWeed08_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj8 = val2; Biome[] array8 = new Biome[8]; RuntimeHelpers.InitializeArray(array8, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj8.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array8); val2.Instanced = true; val2.Amount = 3; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val17 = new CustomClutter(val16, true, val2); ZoneManager.Instance.AddCustomClutter(val17); GameObject val18 = MyAssets.LoadAsset<GameObject>("InstancedSeaWeed09_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj9 = val2; Biome[] array9 = new Biome[8]; RuntimeHelpers.InitializeArray(array9, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj9.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array9); val2.Instanced = true; val2.Amount = 3; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val19 = new CustomClutter(val18, true, val2); ZoneManager.Instance.AddCustomClutter(val19); GameObject val20 = MyAssets.LoadAsset<GameObject>("Instanced_SeaShell01_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj10 = val2; Biome[] array10 = new Biome[8]; RuntimeHelpers.InitializeArray(array10, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj10.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array10); val2.Instanced = true; val2.Amount = 1; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 1f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val21 = new CustomClutter(val20, true, val2); ZoneManager.Instance.AddCustomClutter(val21); GameObject val22 = MyAssets.LoadAsset<GameObject>("Instanced_SeaShell02_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj11 = val2; Biome[] array11 = new Biome[8]; RuntimeHelpers.InitializeArray(array11, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj11.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array11); val2.Instanced = true; val2.Amount = 1; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 1f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val23 = new CustomClutter(val22, true, val2); ZoneManager.Instance.AddCustomClutter(val23); GameObject val24 = MyAssets.LoadAsset<GameObject>("Instanced_SeaShell03_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj12 = val2; Biome[] array12 = new Biome[8]; RuntimeHelpers.InitializeArray(array12, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj12.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array12); val2.Instanced = true; val2.Amount = 1; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 1f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val25 = new CustomClutter(val24, true, val2); ZoneManager.Instance.AddCustomClutter(val25); GameObject val26 = MyAssets.LoadAsset<GameObject>("Instanced_SeaShell04_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj13 = val2; Biome[] array13 = new Biome[8]; RuntimeHelpers.InitializeArray(array13, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj13.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array13); val2.Instanced = true; val2.Amount = 1; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 1f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val27 = new CustomClutter(val26, true, val2); ZoneManager.Instance.AddCustomClutter(val27); GameObject val28 = MyAssets.LoadAsset<GameObject>("Instanced_SeaShell05_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj14 = val2; Biome[] array14 = new Biome[8]; RuntimeHelpers.InitializeArray(array14, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj14.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array14); val2.Instanced = true; val2.Amount = 1; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 1f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val29 = new CustomClutter(val28, true, val2); ZoneManager.Instance.AddCustomClutter(val29); GameObject val30 = MyAssets.LoadAsset<GameObject>("Instanced_SeaShell06_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj15 = val2; Biome[] array15 = new Biome[8]; RuntimeHelpers.InitializeArray(array15, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj15.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array15); val2.Instanced = true; val2.Amount = 1; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 1f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val31 = new CustomClutter(val30, true, val2); ZoneManager.Instance.AddCustomClutter(val31); GameObject val32 = MyAssets.LoadAsset<GameObject>("Instanced_SeaShell07_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj16 = val2; Biome[] array16 = new Biome[8]; RuntimeHelpers.InitializeArray(array16, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj16.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array16); val2.Instanced = true; val2.Amount = 1; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 1f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val33 = new CustomClutter(val32, true, val2); ZoneManager.Instance.AddCustomClutter(val33); GameObject val34 = MyAssets.LoadAsset<GameObject>("Instanced_SeaShell08_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj17 = val2; Biome[] array17 = new Biome[8]; RuntimeHelpers.InitializeArray(array17, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj17.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array17); val2.Instanced = true; val2.Amount = 1; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 1f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val35 = new CustomClutter(val34, true, val2); ZoneManager.Instance.AddCustomClutter(val35); GameObject val36 = MyAssets.LoadAsset<GameObject>("Instanced_StarFish_RtD"); val2 = new ClutterConfig(); val2.Enabled = true; ClutterConfig obj18 = val2; Biome[] array18 = new Biome[8]; RuntimeHelpers.InitializeArray(array18, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj18.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array18); val2.Instanced = true; val2.Amount = 1; val2.OnUncleared = true; val2.OnCleared = false; val2.ScaleMin = 1f; val2.ScaleMax = 1f; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.OceanDepthCheck = true; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; val2.TerrainTilt = true; CustomClutter val37 = new CustomClutter(val36, true, val2); ZoneManager.Instance.AddCustomClutter(val37); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding clutter: {arg}"); } } private void AddCoral() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_00be: Unknown result type (might be due to invalid IL or missing references) //IL_00c4: Expected O, but got Unknown //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Expected O, but got Unknown //IL_00fd: Unknown result type (might be due to invalid IL or missing references) //IL_018c: Unknown result type (might be due to invalid IL or missing references) //IL_0192: Expected O, but got Unknown //IL_01b3: Unknown result type (might be due to invalid IL or missing references) //IL_01ba: Expected O, but got Unknown //IL_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_025c: Unknown result type (might be due to invalid IL or missing references) //IL_0263: Expected O, but got Unknown //IL_0285: Unknown result type (might be due to invalid IL or missing references) //IL_028c: Expected O, but got Unknown //IL_029f: Unknown result type (might be due to invalid IL or missing references) //IL_032e: Unknown result type (might be due to invalid IL or missing references) //IL_0335: Expected O, but got Unknown //IL_0357: Unknown result type (might be due to invalid IL or missing references) //IL_035e: Expected O, but got Unknown //IL_0371: Unknown result type (might be due to invalid IL or missing references) //IL_0400: Unknown result type (might be due to invalid IL or missing references) //IL_0407: Expected O, but got Unknown //IL_0429: Unknown result type (might be due to invalid IL or missing references) //IL_0430: Expected O, but got Unknown //IL_0443: Unknown result type (might be due to invalid IL or missing references) //IL_04d2: Unknown result type (might be due to invalid IL or missing references) //IL_04d9: Expected O, but got Unknown //IL_04fb: Unknown result type (might be due to invalid IL or missing references) //IL_0502: Expected O, but got Unknown //IL_0515: Unknown result type (might be due to invalid IL or missing references) //IL_05a4: Unknown result type (might be due to invalid IL or missing references) //IL_05ab: Expected O, but got Unknown //IL_05cd: Unknown result type (might be due to invalid IL or missing references) //IL_05d4: Expected O, but got Unknown //IL_05e7: Unknown result type (might be due to invalid IL or missing references) //IL_0676: Unknown result type (might be due to invalid IL or missing references) //IL_067d: Expected O, but got Unknown //IL_069f: Unknown result type (might be due to invalid IL or missing references) //IL_06a6: Expected O, but got Unknown //IL_06b9: Unknown result type (might be due to invalid IL or missing references) //IL_0748: Unknown result type (might be due to invalid IL or missing references) //IL_074f: Expected O, but got Unknown //IL_0771: Unknown result type (might be due to invalid IL or missing references) //IL_0778: Expected O, but got Unknown //IL_078b: Unknown result type (might be due to invalid IL or missing references) //IL_081a: Unknown result type (might be due to invalid IL or missing references) //IL_0821: Expected O, but got Unknown //IL_0843: Unknown result type (might be due to invalid IL or missing references) //IL_084a: Expected O, but got Unknown //IL_085d: Unknown result type (might be due to invalid IL or missing references) //IL_08ec: Unknown result type (might be due to invalid IL or missing references) //IL_08f3: Expected O, but got Unknown //IL_0915: Unknown result type (might be due to invalid IL or missing references) //IL_091c: Expected O, but got Unknown //IL_092f: Unknown result type (might be due to invalid IL or missing references) //IL_09be: Unknown result type (might be due to invalid IL or missing references) //IL_09c5: Expected O, but got Unknown //IL_09e7: Unknown result type (might be due to invalid IL or missing references) //IL_09ee: Expected O, but got Unknown //IL_0a01: Unknown result type (might be due to invalid IL or missing references) //IL_0a90: Unknown result type (might be due to invalid IL or missing references) //IL_0a97: Expected O, but got Unknown //IL_0ab9: Unknown result type (might be due to invalid IL or missing references) //IL_0ac0: Expected O, but got Unknown //IL_0ad3: Unknown result type (might be due to invalid IL or missing references) //IL_0b62: Unknown result type (might be due to invalid IL or missing references) //IL_0b69: Expected O, but got Unknown //IL_0b8b: Unknown result type (might be due to invalid IL or missing references) //IL_0b92: Expected O, but got Unknown //IL_0ba5: Unknown result type (might be due to invalid IL or missing references) //IL_0c34: Unknown result type (might be due to invalid IL or missing references) //IL_0c3b: Expected O, but got Unknown //IL_0c5d: Unknown result type (might be due to invalid IL or missing references) //IL_0c64: Expected O, but got Unknown //IL_0c77: Unknown result type (might be due to invalid IL or missing references) //IL_0d06: Unknown result type (might be due to invalid IL or missing references) //IL_0d0d: Expected O, but got Unknown //IL_0d2f: Unknown result type (might be due to invalid IL or missing references) //IL_0d36: Expected O, but got Unknown //IL_0d49: Unknown result type (might be due to invalid IL or missing references) //IL_0dd8: Unknown result type (might be due to invalid IL or missing references) //IL_0ddf: Expected O, but got Unknown //IL_0e01: Unknown result type (might be due to invalid IL or missing references) //IL_0e08: Expected O, but got Unknown //IL_0e1b: Unknown result type (might be due to invalid IL or missing references) //IL_0eaa: Unknown result type (might be due to invalid IL or missing references) //IL_0eb1: Expected O, but got Unknown //IL_0ed3: Unknown result type (might be due to invalid IL or missing references) //IL_0eda: Expected O, but got Unknown //IL_0eed: Unknown result type (might be due to invalid IL or missing references) //IL_0f7c: Unknown result type (might be due to invalid IL or missing references) //IL_0f83: Expected O, but got Unknown //IL_0fa5: Unknown result type (might be due to invalid IL or missing references) //IL_0fac: Expected O, but got Unknown //IL_0fbf: Unknown result type (might be due to invalid IL or missing references) //IL_104e: Unknown result type (might be due to invalid IL or missing references) //IL_1055: Expected O, but got Unknown //IL_1077: Unknown result type (might be due to invalid IL or missing references) //IL_107e: Expected O, but got Unknown //IL_1091: Unknown result type (might be due to invalid IL or missing references) //IL_1120: Unknown result type (might be due to invalid IL or missing references) //IL_1127: Expected O, but got Unknown //IL_1149: Unknown result type (might be due to invalid IL or missing references) //IL_1150: Expected O, but got Unknown //IL_1163: Unknown result type (might be due to invalid IL or missing references) //IL_11f2: Unknown result type (might be due to invalid IL or missing references) //IL_11f9: Expected O, but got Unknown //IL_121b: Unknown result type (might be due to invalid IL or missing references) //IL_1222: Expected O, but got Unknown //IL_1235: Unknown result type (might be due to invalid IL or missing references) //IL_12c4: Unknown result type (might be due to invalid IL or missing references) //IL_12cb: Expected O, but got Unknown //IL_12ed: Unknown result type (might be due to invalid IL or missing references) //IL_12f4: Expected O, but got Unknown //IL_1307: Unknown result type (might be due to invalid IL or missing references) //IL_1396: Unknown result type (might be due to invalid IL or missing references) //IL_139d: Expected O, but got Unknown //IL_13bf: Unknown result type (might be due to invalid IL or missing references) //IL_13c6: Expected O, but got Unknown //IL_13d9: Unknown result type (might be due to invalid IL or missing references) //IL_1468: Unknown result type (might be due to invalid IL or missing references) //IL_146f: Expected O, but got Unknown //IL_1491: Unknown result type (might be due to invalid IL or missing references) //IL_1498: Expected O, but got Unknown //IL_14ab: Unknown result type (might be due to invalid IL or missing references) //IL_153a: Unknown result type (might be due to invalid IL or missing references) //IL_1541: Expected O, but got Unknown //IL_1563: Unknown result type (might be due to invalid IL or missing references) //IL_156a: Expected O, but got Unknown //IL_157d: Unknown result type (might be due to invalid IL or missing references) //IL_160c: Unknown result type (might be due to invalid IL or missing references) //IL_1613: Expected O, but got Unknown //IL_1635: Unknown result type (might be due to invalid IL or missing references) //IL_163c: Expected O, but got Unknown //IL_164f: Unknown result type (might be due to invalid IL or missing references) //IL_16de: Unknown result type (might be due to invalid IL or missing references) //IL_16e5: Expected O, but got Unknown //IL_1707: Unknown result type (might be due to invalid IL or missing references) //IL_170e: Expected O, but got Unknown //IL_1721: Unknown result type (might be due to invalid IL or missing references) //IL_17b0: Unknown result type (might be due to invalid IL or missing references) //IL_17b7: Expected O, but got Unknown //IL_17d9: Unknown result type (might be due to invalid IL or missing references) //IL_17e0: Expected O, but got Unknown //IL_17f3: Unknown result type (might be due to invalid IL or missing references) //IL_1882: Unknown result type (might be due to invalid IL or missing references) //IL_1889: Expected O, but got Unknown //IL_18ab: Unknown result type (might be due to invalid IL or missing references) //IL_18b2: Expected O, but got Unknown //IL_18c5: Unknown result type (might be due to invalid IL or missing references) //IL_1954: Unknown result type (might be due to invalid IL or missing references) //IL_195b: Expected O, but got Unknown //IL_197d: Unknown result type (might be due to invalid IL or missing references) //IL_1984: Expected O, but got Unknown //IL_1997: Unknown result type (might be due to invalid IL or missing references) //IL_1a26: Unknown result type (might be due to invalid IL or missing references) //IL_1a2d: Expected O, but got Unknown //IL_1a4f: Unknown result type (might be due to invalid IL or missing references) //IL_1a56: Expected O, but got Unknown //IL_1a69: Unknown result type (might be due to invalid IL or missing references) //IL_1af8: Unknown result type (might be due to invalid IL or missing references) //IL_1aff: Expected O, but got Unknown //IL_1b21: Unknown result type (might be due to invalid IL or missing references) //IL_1b28: Expected O, but got Unknown //IL_1b3b: Unknown result type (might be due to invalid IL or missing references) //IL_1bca: Unknown result type (might be due to invalid IL or missing references) //IL_1bd1: Expected O, but got Unknown //IL_1bf3: Unknown result type (might be due to invalid IL or missing references) //IL_1bfa: Expected O, but got Unknown //IL_1c0d: Unknown result type (might be due to invalid IL or missing references) //IL_1c9c: Unknown result type (might be due to invalid IL or missing references) //IL_1ca3: Expected O, but got Unknown //IL_1cc5: Unknown result type (might be due to invalid IL or missing references) //IL_1ccc: Expected O, but got Unknown //IL_1cdf: Unknown result type (might be due to invalid IL or missing references) //IL_1d6e: Unknown result type (might be due to invalid IL or missing references) //IL_1d75: Expected O, but got Unknown //IL_1d97: Unknown result type (might be due to invalid IL or missing references) //IL_1d9e: Expected O, but got Unknown //IL_1db1: Unknown result type (might be due to invalid IL or missing references) //IL_1e40: Unknown result type (might be due to invalid IL or missing references) //IL_1e47: Expected O, but got Unknown //IL_1e69: Unknown result type (might be due to invalid IL or missing references) //IL_1e70: Expected O, but got Unknown //IL_1e83: Unknown result type (might be due to invalid IL or missing references) //IL_1f12: Unknown result type (might be due to invalid IL or missing references) //IL_1f19: Expected O, but got Unknown //IL_1f3b: Unknown result type (might be due to invalid IL or missing references) //IL_1f42: Expected O, but got Unknown //IL_1f55: Unknown result type (might be due to invalid IL or missing references) //IL_1fe4: Unknown result type (might be due to invalid IL or missing references) //IL_1feb: Expected O, but got Unknown //IL_200d: Unknown result type (might be due to invalid IL or missing references) //IL_2014: Expected O, but got Unknown //IL_2027: Unknown result type (might be due to invalid IL or missing references) //IL_20b6: Unknown result type (might be due to invalid IL or missing references) //IL_20bd: Expected O, but got Unknown //IL_20df: Unknown result type (might be due to invalid IL or missing references) //IL_20e6: Expected O, but got Unknown //IL_20f9: Unknown result type (might be due to invalid IL or missing references) //IL_2188: Unknown result type (might be due to invalid IL or missing references) //IL_218f: Expected O, but got Unknown //IL_21b1: Unknown result type (might be due to invalid IL or missing references) //IL_21b8: Expected O, but got Unknown //IL_21cb: Unknown result type (might be due to invalid IL or missing references) //IL_225a: Unknown result type (might be due to invalid IL or missing references) //IL_2261: Expected O, but got Unknown //IL_2283: Unknown result type (might be due to invalid IL or missing references) //IL_228a: Expected O, but got Unknown //IL_229d: Unknown result type (might be due to invalid IL or missing references) //IL_232c: Unknown result type (might be due to invalid IL or missing references) //IL_2333: Expected O, but got Unknown //IL_2355: Unknown result type (might be due to invalid IL or missing references) //IL_235c: Expected O, but got Unknown //IL_236f: Unknown result type (might be due to invalid IL or missing references) //IL_23fe: Unknown result type (might be due to invalid IL or missing references) //IL_2405: Expected O, but got Unknown //IL_2427: Unknown result type (might be due to invalid IL or missing references) //IL_242e: Expected O, but got Unknown //IL_2441: Unknown result type (might be due to invalid IL or missing references) //IL_24d0: Unknown result type (might be due to invalid IL or missing references) //IL_24d7: Expected O, but got Unknown //IL_24f9: Unknown result type (might be due to invalid IL or missing references) //IL_2500: Expected O, but got Unknown //IL_2513: Unknown result type (might be due to invalid IL or missing references) //IL_25a2: Unknown result type (might be due to invalid IL or missing references) //IL_25a9: Expected O, but got Unknown //IL_25cb: Unknown result type (might be due to invalid IL or missing references) //IL_25d2: Expected O, but got Unknown //IL_25e5: Unknown result type (might be due to invalid IL or missing references) //IL_2674: Unknown result type (might be due to invalid IL or missing references) //IL_267b: Expected O, but got Unknown //IL_269d: Unknown result type (might be due to invalid IL or missing references) //IL_26a4: Expected O, but got Unknown //IL_26b7: Unknown result type (might be due to invalid IL or missing references) //IL_2746: Unknown result type (might be due to invalid IL or missing references) //IL_274d: Expected O, but got Unknown //IL_276f: Unknown result type (might be due to invalid IL or missing references) //IL_2776: Expected O, but got Unknown //IL_2789: Unknown result type (might be due to invalid IL or missing references) //IL_2818: Unknown result type (might be due to invalid IL or missing references) //IL_281f: Expected O, but got Unknown //IL_2841: Unknown result type (might be due to invalid IL or missing references) //IL_2848: Expected O, but got Unknown //IL_285b: Unknown result type (might be due to invalid IL or missing references) //IL_28ea: Unknown result type (might be due to invalid IL or missing references) //IL_28f1: Expected O, but got Unknown //IL_2913: Unknown result type (might be due to invalid IL or missing references) //IL_291a: Expected O, but got Unknown //IL_292d: Unknown result type (might be due to invalid IL or missing references) //IL_29bc: Unknown result type (might be due to invalid IL or missing references) //IL_29c3: Expected O, but got Unknown //IL_29e5: Unknown result type (might be due to invalid IL or missing references) //IL_29ec: Expected O, but got Unknown //IL_29ff: Unknown result type (might be due to invalid IL or missing references) //IL_2a8e: Unknown result type (might be due to invalid IL or missing references) //IL_2a95: Expected O, but got Unknown //IL_2ab7: Unknown result type (might be due to invalid IL or missing references) //IL_2abe: Expected O, but got Unknown //IL_2ad1: Unknown result type (might be due to invalid IL or missing references) //IL_2b60: Unknown result type (might be due to invalid IL or missing references) //IL_2b67: Expected O, but got Unknown //IL_2b89: Unknown result type (might be due to invalid IL or missing references) //IL_2b90: Expected O, but got Unknown //IL_2ba3: Unknown result type (might be due to invalid IL or missing references) //IL_2c32: Unknown result type (might be due to invalid IL or missing references) //IL_2c39: Expected O, but got Unknown //IL_2c5b: Unknown result type (might be due to invalid IL or missing references) //IL_2c62: Expected O, but got Unknown //IL_2c75: Unknown result type (might be due to invalid IL or missing references) //IL_2d04: Unknown result type (might be due to invalid IL or missing references) //IL_2d0b: Expected O, but got Unknown //IL_2d2d: Unknown result type (might be due to invalid IL or missing references) //IL_2d34: Expected O, but got Unknown //IL_2d47: Unknown result type (might be due to invalid IL or missing references) //IL_2dd6: Unknown result type (might be due to invalid IL or missing references) //IL_2ddd: Expected O, but got Unknown //IL_2dff: Unknown result type (might be due to invalid IL or missing references) //IL_2e06: Expected O, but got Unknown //IL_2e19: Unknown result type (might be due to invalid IL or missing references) //IL_2ea8: Unknown result type (might be due to invalid IL or missing references) //IL_2eaf: Expected O, but got Unknown //IL_2ed1: Unknown result type (might be due to invalid IL or missing references) //IL_2ed8: Expected O, but got Unknown //IL_2eeb: Unknown result type (might be due to invalid IL or missing references) //IL_2f7a: Unknown result type (might be due to invalid IL or missing references) //IL_2f81: Expected O, but got Unknown //IL_2fa3: Unknown result type (might be due to invalid IL or missing references) //IL_2faa: Expected O, but got Unknown //IL_2fbd: Unknown result type (might be due to invalid IL or missing references) //IL_304c: Unknown result type (might be due to invalid IL or missing references) //IL_3053: Expected O, but got Unknown //IL_3075: Unknown result type (might be due to invalid IL or missing references) //IL_307c: Expected O, but got Unknown //IL_308f: Unknown result type (might be due to invalid IL or missing references) //IL_311e: Unknown result type (might be due to invalid IL or missing references) //IL_3125: Expected O, but got Unknown //IL_3147: Unknown result type (might be due to invalid IL or missing references) //IL_314e: Expected O, but got Unknown //IL_3161: Unknown result type (might be due to invalid IL or missing references) //IL_31f0: Unknown result type (might be due to invalid IL or missing references) //IL_31f7: Expected O, but got Unknown //IL_3219: Unknown result type (might be due to invalid IL or missing references) //IL_3220: Expected O, but got Unknown //IL_3233: Unknown result type (might be due to invalid IL or missing references) //IL_32c2: Unknown result type (might be due to invalid IL or missing references) //IL_32c9: Expected O, but got Unknown //IL_32eb: Unknown result type (might be due to invalid IL or missing references) //IL_32f2: Expected O, but got Unknown //IL_3305: Unknown result type (might be due to invalid IL or missing references) //IL_3394: Unknown result type (might be due to invalid IL or missing references) //IL_339b: Expected O, but got Unknown //IL_33bd: Unknown result type (might be due to invalid IL or missing references) //IL_33c4: Expected O, but got Unknown //IL_33d7: Unknown result type (might be due to invalid IL or missing references) //IL_3466: Unknown result type (might be due to invalid IL or missing references) //IL_346d: Expected O, but got Unknown //IL_348f: Unknown result type (might be due to invalid IL or missing references) //IL_3496: Expected O, but got Unknown //IL_34a9: Unknown result type (might be due to invalid IL or missing references) //IL_3538: Unknown result type (might be due to invalid IL or missing references) //IL_353f: Expected O, but got Unknown try { GameObject val = MyAssets.LoadAsset<GameObject>("SeaWeed1_RtD"); VegetationConfig val2 = new VegetationConfig(); VegetationConfig obj = val2; Biome[] array = new Biome[8]; RuntimeHelpers.InitializeArray(array, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val3 = new CustomVegetation(val, true, val2); ZoneManager.Instance.AddCustomVegetation(val3); GameObject val4 = MyAssets.LoadAsset<GameObject>("SeaWeed2_RtD"); val2 = new VegetationConfig(); VegetationConfig obj2 = val2; Biome[] array2 = new Biome[8]; RuntimeHelpers.InitializeArray(array2, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array2); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val5 = new CustomVegetation(val4, true, val2); ZoneManager.Instance.AddCustomVegetation(val5); GameObject val6 = MyAssets.LoadAsset<GameObject>("SeaWeed3_RtD"); val2 = new VegetationConfig(); VegetationConfig obj3 = val2; Biome[] array3 = new Biome[8]; RuntimeHelpers.InitializeArray(array3, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj3.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array3); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val7 = new CustomVegetation(val6, true, val2); ZoneManager.Instance.AddCustomVegetation(val7); GameObject val8 = MyAssets.LoadAsset<GameObject>("SeaWeed4_RtD"); val2 = new VegetationConfig(); VegetationConfig obj4 = val2; Biome[] array4 = new Biome[8]; RuntimeHelpers.InitializeArray(array4, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj4.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array4); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val9 = new CustomVegetation(val8, true, val2); ZoneManager.Instance.AddCustomVegetation(val9); GameObject val10 = MyAssets.LoadAsset<GameObject>("SeaWeed5_RtD"); val2 = new VegetationConfig(); VegetationConfig obj5 = val2; Biome[] array5 = new Biome[8]; RuntimeHelpers.InitializeArray(array5, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj5.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array5); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val11 = new CustomVegetation(val10, true, val2); ZoneManager.Instance.AddCustomVegetation(val11); GameObject val12 = MyAssets.LoadAsset<GameObject>("SeaWeed6_RtD"); val2 = new VegetationConfig(); VegetationConfig obj6 = val2; Biome[] array6 = new Biome[8]; RuntimeHelpers.InitializeArray(array6, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj6.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array6); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val13 = new CustomVegetation(val12, true, val2); ZoneManager.Instance.AddCustomVegetation(val13); GameObject val14 = MyAssets.LoadAsset<GameObject>("SeaWeed7_RtD"); val2 = new VegetationConfig(); VegetationConfig obj7 = val2; Biome[] array7 = new Biome[8]; RuntimeHelpers.InitializeArray(array7, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj7.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array7); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val15 = new CustomVegetation(val14, true, val2); ZoneManager.Instance.AddCustomVegetation(val15); GameObject val16 = MyAssets.LoadAsset<GameObject>("SeaWeed8_RtD"); val2 = new VegetationConfig(); VegetationConfig obj8 = val2; Biome[] array8 = new Biome[8]; RuntimeHelpers.InitializeArray(array8, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj8.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array8); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val17 = new CustomVegetation(val16, true, val2); ZoneManager.Instance.AddCustomVegetation(val17); GameObject val18 = MyAssets.LoadAsset<GameObject>("SeaWeed9_RtD"); val2 = new VegetationConfig(); VegetationConfig obj9 = val2; Biome[] array9 = new Biome[8]; RuntimeHelpers.InitializeArray(array9, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj9.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array9); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val19 = new CustomVegetation(val18, true, val2); ZoneManager.Instance.AddCustomVegetation(val19); GameObject val20 = MyAssets.LoadAsset<GameObject>("CoralStone1_RtD"); val2 = new VegetationConfig(); VegetationConfig obj10 = val2; Biome[] array10 = new Biome[8]; RuntimeHelpers.InitializeArray(array10, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj10.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array10); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val21 = new CustomVegetation(val20, true, val2); ZoneManager.Instance.AddCustomVegetation(val21); GameObject val22 = MyAssets.LoadAsset<GameObject>("CoralStone2_RtD"); val2 = new VegetationConfig(); VegetationConfig obj11 = val2; Biome[] array11 = new Biome[8]; RuntimeHelpers.InitializeArray(array11, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj11.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array11); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val23 = new CustomVegetation(val22, true, val2); ZoneManager.Instance.AddCustomVegetation(val23); GameObject val24 = MyAssets.LoadAsset<GameObject>("CoralStone3_RtD"); val2 = new VegetationConfig(); VegetationConfig obj12 = val2; Biome[] array12 = new Biome[8]; RuntimeHelpers.InitializeArray(array12, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj12.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array12); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val25 = new CustomVegetation(val24, true, val2); ZoneManager.Instance.AddCustomVegetation(val25); GameObject val26 = MyAssets.LoadAsset<GameObject>("CoralStone4_RtD"); val2 = new VegetationConfig(); VegetationConfig obj13 = val2; Biome[] array13 = new Biome[8]; RuntimeHelpers.InitializeArray(array13, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj13.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array13); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val27 = new CustomVegetation(val26, true, val2); ZoneManager.Instance.AddCustomVegetation(val27); GameObject val28 = MyAssets.LoadAsset<GameObject>("CoralStone5_RtD"); val2 = new VegetationConfig(); VegetationConfig obj14 = val2; Biome[] array14 = new Biome[8]; RuntimeHelpers.InitializeArray(array14, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj14.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array14); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val29 = new CustomVegetation(val28, true, val2); ZoneManager.Instance.AddCustomVegetation(val29); GameObject val30 = MyAssets.LoadAsset<GameObject>("CoralStone6_RtD"); val2 = new VegetationConfig(); VegetationConfig obj15 = val2; Biome[] array15 = new Biome[8]; RuntimeHelpers.InitializeArray(array15, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj15.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array15); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val31 = new CustomVegetation(val30, true, val2); ZoneManager.Instance.AddCustomVegetation(val31); GameObject val32 = MyAssets.LoadAsset<GameObject>("CoralStone7_RtD"); val2 = new VegetationConfig(); VegetationConfig obj16 = val2; Biome[] array16 = new Biome[8]; RuntimeHelpers.InitializeArray(array16, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj16.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array16); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val33 = new CustomVegetation(val32, true, val2); ZoneManager.Instance.AddCustomVegetation(val33); GameObject val34 = MyAssets.LoadAsset<GameObject>("CoralStone8_RtD"); val2 = new VegetationConfig(); VegetationConfig obj17 = val2; Biome[] array17 = new Biome[8]; RuntimeHelpers.InitializeArray(array17, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj17.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array17); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val35 = new CustomVegetation(val34, true, val2); ZoneManager.Instance.AddCustomVegetation(val35); GameObject val36 = MyAssets.LoadAsset<GameObject>("CoralStone9_RtD"); val2 = new VegetationConfig(); VegetationConfig obj18 = val2; Biome[] array18 = new Biome[8]; RuntimeHelpers.InitializeArray(array18, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj18.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array18); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val37 = new CustomVegetation(val36, true, val2); ZoneManager.Instance.AddCustomVegetation(val37); GameObject val38 = MyAssets.LoadAsset<GameObject>("CoralStone10_RtD"); val2 = new VegetationConfig(); VegetationConfig obj19 = val2; Biome[] array19 = new Biome[8]; RuntimeHelpers.InitializeArray(array19, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj19.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array19); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val39 = new CustomVegetation(val38, true, val2); ZoneManager.Instance.AddCustomVegetation(val39); GameObject val40 = MyAssets.LoadAsset<GameObject>("CoralStone11_RtD"); val2 = new VegetationConfig(); VegetationConfig obj20 = val2; Biome[] array20 = new Biome[8]; RuntimeHelpers.InitializeArray(array20, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj20.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array20); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val41 = new CustomVegetation(val40, true, val2); ZoneManager.Instance.AddCustomVegetation(val41); GameObject val42 = MyAssets.LoadAsset<GameObject>("CoralStone12_RtD"); val2 = new VegetationConfig(); VegetationConfig obj21 = val2; Biome[] array21 = new Biome[8]; RuntimeHelpers.InitializeArray(array21, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj21.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array21); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val43 = new CustomVegetation(val42, true, val2); ZoneManager.Instance.AddCustomVegetation(val43); GameObject val44 = MyAssets.LoadAsset<GameObject>("CoralStone13_RtD"); val2 = new VegetationConfig(); VegetationConfig obj22 = val2; Biome[] array22 = new Biome[8]; RuntimeHelpers.InitializeArray(array22, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj22.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array22); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val45 = new CustomVegetation(val44, true, val2); ZoneManager.Instance.AddCustomVegetation(val45); GameObject val46 = MyAssets.LoadAsset<GameObject>("CoralStone15_RtD"); val2 = new VegetationConfig(); VegetationConfig obj23 = val2; Biome[] array23 = new Biome[8]; RuntimeHelpers.InitializeArray(array23, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj23.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array23); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val47 = new CustomVegetation(val46, true, val2); ZoneManager.Instance.AddCustomVegetation(val47); GameObject val48 = MyAssets.LoadAsset<GameObject>("CoralStone16_RtD"); val2 = new VegetationConfig(); VegetationConfig obj24 = val2; Biome[] array24 = new Biome[8]; RuntimeHelpers.InitializeArray(array24, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj24.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array24); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val49 = new CustomVegetation(val48, true, val2); ZoneManager.Instance.AddCustomVegetation(val49); GameObject val50 = MyAssets.LoadAsset<GameObject>("CoralStone17_RtD"); val2 = new VegetationConfig(); VegetationConfig obj25 = val2; Biome[] array25 = new Biome[8]; RuntimeHelpers.InitializeArray(array25, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj25.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array25); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val51 = new CustomVegetation(val50, true, val2); ZoneManager.Instance.AddCustomVegetation(val51); GameObject val52 = MyAssets.LoadAsset<GameObject>("CoralStone18_RtD"); val2 = new VegetationConfig(); VegetationConfig obj26 = val2; Biome[] array26 = new Biome[8]; RuntimeHelpers.InitializeArray(array26, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj26.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array26); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val53 = new CustomVegetation(val52, true, val2); ZoneManager.Instance.AddCustomVegetation(val53); GameObject val54 = MyAssets.LoadAsset<GameObject>("CoralStone19_RtD"); val2 = new VegetationConfig(); VegetationConfig obj27 = val2; Biome[] array27 = new Biome[8]; RuntimeHelpers.InitializeArray(array27, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj27.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array27); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val55 = new CustomVegetation(val54, true, val2); ZoneManager.Instance.AddCustomVegetation(val55); GameObject val56 = MyAssets.LoadAsset<GameObject>("CoralStone20_RtD"); val2 = new VegetationConfig(); VegetationConfig obj28 = val2; Biome[] array28 = new Biome[8]; RuntimeHelpers.InitializeArray(array28, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj28.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array28); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val57 = new CustomVegetation(val56, true, val2); ZoneManager.Instance.AddCustomVegetation(val57); GameObject val58 = MyAssets.LoadAsset<GameObject>("CoralStone21_RtD"); val2 = new VegetationConfig(); VegetationConfig obj29 = val2; Biome[] array29 = new Biome[8]; RuntimeHelpers.InitializeArray(array29, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj29.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array29); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val59 = new CustomVegetation(val58, true, val2); ZoneManager.Instance.AddCustomVegetation(val59); GameObject val60 = MyAssets.LoadAsset<GameObject>("CoralStone22_RtD"); val2 = new VegetationConfig(); VegetationConfig obj30 = val2; Biome[] array30 = new Biome[8]; RuntimeHelpers.InitializeArray(array30, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj30.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array30); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val61 = new CustomVegetation(val60, true, val2); ZoneManager.Instance.AddCustomVegetation(val61); GameObject val62 = MyAssets.LoadAsset<GameObject>("CoralStone23_RtD"); val2 = new VegetationConfig(); VegetationConfig obj31 = val2; Biome[] array31 = new Biome[8]; RuntimeHelpers.InitializeArray(array31, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj31.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array31); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val63 = new CustomVegetation(val62, true, val2); ZoneManager.Instance.AddCustomVegetation(val63); GameObject val64 = MyAssets.LoadAsset<GameObject>("CoralStone24_RtD"); val2 = new VegetationConfig(); VegetationConfig obj32 = val2; Biome[] array32 = new Biome[8]; RuntimeHelpers.InitializeArray(array32, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj32.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array32); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val65 = new CustomVegetation(val64, true, val2); ZoneManager.Instance.AddCustomVegetation(val65); GameObject val66 = MyAssets.LoadAsset<GameObject>("CoralStone25_RtD"); val2 = new VegetationConfig(); VegetationConfig obj33 = val2; Biome[] array33 = new Biome[8]; RuntimeHelpers.InitializeArray(array33, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj33.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array33); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val67 = new CustomVegetation(val66, true, val2); ZoneManager.Instance.AddCustomVegetation(val67); GameObject val68 = MyAssets.LoadAsset<GameObject>("CoralStone26_RtD"); val2 = new VegetationConfig(); VegetationConfig obj34 = val2; Biome[] array34 = new Biome[8]; RuntimeHelpers.InitializeArray(array34, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj34.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array34); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val69 = new CustomVegetation(val68, true, val2); ZoneManager.Instance.AddCustomVegetation(val69); GameObject val70 = MyAssets.LoadAsset<GameObject>("CoralStone27_RtD"); val2 = new VegetationConfig(); VegetationConfig obj35 = val2; Biome[] array35 = new Biome[8]; RuntimeHelpers.InitializeArray(array35, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj35.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array35); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val71 = new CustomVegetation(val70, true, val2); ZoneManager.Instance.AddCustomVegetation(val71); GameObject val72 = MyAssets.LoadAsset<GameObject>("CoralStone28_RtD"); val2 = new VegetationConfig(); VegetationConfig obj36 = val2; Biome[] array36 = new Biome[8]; RuntimeHelpers.InitializeArray(array36, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj36.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array36); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val73 = new CustomVegetation(val72, true, val2); ZoneManager.Instance.AddCustomVegetation(val73); GameObject val74 = MyAssets.LoadAsset<GameObject>("CoralStone29_RtD"); val2 = new VegetationConfig(); VegetationConfig obj37 = val2; Biome[] array37 = new Biome[8]; RuntimeHelpers.InitializeArray(array37, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj37.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array37); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val75 = new CustomVegetation(val74, true, val2); ZoneManager.Instance.AddCustomVegetation(val75); GameObject val76 = MyAssets.LoadAsset<GameObject>("CoralStone30_RtD"); val2 = new VegetationConfig(); VegetationConfig obj38 = val2; Biome[] array38 = new Biome[8]; RuntimeHelpers.InitializeArray(array38, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj38.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array38); val2.Max = 2f; val2.ScaleMin = 3.4f; val2.ScaleMax = 4.4f; val2.MinAltitude = -500f; val2.MaxAltitude = -10f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val77 = new CustomVegetation(val76, true, val2); ZoneManager.Instance.AddCustomVegetation(val77); GameObject val78 = MyAssets.LoadAsset<GameObject>("Sponge1_RtD"); val2 = new VegetationConfig(); VegetationConfig obj39 = val2; Biome[] array39 = new Biome[8]; RuntimeHelpers.InitializeArray(array39, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj39.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array39); val2.Max = 2f; val2.ScaleMin = 2.6f; val2.ScaleMax = 3.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -5f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val79 = new CustomVegetation(val78, true, val2); ZoneManager.Instance.AddCustomVegetation(val79); GameObject val80 = MyAssets.LoadAsset<GameObject>("Sponge2_RtD"); val2 = new VegetationConfig(); VegetationConfig obj40 = val2; Biome[] array40 = new Biome[8]; RuntimeHelpers.InitializeArray(array40, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj40.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array40); val2.Max = 2f; val2.ScaleMin = 2.6f; val2.ScaleMax = 3.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -5f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val81 = new CustomVegetation(val80, true, val2); ZoneManager.Instance.AddCustomVegetation(val81); GameObject val82 = MyAssets.LoadAsset<GameObject>("Sponge3_RtD"); val2 = new VegetationConfig(); VegetationConfig obj41 = val2; Biome[] array41 = new Biome[8]; RuntimeHelpers.InitializeArray(array41, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj41.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array41); val2.Max = 2f; val2.ScaleMin = 2.6f; val2.ScaleMax = 3.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -5f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val83 = new CustomVegetation(val82, true, val2); ZoneManager.Instance.AddCustomVegetation(val83); GameObject val84 = MyAssets.LoadAsset<GameObject>("Sponge4_RtD"); val2 = new VegetationConfig(); VegetationConfig obj42 = val2; Biome[] array42 = new Biome[8]; RuntimeHelpers.InitializeArray(array42, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj42.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array42); val2.Max = 2f; val2.ScaleMin = 2.6f; val2.ScaleMax = 3.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -5f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val85 = new CustomVegetation(val84, true, val2); ZoneManager.Instance.AddCustomVegetation(val85); GameObject val86 = MyAssets.LoadAsset<GameObject>("Sponge5_RtD"); val2 = new VegetationConfig(); VegetationConfig obj43 = val2; Biome[] array43 = new Biome[8]; RuntimeHelpers.InitializeArray(array43, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj43.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array43); val2.Max = 2f; val2.ScaleMin = 2.6f; val2.ScaleMax = 3.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -5f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val87 = new CustomVegetation(val86, true, val2); ZoneManager.Instance.AddCustomVegetation(val87); GameObject val88 = MyAssets.LoadAsset<GameObject>("Sponge6_RtD"); val2 = new VegetationConfig(); VegetationConfig obj44 = val2; Biome[] array44 = new Biome[8]; RuntimeHelpers.InitializeArray(array44, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj44.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array44); val2.Max = 2f; val2.ScaleMin = 2.6f; val2.ScaleMax = 3.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -5f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val89 = new CustomVegetation(val88, true, val2); ZoneManager.Instance.AddCustomVegetation(val89); GameObject val90 = MyAssets.LoadAsset<GameObject>("Sponge7_RtD"); val2 = new VegetationConfig(); VegetationConfig obj45 = val2; Biome[] array45 = new Biome[8]; RuntimeHelpers.InitializeArray(array45, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj45.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array45); val2.Max = 2f; val2.ScaleMin = 2.6f; val2.ScaleMax = 3.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -5f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val91 = new CustomVegetation(val90, true, val2); ZoneManager.Instance.AddCustomVegetation(val91); GameObject val92 = MyAssets.LoadAsset<GameObject>("Sponge8_RtD"); val2 = new VegetationConfig(); VegetationConfig obj46 = val2; Biome[] array46 = new Biome[8]; RuntimeHelpers.InitializeArray(array46, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj46.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array46); val2.Max = 2f; val2.ScaleMin = 2.6f; val2.ScaleMax = 3.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -5f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val93 = new CustomVegetation(val92, true, val2); ZoneManager.Instance.AddCustomVegetation(val93); GameObject val94 = MyAssets.LoadAsset<GameObject>("Sponge9_RtD"); val2 = new VegetationConfig(); VegetationConfig obj47 = val2; Biome[] array47 = new Biome[8]; RuntimeHelpers.InitializeArray(array47, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj47.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array47); val2.Max = 2f; val2.ScaleMin = 2.6f; val2.ScaleMax = 3.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -5f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val95 = new CustomVegetation(val94, true, val2); ZoneManager.Instance.AddCustomVegetation(val95); GameObject val96 = MyAssets.LoadAsset<GameObject>("Sponge10_RtD"); val2 = new VegetationConfig(); VegetationConfig obj48 = val2; Biome[] array48 = new Biome[8]; RuntimeHelpers.InitializeArray(array48, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj48.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array48); val2.Max = 2f; val2.ScaleMin = 2.6f; val2.ScaleMax = 3.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -5f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val97 = new CustomVegetation(val96, true, val2); ZoneManager.Instance.AddCustomVegetation(val97); GameObject val98 = MyAssets.LoadAsset<GameObject>("Sponge11_RtD"); val2 = new VegetationConfig(); VegetationConfig obj49 = val2; Biome[] array49 = new Biome[8]; RuntimeHelpers.InitializeArray(array49, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj49.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array49); val2.Max = 2f; val2.ScaleMin = 2.6f; val2.ScaleMax = 3.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -5f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val99 = new CustomVegetation(val98, true, val2); ZoneManager.Instance.AddCustomVegetation(val99); GameObject val100 = MyAssets.LoadAsset<GameObject>("CoralReef1_RtD"); val2 = new VegetationConfig(); VegetationConfig obj50 = val2; Biome[] array50 = new Biome[6]; RuntimeHelpers.InitializeArray(array50, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj50.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array50); val2.Max = 6f; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -7f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 25f; CustomVegetation val101 = new CustomVegetation(val100, true, val2); ZoneManager.Instance.AddCustomVegetation(val101); GameObject val102 = MyAssets.LoadAsset<GameObject>("CoralReef2_RtD"); val2 = new VegetationConfig(); VegetationConfig obj51 = val2; Biome[] array51 = new Biome[6]; RuntimeHelpers.InitializeArray(array51, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj51.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array51); val2.Max = 6f; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -7f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 25f; CustomVegetation val103 = new CustomVegetation(val102, true, val2); ZoneManager.Instance.AddCustomVegetation(val103); GameObject val104 = MyAssets.LoadAsset<GameObject>("CoralReef3_RtD"); val2 = new VegetationConfig(); VegetationConfig obj52 = val2; Biome[] array52 = new Biome[6]; RuntimeHelpers.InitializeArray(array52, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj52.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array52); val2.Max = 6f; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -7f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 25f; CustomVegetation val105 = new CustomVegetation(val104, true, val2); ZoneManager.Instance.AddCustomVegetation(val105); GameObject val106 = MyAssets.LoadAsset<GameObject>("CoralReef4_RtD"); val2 = new VegetationConfig(); VegetationConfig obj53 = val2; Biome[] array53 = new Biome[6]; RuntimeHelpers.InitializeArray(array53, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj53.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array53); val2.Max = 6f; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -7f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 25f; CustomVegetation val107 = new CustomVegetation(val106, true, val2); ZoneManager.Instance.AddCustomVegetation(val107); GameObject val108 = MyAssets.LoadAsset<GameObject>("CoralReef5_RtD"); val2 = new VegetationConfig(); VegetationConfig obj54 = val2; Biome[] array54 = new Biome[6]; RuntimeHelpers.InitializeArray(array54, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj54.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array54); val2.Max = 6f; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -7f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 25f; CustomVegetation val109 = new CustomVegetation(val108, true, val2); ZoneManager.Instance.AddCustomVegetation(val109); GameObject val110 = MyAssets.LoadAsset<GameObject>("CoralReef6_RtD"); val2 = new VegetationConfig(); VegetationConfig obj55 = val2; Biome[] array55 = new Biome[6]; RuntimeHelpers.InitializeArray(array55, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj55.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array55); val2.Max = 6f; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -7f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 25f; CustomVegetation val111 = new CustomVegetation(val110, true, val2); ZoneManager.Instance.AddCustomVegetation(val111); GameObject val112 = MyAssets.LoadAsset<GameObject>("CoralReef7_RtD"); val2 = new VegetationConfig(); VegetationConfig obj56 = val2; Biome[] array56 = new Biome[6]; RuntimeHelpers.InitializeArray(array56, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj56.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array56); val2.Max = 6f; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -7f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 25f; CustomVegetation val113 = new CustomVegetation(val112, true, val2); ZoneManager.Instance.AddCustomVegetation(val113); GameObject val114 = MyAssets.LoadAsset<GameObject>("CoralReef8_RtD"); val2 = new VegetationConfig(); VegetationConfig obj57 = val2; Biome[] array57 = new Biome[6]; RuntimeHelpers.InitializeArray(array57, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj57.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array57); val2.Max = 6f; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -7f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 25f; CustomVegetation val115 = new CustomVegetation(val114, true, val2); ZoneManager.Instance.AddCustomVegetation(val115); GameObject val116 = MyAssets.LoadAsset<GameObject>("CoralReef9_RtD"); val2 = new VegetationConfig(); VegetationConfig obj58 = val2; Biome[] array58 = new Biome[6]; RuntimeHelpers.InitializeArray(array58, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj58.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array58); val2.Max = 6f; val2.ScaleMin = 1f; val2.ScaleMax = 2.5f; val2.MinAltitude = -7f; val2.MaxAltitude = -3f; val2.MaxTilt = 80f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 25f; CustomVegetation val117 = new CustomVegetation(val116, true, val2); ZoneManager.Instance.AddCustomVegetation(val117); GameObject val118 = MyAssets.LoadAsset<GameObject>("SeaWeed10_RtD"); val2 = new VegetationConfig(); VegetationConfig obj59 = val2; Biome[] array59 = new Biome[8]; RuntimeHelpers.InitializeArray(array59, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj59.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array59); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val119 = new CustomVegetation(val118, true, val2); ZoneManager.Instance.AddCustomVegetation(val119); GameObject val120 = MyAssets.LoadAsset<GameObject>("SeaWeed11_RtD"); val2 = new VegetationConfig(); VegetationConfig obj60 = val2; Biome[] array60 = new Biome[8]; RuntimeHelpers.InitializeArray(array60, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj60.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array60); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val121 = new CustomVegetation(val120, true, val2); ZoneManager.Instance.AddCustomVegetation(val121); GameObject val122 = MyAssets.LoadAsset<GameObject>("SeaWeed12_RtD"); val2 = new VegetationConfig(); VegetationConfig obj61 = val2; Biome[] array61 = new Biome[8]; RuntimeHelpers.InitializeArray(array61, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj61.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array61); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val123 = new CustomVegetation(val122, true, val2); ZoneManager.Instance.AddCustomVegetation(val123); GameObject val124 = MyAssets.LoadAsset<GameObject>("SeaWeed13_RtD"); val2 = new VegetationConfig(); VegetationConfig obj62 = val2; Biome[] array62 = new Biome[8]; RuntimeHelpers.InitializeArray(array62, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj62.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array62); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val125 = new CustomVegetation(val124, true, val2); ZoneManager.Instance.AddCustomVegetation(val125); GameObject val126 = MyAssets.LoadAsset<GameObject>("SeaWeed14_RtD"); val2 = new VegetationConfig(); VegetationConfig obj63 = val2; Biome[] array63 = new Biome[8]; RuntimeHelpers.InitializeArray(array63, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj63.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array63); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val127 = new CustomVegetation(val126, true, val2); ZoneManager.Instance.AddCustomVegetation(val127); GameObject val128 = MyAssets.LoadAsset<GameObject>("SeaWeed15_RtD"); val2 = new VegetationConfig(); VegetationConfig obj64 = val2; Biome[] array64 = new Biome[8]; RuntimeHelpers.InitializeArray(array64, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj64.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array64); val2.Max = 1f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val129 = new CustomVegetation(val128, true, val2); ZoneManager.Instance.AddCustomVegetation(val129); GameObject val130 = MyAssets.LoadAsset<GameObject>("SeaWeed16_RtD"); val2 = new VegetationConfig(); VegetationConfig obj65 = val2; Biome[] array65 = new Biome[8]; RuntimeHelpers.InitializeArray(array65, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/); obj65.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)array65); val2.Max = 10f; val2.ScaleMin = 4f; val2.ScaleMax = 4.2f; val2.MinAltitude = -500f; val2.MaxAltitude = -20f; val2.MaxTilt = 15f; val2.MinTerrainDelta = 1f; val2.MaxTerrainDelta = 10f; val2.MinOceanDepth = 0f; val2.MaxOceanDepth = 500f; CustomVegetation val131 = new CustomVegetation(val130, true, val2); ZoneManager.Instance.AddCustomVegetation(val131); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding vegetation: {arg}"); } } private void AddLocations() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00be: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Expected O, but got Unknown //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_0142: Unknown result type (might be due to invalid IL or missing references) //IL_0148: Expected O, but got Unknown //IL_0169: Unknown result type (might be due to invalid IL or missing references) //IL_0170: Expected O, but got Unknown //IL_0180: Unknown result type (might be due to invalid IL or missing references) //IL_01ed: Unknown result type (might be due to invalid IL or missing references) //IL_01f4: Expected O, but got Unknown //IL_0216: Unknown result type (might be due to invalid IL or missing references) //IL_021d: Expected O, but got Unknown //IL_022d: Unknown result type (might be due to invalid IL or missing references) //IL_029a: Unknown result type (might be due to invalid IL or missing references) //IL_02a1: Expected O, but got Unknown try { GameObject val = MyAssets.LoadAsset<GameObject>("ShipWreck01_RtD"); LocationConfig val2 = new LocationConfig(); val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)256 }); val2.BiomeArea = (BiomeArea)3; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.Quantity = 165; val2.ExteriorRadius = 22f; val2.MaxTerrainDelta = 60f; val2.MinDistanceFromSimilar = 200f; val2.SlopeRotation = true; CustomLocation val3 = new CustomLocation(val, true, val2); ZoneManager.Instance.AddCustomLocation(val3); GameObject val4 = MyAssets.LoadAsset<GameObject>("ShipWreck02_RtD"); val2 = new LocationConfig(); val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)256 }); val2.BiomeArea = (BiomeArea)3; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.Quantity = 165; val2.ExteriorRadius = 22f; val2.MaxTerrainDelta = 60f; val2.MinDistanceFromSimilar = 200f; val2.SlopeRotation = true; CustomLocation val5 = new CustomLocation(val4, true, val2); ZoneManager.Instance.AddCustomLocation(val5); GameObject val6 = MyAssets.LoadAsset<GameObject>("ShipWreck03_RtD"); val2 = new LocationConfig(); val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)256 }); val2.BiomeArea = (BiomeArea)3; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.Quantity = 165; val2.ExteriorRadius = 22f; val2.MaxTerrainDelta = 60f; val2.MinDistanceFromSimilar = 200f; val2.SlopeRotation = true; CustomLocation val7 = new CustomLocation(val6, true, val2); ZoneManager.Instance.AddCustomLocation(val7); GameObject val8 = MyAssets.LoadAsset<GameObject>("ShipWreck04_RtD"); val2 = new LocationConfig(); val2.Biome = ZoneManager.AnyBiomeOf((Biome[])(object)new Biome[1] { (Biome)256 }); val2.BiomeArea = (BiomeArea)3; val2.MinAltitude = -500f; val2.MaxAltitude = -3f; val2.Quantity = 165; val2.ExteriorRadius = 22f; val2.MaxTerrainDelta = 60f; val2.MinDistanceFromSimilar = 200f; val2.SlopeRotation = true; CustomLocation val9 = new CustomLocation(val8, true, val2); ZoneManager.Instance.AddCustomLocation(val9); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding custom location: {arg}"); } } } }