using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using Microsoft.CodeAnalysis;
using On;
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("CattleBee")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("sigma")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("CattleBee")]
[assembly: AssemblyTitle("CattleBee")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace CattleBee
{
[BepInPlugin("Smxrez.CattleBee", "CattleBee", "1.0.0")]
public class CattleBee : BaseUnityPlugin
{
public const string PLUGIN_GUID = "Smxrez.CattleBee";
public const string PLUGIN_NAME = "CattleBee";
public const string PLUGIN_VERSION = "1.0.0";
internal static ManualLogSource Log;
public static AssetBundle bundle;
public static Material matCattleRizz;
public static Mesh meshCattleBug;
public void Awake()
{
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0072: Expected O, but got Unknown
Log = ((BaseUnityPlugin)this).Logger;
bundle = AssetBundle.LoadFromFile(Assembly.GetExecutingAssembly().Location.Replace("CattleBee.dll", "testbundle"));
matCattleRizz = bundle.LoadAsset<Material>("matCattleRizz.mat");
meshCattleBug = bundle.LoadAsset<GameObject>("beeRizzCattle.prefab").GetComponent<MeshFilter>().mesh;
CattleBug.Start += new hook_Start(ReplaceCattlebugModel);
}
private void ReplaceCattlebugModel(orig_Start orig, CattleBug self)
{
//IL_0074: Unknown result type (might be due to invalid IL or missing references)
orig.Invoke(self);
GameObject gameObject = ((Component)((Component)self).transform.Find("Art").Find("CattleBug_Body")).gameObject;
((Renderer)gameObject.GetComponent<MeshRenderer>()).material.SetTexture("_Texture", matCattleRizz.GetTexture("_MainTex"));
gameObject.GetComponent<MeshFilter>().sharedMesh = meshCattleBug;
gameObject.transform.localRotation = Quaternion.Euler(-90f, 0f, 0f);
SpringBone[] componentsInChildren = ((Component)self).GetComponentsInChildren<SpringBone>();
for (int i = 0; i < componentsInChildren.Length; i++)
{
((Component)componentsInChildren[i]).gameObject.SetActive(false);
}
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "CattleBee";
public const string PLUGIN_NAME = "CattleBee";
public const string PLUGIN_VERSION = "1.0.0";
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}