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 HarmonyLib;
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: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: AssemblyCompany("project")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("project")]
[assembly: AssemblyTitle("project")]
[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 ModelReplacement
{
public class MRMARIA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "maria";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRKIRBY : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "kirby";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRPOWER : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "power";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRHERTAOUT : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "hertaout";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRWOWANIM_JAINAOUT : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "wowanim_jainaout";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRVALKYRIE : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "valkyrie";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRDAY : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "day";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRYUUMI2 : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "yuumi2";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRLYNETTE : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "lynette";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRYUUMI : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "yuumi";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRYUUMI3 : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "yuumi3";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRJUNO : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "juno";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRSERAPHINE : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "seraphine";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRCURIS : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "curis";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRLARACROFT : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "laracroft";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRJAINA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "jaina";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MREILEEN : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "eileen";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRURAVITY : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "uravity";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRHERTAOUT_ : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "hertaout";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
[BepInPlugin("com.sesu.mod1", "skins_sesu", "0.1.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BaseUnityPlugin
{
private void Awake()
{
//IL_0171: Unknown result type (might be due to invalid IL or missing references)
//IL_0177: Expected O, but got Unknown
Assets.PopulateAssets();
ModelReplacementAPI.RegisterSuitModelReplacement("maria", typeof(MRMARIA));
ModelReplacementAPI.RegisterSuitModelReplacement("kirby", typeof(MRKIRBY));
ModelReplacementAPI.RegisterSuitModelReplacement("power", typeof(MRPOWER));
ModelReplacementAPI.RegisterSuitModelReplacement("herta", typeof(MRHERTAOUT));
ModelReplacementAPI.RegisterSuitModelReplacement("jaina", typeof(MRWOWANIM_JAINAOUT));
ModelReplacementAPI.RegisterSuitModelReplacement("yuumi", typeof(MRYUUMI));
ModelReplacementAPI.RegisterSuitModelReplacement("yuumi2", typeof(MRYUUMI2));
ModelReplacementAPI.RegisterSuitModelReplacement("day", typeof(MRDAY));
ModelReplacementAPI.RegisterSuitModelReplacement("valkyrie", typeof(MRVALKYRIE));
ModelReplacementAPI.RegisterSuitModelReplacement("yuumi3", typeof(MRYUUMI3));
ModelReplacementAPI.RegisterSuitModelReplacement("lynette", typeof(MRLYNETTE));
ModelReplacementAPI.RegisterSuitModelReplacement("juno", typeof(MRJUNO));
ModelReplacementAPI.RegisterSuitModelReplacement("seraphine", typeof(MRSERAPHINE));
ModelReplacementAPI.RegisterSuitModelReplacement("curis", typeof(MRCURIS));
ModelReplacementAPI.RegisterSuitModelReplacement("lara", typeof(MRLARACROFT));
ModelReplacementAPI.RegisterSuitModelReplacement("eileen", typeof(MREILEEN));
ModelReplacementAPI.RegisterSuitModelReplacement("uravity", typeof(MRURAVITY));
Harmony val = new Harmony("com.sesu.mod1");
val.PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin com.sesu.mod1 is loaded!");
}
}
public static class Assets
{
public static string mainAssetBundleName = "sesu_skins1";
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)
{
}
}
}