using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using CustomMapLib;
using Debris_Field_RUMBLEMAP;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using MelonLoader;
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: MelonInfo(typeof(Class1), "Volcanic Battle", "1.0.2", "SpooderL", null)]
[assembly: MelonGame(null, null)]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("Debris Field RUMBLEMAP")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("Debris Field RUMBLEMAP")]
[assembly: AssemblyTitle("Debris Field RUMBLEMAP")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
internal sealed class NullableAttribute : Attribute
{
public readonly byte[] NullableFlags;
public NullableAttribute(byte P_0)
{
NullableFlags = new byte[1] { P_0 };
}
public NullableAttribute(byte[] P_0)
{
NullableFlags = P_0;
}
}
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
internal sealed class NullableContextAttribute : Attribute
{
public readonly byte Flag;
public NullableContextAttribute(byte P_0)
{
Flag = P_0;
}
}
}
namespace Debris_Field_RUMBLEMAP
{
public static class BuildInfo
{
public const string Name = "Volcanic Battle";
public const string Description = "A ring-like map but its in a volcanic cave";
public const string Author = "SpooderL";
public const string Company = null;
public const string Version = "1.0.2";
public const string DownloadLink = null;
}
public class Class1 : Map
{
public override void OnLateInitializeMelon()
{
((Map)this).Initialize("Volcanic Battle", "1.0.2", "SpooderL", (Map)(object)this);
}
public Il2CppAssetBundle LoadBundle(string path)
{
using Stream stream = ((MelonBase)this).MelonAssembly.Assembly.GetManifestResourceStream(path);
byte[] array = new byte[stream.Length];
stream.Read(array, 0, array.Length);
return Il2CppAssetBundleManager.LoadFromMemory(Il2CppStructArray<byte>.op_Implicit(array));
}
public override void OnMapCreation()
{
//IL_004a: Unknown result type (might be due to invalid IL or missing references)
//IL_006a: Unknown result type (might be due to invalid IL or missing references)
//IL_008a: Unknown result type (might be due to invalid IL or missing references)
//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
//IL_00ca: Unknown result type (might be due to invalid IL or missing references)
//IL_00e6: Unknown result type (might be due to invalid IL or missing references)
//IL_00eb: Unknown result type (might be due to invalid IL or missing references)
//IL_00ff: Unknown result type (might be due to invalid IL or missing references)
//IL_012b: Unknown result type (might be due to invalid IL or missing references)
//IL_0130: Unknown result type (might be due to invalid IL or missing references)
//IL_0144: Unknown result type (might be due to invalid IL or missing references)
//IL_0190: Unknown result type (might be due to invalid IL or missing references)
//IL_01b0: Unknown result type (might be due to invalid IL or missing references)
//IL_01d0: Unknown result type (might be due to invalid IL or missing references)
Il2CppAssetBundle val = LoadBundle("Debris_Field_RUMBLEMAP.Resources.volcanicbattle");
GameObject val2 = Object.Instantiate<GameObject>(val.LoadAsset<GameObject>("Map2"));
val2.transform.SetParent(base.mapParent.transform);
val2.transform.position = new Vector3(0f, -2f, 0f);
base.ClientPedestal.SetFirstSequence(new Vector3(0f, 0f, -4f));
base.ClientPedestal.SetSecondSequence(new Vector3(0f, -1f, 0f));
base.HostPedestal.SetFirstSequence(new Vector3(0f, 0f, 4f));
base.HostPedestal.SetSecondSequence(new Vector3(0f, -1f, 0f));
GameObject val3 = ((Map)this).CreatePrimitiveObject((PrimitiveType)2, new Vector3(0f, -2f, 0f), Quaternion.identity, new Vector3(17.8f, 0.06919862f, 17.87002f), (ObjectType)9, (PrimitivePhysicsMaterial)null);
((Renderer)val3.GetComponent<MeshRenderer>()).enabled = false;
GameObject val4 = ((Map)this).CreatePrimitiveObject((PrimitiveType)2, new Vector3(0f, -2f, 0f), Quaternion.identity, new Vector3(17.8f, 0.06919862f, 17.87002f), (ObjectType)9, (PrimitivePhysicsMaterial)null);
((Renderer)val4.GetComponent<MeshRenderer>()).enabled = false;
val4.transform.SetParent(val2.transform.Find("Platform"));
val4.transform.localPosition = new Vector3(0f, 0f, -0.5f);
val4.transform.rotation = Quaternion.Euler(91f, 0f, 0f);
val4.transform.localScale = new Vector3(1.9158928f, 0.91619563f, 1.9057577f);
GameObject val5 = Object.Instantiate<GameObject>(val.LoadAsset<GameObject>("Effects"));
val5.transform.SetParent(base.mapParent.transform);
((Behaviour)((Component)val5.transform.Find("SFX")).GetComponent<AudioSource>()).enabled = false;
}
}
}