Decompiled source of Aurora Playermodel Pack v2.0.2

Aurora Playermodel Pack.dll

Decompiled 3 weeks ago
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using HarmonyLib;
using LethalConfig;
using LethalConfig.ConfigItems;
using LethalConfig.ConfigItems.Options;
using Microsoft.CodeAnalysis;
using ModelReplacement;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: AssemblyCompany("Aurora Playermodel Pack")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("Aurora Playermodel Pack")]
[assembly: AssemblyTitle("Aurora Playermodel Pack")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
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 AuroraPlayermodels
{
	public class AURORA_BASE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			if (!Plugin.BaseHat.Value)
			{
				string text = "Aurora_Base";
				return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
			}
			if (Plugin.BaseHat.Value)
			{
				string text2 = "Aurora_Base_NoHat";
				return Assets.MainAssetBundle.LoadAsset<GameObject>(text2);
			}
			string text3 = "Aurora_Base";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text3);
		}

		protected override void OnEmoteStart(int emoteId)
		{
			if (emoteId == 1 && Plugin.enableVoiceLines.Value)
			{
				AudioClip randomAudio = Assets.auroraE1.GetRandomAudio(StartOfRound.Instance.randomMapSeed);
				((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio, 0.8f);
			}
			if (emoteId == 2 && Plugin.enableVoiceLines.Value)
			{
				AudioClip randomAudio2 = Assets.auroraE2.GetRandomAudio(StartOfRound.Instance.randomMapSeed);
				((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio2, 0.8f);
			}
		}

		protected override void OnHitEnemy(bool dead)
		{
			((BodyReplacementBase)this).OnHitEnemy(dead);
			if (!dead && Plugin.enableAttackLines.Value)
			{
				AudioClip randomAudio = Assets.auroraHit.GetRandomAudio(StartOfRound.Instance.randomMapSeed);
				((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio, 0.8f);
			}
			if (dead && Plugin.enableAttackLines.Value)
			{
				AudioClip randomAudio2 = Assets.auroraGloat.GetRandomAudio(StartOfRound.Instance.randomMapSeed);
				((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio2, 0.8f);
			}
		}

		protected override void Start()
		{
			((BodyReplacementBase)this).Start();
		}
	}
	public class AURORA_ANIMASQUAD : BodyReplacementBase
	{
		private List<string> baseMatNames = new List<string> { "AAS_body_color", "AAS_weapon_color" };

		protected override GameObject LoadAssetsAndReturnModel()
		{
			if (!Plugin.AnimaSquadHat.Value)
			{
				string text = "Aurora_AnimaSquad";
				GameObject val = Assets.MainAssetBundle.LoadAsset<GameObject>(text);
				if (Plugin.AnimaSquadChroma.Value == 1)
				{
					Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color");
					SkinnedMeshRenderer[] componentsInChildren = val.GetComponentsInChildren<SkinnedMeshRenderer>();
					SkinnedMeshRenderer[] array = componentsInChildren;
					foreach (SkinnedMeshRenderer val2 in array)
					{
						((Renderer)val2).SetMaterial(material);
					}
				}
				if (Plugin.AnimaSquadChroma.Value == 2)
				{
					Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color1");
					SkinnedMeshRenderer[] componentsInChildren2 = val.GetComponentsInChildren<SkinnedMeshRenderer>();
					SkinnedMeshRenderer[] array2 = componentsInChildren2;
					foreach (SkinnedMeshRenderer val3 in array2)
					{
						((Renderer)val3).SetMaterial(material);
					}
				}
				if (Plugin.AnimaSquadChroma.Value == 3)
				{
					Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color2");
					SkinnedMeshRenderer[] componentsInChildren3 = val.GetComponentsInChildren<SkinnedMeshRenderer>();
					SkinnedMeshRenderer[] array3 = componentsInChildren3;
					foreach (SkinnedMeshRenderer val4 in array3)
					{
						((Renderer)val4).SetMaterial(material);
					}
				}
				if (Plugin.AnimaSquadChroma.Value == 4)
				{
					Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color3");
					SkinnedMeshRenderer[] componentsInChildren4 = val.GetComponentsInChildren<SkinnedMeshRenderer>();
					SkinnedMeshRenderer[] array4 = componentsInChildren4;
					foreach (SkinnedMeshRenderer val5 in array4)
					{
						((Renderer)val5).SetMaterial(material);
					}
				}
				if (Plugin.AnimaSquadChroma.Value == 5)
				{
					Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color4");
					SkinnedMeshRenderer[] componentsInChildren5 = val.GetComponentsInChildren<SkinnedMeshRenderer>();
					SkinnedMeshRenderer[] array5 = componentsInChildren5;
					foreach (SkinnedMeshRenderer val6 in array5)
					{
						((Renderer)val6).SetMaterial(material);
					}
				}
				if (Plugin.AnimaSquadChroma.Value == 6)
				{
					Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color5");
					SkinnedMeshRenderer[] componentsInChildren6 = val.GetComponentsInChildren<SkinnedMeshRenderer>();
					SkinnedMeshRenderer[] array6 = componentsInChildren6;
					foreach (SkinnedMeshRenderer val7 in array6)
					{
						((Renderer)val7).SetMaterial(material);
					}
				}
				if (Plugin.AnimaSquadChroma.Value == 7)
				{
					Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color6");
					SkinnedMeshRenderer[] componentsInChildren7 = val.GetComponentsInChildren<SkinnedMeshRenderer>();
					SkinnedMeshRenderer[] array7 = componentsInChildren7;
					foreach (SkinnedMeshRenderer val8 in array7)
					{
						((Renderer)val8).SetMaterial(material);
					}
				}
				if (Plugin.AnimaSquadChroma.Value == 8)
				{
					Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color7");
					SkinnedMeshRenderer[] componentsInChildren8 = val.GetComponentsInChildren<SkinnedMeshRenderer>();
					SkinnedMeshRenderer[] array8 = componentsInChildren8;
					foreach (SkinnedMeshRenderer val9 in array8)
					{
						((Renderer)val9).SetMaterial(material);
					}
				}
				if (Plugin.AnimaSquadChroma.Value == 9)
				{
					Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color8");
					SkinnedMeshRenderer[] componentsInChildren9 = val.GetComponentsInChildren<SkinnedMeshRenderer>();
					SkinnedMeshRenderer[] array9 = componentsInChildren9;
					foreach (SkinnedMeshRenderer val10 in array9)
					{
						((Renderer)val10).SetMaterial(material);
					}
				}
				if (Plugin.AnimaSquadChroma.Value == 10)
				{
					Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color9");
					SkinnedMeshRenderer[] componentsInChildren10 = val.GetComponentsInChildren<SkinnedMeshRenderer>();
					Object.Destroy((Object)(object)componentsInChildren10[5]);
				}
				return val;
			}
			string text2 = "Aurora_AnimaSquad_NoHat";
			GameObject val11 = Assets.MainAssetBundle.LoadAsset<GameObject>(text2);
			if (Plugin.AnimaSquadChroma.Value == 1)
			{
				Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color");
				SkinnedMeshRenderer[] componentsInChildren11 = val11.GetComponentsInChildren<SkinnedMeshRenderer>();
				SkinnedMeshRenderer[] array10 = componentsInChildren11;
				foreach (SkinnedMeshRenderer val12 in array10)
				{
					((Renderer)val12).SetMaterial(material);
				}
			}
			if (Plugin.AnimaSquadChroma.Value == 2)
			{
				Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color1");
				SkinnedMeshRenderer[] componentsInChildren12 = val11.GetComponentsInChildren<SkinnedMeshRenderer>();
				SkinnedMeshRenderer[] array11 = componentsInChildren12;
				foreach (SkinnedMeshRenderer val13 in array11)
				{
					((Renderer)val13).SetMaterial(material);
				}
			}
			if (Plugin.AnimaSquadChroma.Value == 3)
			{
				Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color2");
				SkinnedMeshRenderer[] componentsInChildren13 = val11.GetComponentsInChildren<SkinnedMeshRenderer>();
				SkinnedMeshRenderer[] array12 = componentsInChildren13;
				foreach (SkinnedMeshRenderer val14 in array12)
				{
					((Renderer)val14).SetMaterial(material);
				}
			}
			if (Plugin.AnimaSquadChroma.Value == 4)
			{
				Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color3");
				SkinnedMeshRenderer[] componentsInChildren14 = val11.GetComponentsInChildren<SkinnedMeshRenderer>();
				SkinnedMeshRenderer[] array13 = componentsInChildren14;
				foreach (SkinnedMeshRenderer val15 in array13)
				{
					((Renderer)val15).SetMaterial(material);
				}
			}
			if (Plugin.AnimaSquadChroma.Value == 5)
			{
				Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color4");
				SkinnedMeshRenderer[] componentsInChildren15 = val11.GetComponentsInChildren<SkinnedMeshRenderer>();
				SkinnedMeshRenderer[] array14 = componentsInChildren15;
				foreach (SkinnedMeshRenderer val16 in array14)
				{
					((Renderer)val16).SetMaterial(material);
				}
			}
			if (Plugin.AnimaSquadChroma.Value == 6)
			{
				Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color5");
				SkinnedMeshRenderer[] componentsInChildren16 = val11.GetComponentsInChildren<SkinnedMeshRenderer>();
				SkinnedMeshRenderer[] array15 = componentsInChildren16;
				foreach (SkinnedMeshRenderer val17 in array15)
				{
					((Renderer)val17).SetMaterial(material);
				}
			}
			if (Plugin.AnimaSquadChroma.Value == 7)
			{
				Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color6");
				SkinnedMeshRenderer[] componentsInChildren17 = val11.GetComponentsInChildren<SkinnedMeshRenderer>();
				SkinnedMeshRenderer[] array16 = componentsInChildren17;
				foreach (SkinnedMeshRenderer val18 in array16)
				{
					((Renderer)val18).SetMaterial(material);
				}
			}
			if (Plugin.AnimaSquadChroma.Value == 8)
			{
				Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color7");
				SkinnedMeshRenderer[] componentsInChildren18 = val11.GetComponentsInChildren<SkinnedMeshRenderer>();
				SkinnedMeshRenderer[] array17 = componentsInChildren18;
				foreach (SkinnedMeshRenderer val19 in array17)
				{
					((Renderer)val19).SetMaterial(material);
				}
			}
			if (Plugin.AnimaSquadChroma.Value == 9)
			{
				Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color8");
				SkinnedMeshRenderer[] componentsInChildren19 = val11.GetComponentsInChildren<SkinnedMeshRenderer>();
				SkinnedMeshRenderer[] array18 = componentsInChildren19;
				foreach (SkinnedMeshRenderer val20 in array18)
				{
					((Renderer)val20).SetMaterial(material);
				}
			}
			if (Plugin.AnimaSquadChroma.Value == 10)
			{
				Material material = Assets.MainAssetBundle.LoadAsset<Material>("AAS_body_color9");
				SkinnedMeshRenderer[] componentsInChildren20 = val11.GetComponentsInChildren<SkinnedMeshRenderer>();
				SkinnedMeshRenderer[] array19 = componentsInChildren20;
				foreach (SkinnedMeshRenderer val21 in array19)
				{
					((Renderer)val21).SetMaterial(material);
				}
			}
			return val11;
		}

		protected override void OnEmoteStart(int emoteId)
		{
			if (emoteId == 1 && Plugin.enableVoiceLines.Value)
			{
				AudioClip randomAudio = Assets.auroraE1.GetRandomAudio(StartOfRound.Instance.randomMapSeed);
				((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio, 0.8f);
			}
			if (emoteId == 2 && Plugin.enableVoiceLines.Value)
			{
				AudioClip randomAudio2 = Assets.auroraE2.GetRandomAudio(StartOfRound.Instance.randomMapSeed);
				((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio2, 0.8f);
			}
		}

		protected override void OnHitEnemy(bool dead)
		{
			((BodyReplacementBase)this).OnHitEnemy(dead);
			if (!dead && Plugin.enableAttackLines.Value)
			{
				AudioClip randomAudio = Assets.auroraHit.GetRandomAudio(StartOfRound.Instance.randomMapSeed);
				((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio, 0.8f);
			}
			if (dead && Plugin.enableAttackLines.Value)
			{
				AudioClip randomAudio2 = Assets.auroraGloat.GetRandomAudio(StartOfRound.Instance.randomMapSeed);
				((BodyReplacementBase)this).controller.movementAudio.PlayOneShot(randomAudio2, 0.8f);
			}
		}
	}
	[BepInPlugin("com.theflipsider.aurora.playermodels", "Aurora Playermodel Pack", "1.2.0")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class Plugin : BaseUnityPlugin
	{
		public static ConfigFile config;

		public static ConfigEntry<bool> enableVoiceLines { get; private set; }

		public static ConfigEntry<bool> enableAttackLines { get; private set; }

		public static ConfigEntry<bool> BaseHat { get; private set; }

		public static ConfigEntry<int> AnimaSquadChroma { get; private set; }

		public static ConfigEntry<bool> AnimaSquadHat { get; private set; }

		private static void InitConfig()
		{
			//IL_00a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b8: Expected O, but got Unknown
			//IL_00b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b9: Expected O, but got Unknown
			//IL_00c5: 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_00d7: Expected O, but got Unknown
			//IL_00d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d8: Expected O, but got Unknown
			//IL_00e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f6: Expected O, but got Unknown
			//IL_00f1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f7: Expected O, but got Unknown
			//IL_0103: Unknown result type (might be due to invalid IL or missing references)
			//IL_0108: Unknown result type (might be due to invalid IL or missing references)
			//IL_0110: Unknown result type (might be due to invalid IL or missing references)
			//IL_0117: Expected O, but got Unknown
			//IL_0118: Unknown result type (might be due to invalid IL or missing references)
			//IL_0120: Expected O, but got Unknown
			//IL_0126: Expected O, but got Unknown
			//IL_0121: Unknown result type (might be due to invalid IL or missing references)
			//IL_0127: Expected O, but got Unknown
			//IL_0133: Unknown result type (might be due to invalid IL or missing references)
			//IL_0138: Unknown result type (might be due to invalid IL or missing references)
			//IL_0145: Expected O, but got Unknown
			//IL_0140: Unknown result type (might be due to invalid IL or missing references)
			//IL_0147: Expected O, but got Unknown
			enableVoiceLines = config.Bind<bool>("Voice lines", "Enable Emote Voice Lines", true, "Lets Aurora speak her neurodivergent mind while emoting.");
			enableAttackLines = config.Bind<bool>("Voice lines", "Enable Attack Voice Lines", true, "Toggles voice lines on hitting enemies.");
			BaseHat = config.Bind<bool>("Classic Aurora", "Disable hat", false, "Takes off base Aurora's hat. Reapply the suit for the effect!");
			AnimaSquadHat = config.Bind<bool>("Battle Bunny", "Disable hat", false, "Takes off Battle Bunny Aurora's hat. Reapply the suit for the effect!");
			AnimaSquadChroma = config.Bind<int>("Battle Bunny", "Choose chroma (color)", 1, "Picks what chroma Battle Bunny Aurora uses. Reapply the suit for the effect!");
			BoolCheckBoxConfigItem val = new BoolCheckBoxConfigItem(enableVoiceLines, new BoolCheckBoxOptions
			{
				RequiresRestart = false
			});
			LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val);
			BoolCheckBoxConfigItem val2 = new BoolCheckBoxConfigItem(enableAttackLines, new BoolCheckBoxOptions
			{
				RequiresRestart = false
			});
			LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val);
			BoolCheckBoxConfigItem val3 = new BoolCheckBoxConfigItem(BaseHat, new BoolCheckBoxOptions
			{
				RequiresRestart = false
			});
			LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val3);
			ConfigEntry<int> animaSquadChroma = AnimaSquadChroma;
			IntSliderOptions val4 = new IntSliderOptions
			{
				RequiresRestart = false
			};
			((BaseRangeOptions<int>)val4).Min = 1;
			((BaseRangeOptions<int>)val4).Max = 10;
			IntSliderConfigItem val5 = new IntSliderConfigItem(animaSquadChroma, val4);
			LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val5);
			BoolCheckBoxConfigItem val6 = new BoolCheckBoxConfigItem(AnimaSquadHat, new BoolCheckBoxOptions
			{
				RequiresRestart = false
			});
			LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val6);
		}

		private void Awake()
		{
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_004d: Expected O, but got Unknown
			config = ((BaseUnityPlugin)this).Config;
			InitConfig();
			Assets.PopulateAssets();
			ModelReplacementAPI.RegisterSuitModelReplacement("Classic Aurora", typeof(AURORA_BASE));
			ModelReplacementAPI.RegisterSuitModelReplacement("Battle Bunny Aurora", typeof(AURORA_ANIMASQUAD));
			Harmony val = new Harmony("com.theflipsider.aurora.playermodels");
			val.PatchAll();
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Aurora Playermodels - See with eyes unclouded!");
		}
	}
	public static class Assets
	{
		public class RandomAudioClip
		{
			private List<AudioClip> audioClipList = new List<AudioClip>();

			public AudioClip GetRandomAudio(int seed)
			{
				Random random = new Random();
				int num = random.Next(audioClipList.Count);
				Console.WriteLine($"Get audio N {audioClipList.Count} > {num}");
				return audioClipList[num];
			}

			public void AddAudio(string name)
			{
				AudioClip audioClipFromName = GetAudioClipFromName(name);
				if ((Object)(object)audioClipFromName != (Object)null)
				{
					audioClipList.Add(audioClipFromName);
				}
				else
				{
					Console.WriteLine("clip " + name + " null");
				}
			}
		}

		public static string mainAssetBundleName = "AuroraPlayermodels";

		public static AssetBundle MainAssetBundle = null;

		public static RandomAudioClip auroraE1 = new RandomAudioClip();

		public static RandomAudioClip auroraE2 = new RandomAudioClip();

		public static RandomAudioClip auroraHit = new RandomAudioClip();

		public static RandomAudioClip auroraGloat = new RandomAudioClip();

		private static string GetAssemblyName()
		{
			return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_");
		}

		public static void PopulateAssets()
		{
			if ((Object)(object)MainAssetBundle == (Object)null)
			{
				Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName);
				using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName);
				MainAssetBundle = AssetBundle.LoadFromStream(stream);
			}
			auroraE1.AddAudio("aurora_dance");
			auroraE1.AddAudio("aurora_auntie");
			auroraE1.AddAudio("aurora_carrots");
			auroraE1.AddAudio("aurora_company");
			auroraE1.AddAudio("aurora_laugh");
			auroraE1.AddAudio("aurora_left");
			auroraE1.AddAudio("aurora_thanks");
			auroraE1.AddAudio("aurora_train");
			auroraE1.AddAudio("aurora_woke");
			auroraE1.AddAudio("aurora_home");
			auroraE1.AddAudio("aurora_research");
			auroraE2.AddAudio("aurora_anyway");
			auroraE2.AddAudio("aurora_beaut");
			auroraE2.AddAudio("aurora_book");
			auroraE2.AddAudio("aurora_bookmark");
			auroraE2.AddAudio("aurora_explain");
			auroraE2.AddAudio("aurora_read");
			auroraE2.AddAudio("aurora_sounds");
			auroraE2.AddAudio("aurora_spirit");
			auroraE2.AddAudio("aurora_walking");
			auroraE2.AddAudio("aurora_work");
			auroraE2.AddAudio("aurora_fascinating");
			auroraE2.AddAudio("aurora_balance");
			auroraHit.AddAudio("aurora_stayback");
			auroraHit.AddAudio("aurora_attack1");
			auroraHit.AddAudio("aurora_attack1");
			auroraHit.AddAudio("aurora_attack2");
			auroraHit.AddAudio("aurora_attack3");
			auroraHit.AddAudio("aurora_attack4");
			auroraHit.AddAudio("aurora_attack5");
			auroraHit.AddAudio("aurora_attack6");
			auroraHit.AddAudio("aurora_attack7");
			auroraHit.AddAudio("aurora_E1");
			auroraHit.AddAudio("aurora_E2");
			auroraHit.AddAudio("aurora_leave");
			auroraHit.AddAudio("aurora_pcha");
			auroraHit.AddAudio("aurora_Q1");
			auroraHit.AddAudio("aurora_Q2");
			auroraHit.AddAudio("aurora_R1");
			auroraHit.AddAudio("aurora_R2");
			auroraGloat.AddAudio("aurora_bookmark");
			auroraGloat.AddAudio("aurora_spirit");
			auroraGloat.AddAudio("aurora_train");
			auroraGloat.AddAudio("aurora_enough");
			auroraGloat.AddAudio("aurora_waste");
			auroraGloat.AddAudio("aurora_work");
			auroraGloat.AddAudio("aurora_book");
		}

		public static AudioClip GetAudioClipFromName(string name)
		{
			Object obj = MainAssetBundle.LoadAsset(name);
			return (AudioClip)(object)((obj is AudioClip) ? obj : null);
		}
	}
}
namespace System.Runtime.CompilerServices
{
	[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
	internal sealed class IgnoresAccessChecksToAttribute : Attribute
	{
		public IgnoresAccessChecksToAttribute(string assemblyName)
		{
		}
	}
}