using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using HarmonyLib;
using HololiveModelAdditions.Replacements;
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: AssemblyCompany("HololiveModelReplacements")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+e1fca9e336bed92c92e3fdb6f03eec9baa15581a")]
[assembly: AssemblyProduct("HololiveModelReplacements")]
[assembly: AssemblyTitle("HololiveModelReplacements")]
[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 HololiveModelAdditions
{
[BepInPlugin("tacocat.HololiveModels", "Hololive Company", "1.3.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BaseUnityPlugin
{
public static ConfigFile config;
public void InitConfig()
{
}
private void Awake()
{
//IL_012f: Unknown result type (might be due to invalid IL or missing references)
//IL_0135: Expected O, but got Unknown
config = ((BaseUnityPlugin)this).Config;
InitConfig();
Assets.PopulateAssets();
ModelReplacementAPI.RegisterSuitModelReplacement("Kiara", typeof(KiaraReplacement));
ModelReplacementAPI.RegisterSuitModelReplacement("Botan", typeof(BotanReplacement));
ModelReplacementAPI.RegisterSuitModelReplacement("Gura", typeof(GuraReplacement));
ModelReplacementAPI.RegisterSuitModelReplacement("Lamy", typeof(LamyReplacement));
ModelReplacementAPI.RegisterSuitModelReplacement("Okayu", typeof(OkayuReplacement));
ModelReplacementAPI.RegisterSuitModelReplacement("Watame", typeof(WatameReplacement));
ModelReplacementAPI.RegisterSuitModelReplacement("Pekora", typeof(PekoraReplacement));
ModelReplacementAPI.RegisterSuitModelReplacement("Koyori", typeof(KoyoriReplacement));
ModelReplacementAPI.RegisterSuitModelReplacement("Korone", typeof(KoroneReplacement));
ModelReplacementAPI.RegisterSuitModelReplacement("Polka", typeof(PolkaReplacement));
ModelReplacementAPI.RegisterSuitModelReplacement("Towa", typeof(TowaReplacement));
ModelReplacementAPI.RegisterSuitModelReplacement("Marine", typeof(MarineReplacement));
ModelReplacementAPI.RegisterSuitModelReplacement("Kanata", typeof(KanataReplacement));
Harmony val = new Harmony("tacocat.HololiveModels");
val.PatchAll();
}
}
public static class Assets
{
public static string mainAssetBundleName = "mbundle";
public static AssetBundle MainAssetBundle = null;
private static string GetAssemblyName()
{
return Assembly.GetExecutingAssembly().GetName().Name;
}
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 HololiveModelAdditions.Replacements
{
public class KiaraReplacement : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "kiaraPrefab";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void AddModelScripts()
{
base.UseNoPostProcessing = true;
}
}
public class BotanReplacement : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "botanPrefab";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void AddModelScripts()
{
base.UseNoPostProcessing = true;
}
}
public class GuraReplacement : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "guraPrefab";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void AddModelScripts()
{
base.UseNoPostProcessing = true;
}
}
public class LamyReplacement : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "lamyPrefab";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void AddModelScripts()
{
base.UseNoPostProcessing = true;
}
}
public class OkayuReplacement : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "okayuPrefab";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void AddModelScripts()
{
base.UseNoPostProcessing = true;
}
}
public class WatameReplacement : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "watamePrefab";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void AddModelScripts()
{
base.UseNoPostProcessing = true;
}
}
public class PekoraReplacement : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "pekoraPrefab";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void AddModelScripts()
{
base.UseNoPostProcessing = true;
}
}
public class KoyoriReplacement : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "koyoriPrefab";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void AddModelScripts()
{
base.UseNoPostProcessing = true;
}
}
public class KoroneReplacement : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "koronePrefab";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void AddModelScripts()
{
base.UseNoPostProcessing = true;
}
}
public class PolkaReplacement : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "polkaPrefab";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void AddModelScripts()
{
base.UseNoPostProcessing = true;
}
}
public class TowaReplacement : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "towaPrefab";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void AddModelScripts()
{
base.UseNoPostProcessing = true;
}
}
public class MarineReplacement : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "marinePrefab";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void AddModelScripts()
{
base.UseNoPostProcessing = true;
}
}
public class KanataReplacement : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "kanataPrefab";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void AddModelScripts()
{
base.UseNoPostProcessing = true;
}
}
}