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 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: AssemblyCompany("KriperIVI")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.1.0")]
[assembly: AssemblyInformationalVersion("1.0.1")]
[assembly: AssemblyProduct("ChefsTouch")]
[assembly: AssemblyTitle("ChefsTouch")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.1.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 ChefsTouch
{
[BepInPlugin("Kriper1111.ChefsTouch", "ChefsTouch", "1.0.1")]
public class ChefsTouch : BaseUnityPlugin
{
[CompilerGenerated]
private static class <>O
{
public static hook_Start <0>__ChefFoodPickControllerOnStart;
}
public const string PluginGUID = "Kriper1111.ChefsTouch";
public const string PluginAuthor = "Kriper1111";
public const string PluginName = "ChefsTouch";
public const string PluginVersion = "1.0.1";
public void Awake()
{
//IL_0011: Unknown result type (might be due to invalid IL or missing references)
//IL_0016: Unknown result type (might be due to invalid IL or missing references)
//IL_001c: Expected O, but got Unknown
object obj = <>O.<0>__ChefFoodPickControllerOnStart;
if (obj == null)
{
hook_Start val = ChefFoodPickControllerOnStart;
<>O.<0>__ChefFoodPickControllerOnStart = val;
obj = (object)val;
}
ChefFoodPickController.Start += (hook_Start)obj;
}
private static void ChefFoodPickControllerOnStart(orig_Start orig, ChefFoodPickController self)
{
orig.Invoke(self);
Transform val = ((Component)self).transform.Find("GravitationController");
((Component)val).gameObject.SetActive(true);
((Behaviour)((Component)val).GetComponent<MonoBehaviour>()).enabled = true;
Rigidbody component = ((Component)((Component)self).transform).GetComponent<Rigidbody>();
component.constraints = (RigidbodyConstraints)0;
component.WakeUp();
}
private void OnDestroy()
{
//IL_0011: Unknown result type (might be due to invalid IL or missing references)
//IL_0016: Unknown result type (might be due to invalid IL or missing references)
//IL_001c: Expected O, but got Unknown
object obj = <>O.<0>__ChefFoodPickControllerOnStart;
if (obj == null)
{
hook_Start val = ChefFoodPickControllerOnStart;
<>O.<0>__ChefFoodPickControllerOnStart = val;
obj = (object)val;
}
ChefFoodPickController.Start -= (hook_Start)obj;
}
}
}