using System;
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 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("BlueArchiveModelReplayment")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("BlueArchiveModelReplayment")]
[assembly: AssemblyTitle("BlueArchiveModelReplayment")]
[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 BlueArchiveModelReplayment
{
public class BRARISU : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Arisu";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRKAZUSA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "kazusa";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRKISAKI : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "kisaki_new";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRKOKONA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Kokona";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRMARI : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "mari";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRMIDORI : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "midori";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRMOMOMI : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "momoi";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRNOAH : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Noah";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRYUKA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Yuka";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRYUZU : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "yuzu";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRHIFUMI : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Hifumi";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRHOSINO : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Hosino";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRSHIROKO : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Shiroko";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRHANAKO : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Hanako";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRAZUSA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Azusa";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRKOHARU : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Koharu";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRAKO : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Ako";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRARONA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Arona";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRHINA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Hina_swim";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRIORI : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Iori";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRJUSTICEMOB : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "JusticeMob";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRMAKI : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Maki";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRMIYAKO : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Miyako";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRNAGISA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Nagisa";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRPLANA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Plana";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRMIKA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Mika";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRFUUKA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Fuuka";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRHARUNA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Haruna";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRIROHA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Iroha";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRKOYUKI : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Koyuki";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRSAKURAKO : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Sakurako";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRSEIA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Seia";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRSHUN : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Shun";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRSENSEI : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Sensei";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRARU : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Aru";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRASUNA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Asuna";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRHINADRESS : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Hina(Dress)";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRIBUKI : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Ibuki";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRKARIN : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Karin";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRNATSU : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Natsu";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRRIO : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Rio";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRSERINA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Serina";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRSHUPOGAKI1 : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Shupogaki-1";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRSHUPOGAKI2 : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Shupogaki-2";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRTOKI : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Toki";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class BRYUME : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Yume";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
[BepInPlugin("mkmods.BlueArchiveModelReplayment", "BlueArchiveModelReplaymentByMK", "8.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BaseUnityPlugin
{
public static ConfigFile config;
private void Awake()
{
//IL_03dd: Unknown result type (might be due to invalid IL or missing references)
//IL_03e3: Expected O, but got Unknown
config = ((BaseUnityPlugin)this).Config;
Assets.PopulateAssets();
ModelReplacementAPI.RegisterSuitModelReplacement("Arisu", typeof(BRARISU));
ModelReplacementAPI.RegisterSuitModelReplacement("Kazusa", typeof(BRKAZUSA));
ModelReplacementAPI.RegisterSuitModelReplacement("Kisaki", typeof(BRKISAKI));
ModelReplacementAPI.RegisterSuitModelReplacement("Kokona", typeof(BRKOKONA));
ModelReplacementAPI.RegisterSuitModelReplacement("Mari", typeof(BRMARI));
ModelReplacementAPI.RegisterSuitModelReplacement("Midori", typeof(BRMIDORI));
ModelReplacementAPI.RegisterSuitModelReplacement("Momomi", typeof(BRMOMOMI));
ModelReplacementAPI.RegisterSuitModelReplacement("Noah", typeof(BRNOAH));
ModelReplacementAPI.RegisterSuitModelReplacement("Yuka", typeof(BRYUKA));
ModelReplacementAPI.RegisterSuitModelReplacement("Yuzu", typeof(BRYUZU));
ModelReplacementAPI.RegisterSuitModelReplacement("Hifumi", typeof(BRHIFUMI));
ModelReplacementAPI.RegisterSuitModelReplacement("Hosino", typeof(BRHOSINO));
ModelReplacementAPI.RegisterSuitModelReplacement("Shiroko", typeof(BRSHIROKO));
ModelReplacementAPI.RegisterSuitModelReplacement("Hanako", typeof(BRHANAKO));
ModelReplacementAPI.RegisterSuitModelReplacement("Azusa", typeof(BRAZUSA));
ModelReplacementAPI.RegisterSuitModelReplacement("Koharu", typeof(BRKOHARU));
ModelReplacementAPI.RegisterSuitModelReplacement("Ako", typeof(BRAKO));
ModelReplacementAPI.RegisterSuitModelReplacement("Arona", typeof(BRARONA));
ModelReplacementAPI.RegisterSuitModelReplacement("Hina", typeof(BRHINA));
ModelReplacementAPI.RegisterSuitModelReplacement("Iori", typeof(BRIORI));
ModelReplacementAPI.RegisterSuitModelReplacement("Justice_Mob", typeof(BRJUSTICEMOB));
ModelReplacementAPI.RegisterSuitModelReplacement("Maki", typeof(BRMAKI));
ModelReplacementAPI.RegisterSuitModelReplacement("Miyako", typeof(BRMIYAKO));
ModelReplacementAPI.RegisterSuitModelReplacement("Nagisa", typeof(BRNAGISA));
ModelReplacementAPI.RegisterSuitModelReplacement("Plana", typeof(BRPLANA));
ModelReplacementAPI.RegisterSuitModelReplacement("Mika(sport)", typeof(BRMIKA));
ModelReplacementAPI.RegisterSuitModelReplacement("Fuuka", typeof(BRFUUKA));
ModelReplacementAPI.RegisterSuitModelReplacement("Haruna", typeof(BRHARUNA));
ModelReplacementAPI.RegisterSuitModelReplacement("Iroha", typeof(BRIROHA));
ModelReplacementAPI.RegisterSuitModelReplacement("Koyuki_", typeof(BRKOYUKI));
ModelReplacementAPI.RegisterSuitModelReplacement("Sakurako", typeof(BRSAKURAKO));
ModelReplacementAPI.RegisterSuitModelReplacement("Seia", typeof(BRSEIA));
ModelReplacementAPI.RegisterSuitModelReplacement("Shun", typeof(BRSHUN));
ModelReplacementAPI.RegisterSuitModelReplacement("Sensei", typeof(BRSENSEI));
ModelReplacementAPI.RegisterSuitModelReplacement("Aru(Dress)", typeof(BRARU));
ModelReplacementAPI.RegisterSuitModelReplacement("Asuna", typeof(BRASUNA));
ModelReplacementAPI.RegisterSuitModelReplacement("Hina(Dress)", typeof(BRHINADRESS));
ModelReplacementAPI.RegisterSuitModelReplacement("Ibuki", typeof(BRIBUKI));
ModelReplacementAPI.RegisterSuitModelReplacement("Karin", typeof(BRKARIN));
ModelReplacementAPI.RegisterSuitModelReplacement("Natsu", typeof(BRNATSU));
ModelReplacementAPI.RegisterSuitModelReplacement("Rio", typeof(BRRIO));
ModelReplacementAPI.RegisterSuitModelReplacement("Serina", typeof(BRSERINA));
ModelReplacementAPI.RegisterSuitModelReplacement("Highlander Twins 1", typeof(BRSHUPOGAKI1));
ModelReplacementAPI.RegisterSuitModelReplacement("Highlander Twins 2", typeof(BRSHUPOGAKI2));
ModelReplacementAPI.RegisterSuitModelReplacement("Toki", typeof(BRTOKI));
ModelReplacementAPI.RegisterSuitModelReplacement("Yume", typeof(BRYUME));
Harmony val = new Harmony("mkmods.BlueArchiveModelReplayment");
val.PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin mkmods.BlueArchiveModelReplayment is loaded!");
}
}
public static class Assets
{
public static string mainAssetBundleName = "bamodelbundle";
public static AssetBundle MainAssetBundle = null;
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);
}
}
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}