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 FrontDesk.Utils;
using Microsoft.CodeAnalysis;
using UnityEngine;
using UnityEngine.SceneManagement;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("com.CTNOriginals.peak.FrontDesk")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+6f6ac4c8306498ec39f2dcf7918ee5de9fb466b2")]
[assembly: AssemblyProduct("com.CTNOriginals.peak.FrontDesk")]
[assembly: AssemblyTitle("FrontDesk")]
[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.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;
}
}
[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 BepInEx
{
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
[Conditional("CodeGeneration")]
internal sealed class BepInAutoPluginAttribute : Attribute
{
public BepInAutoPluginAttribute(string? id = null, string? name = null, string? version = null)
{
}
}
}
namespace BepInEx.Preloader.Core.Patching
{
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
[Conditional("CodeGeneration")]
internal sealed class PatcherAutoPluginAttribute : Attribute
{
public PatcherAutoPluginAttribute(string? id = null, string? name = null, string? version = null)
{
}
}
}
namespace FrontDesk
{
[BepInPlugin("com.CTNOriginals.peak.FrontDesk", "FrontDesk", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
public static bool DebugMode;
public const string Id = "com.CTNOriginals.peak.FrontDesk";
internal static ManualLogSource Log { get; private set; }
public static string Name => "FrontDesk";
public static string Version => "1.0.0";
private void Awake()
{
Log = ((BaseUnityPlugin)this).Logger;
Log.LogInfo((object)("Plugin " + Name + " (com.CTNOriginals.peak.FrontDesk) " + Version + " is loaded! (" + (DebugMode ? "Debug" : "Release") + ")"));
}
private void Start()
{
SceneLoader.Start();
}
}
public static class SceneLoader
{
public static bool LoadedIslandStartup = true;
public static void Start()
{
SceneManager.sceneLoaded += OnSceneLoaded;
}
public static void OnSceneLoaded(Scene scene, LoadSceneMode mode)
{
//IL_000c: Unknown result type (might be due to invalid IL or missing references)
//IL_0059: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_00a7: Unknown result type (might be due to invalid IL or missing references)
//IL_00c6: Unknown result type (might be due to invalid IL or missing references)
//IL_00e5: Unknown result type (might be due to invalid IL or missing references)
//IL_0104: Unknown result type (might be due to invalid IL or missing references)
CLogger.LogInfo($"Scene Loaded: {((Scene)(ref scene)).name} | {mode}");
if (((Scene)(ref scene)).name == "Airport")
{
GameObject val = GameObject.Find("Map/BL_Airport/Fences/Check In desk/AirportGateKiosk");
GameObject val2 = GameObject.Find("Map/BL_Airport/Fences/Kiosk (2)");
CLogger.LogInfo($"{((Object)val).name} | {val.transform.position}");
CLogger.LogInfo($"{((Object)val2).name} | {val2.transform.position}");
val.transform.position = new Vector3(-11f, 1.5f, 52.5f);
val.transform.eulerAngles = new Vector3(270f, 0f, 0f);
val2.transform.position = new Vector3(-8f, 1.5f, 52.5f);
val2.transform.eulerAngles = new Vector3(270f, 180f, 0f);
}
}
}
}
namespace FrontDesk.Utils
{
public static class CLogger
{
public static void Log(string message)
{
SendLog(message, "Log");
}
public static void LogInfo(string message)
{
SendLog(message, "LogInfo");
}
public static void LogError(string message)
{
SendLog(message, "LogError");
}
public static void LogWarning(string message)
{
SendLog(message, "LogWarning");
}
public static void LogFatal(string message)
{
SendLog(message, "LogFatal");
}
public static void LogMessage(string message)
{
SendLog(message, "LogMessage");
}
public static void LogException(string message, SystemException exception)
{
SendLog(message, "LogException", exception);
}
public static void LogException(string message, Exception exception)
{
SendLog(message, "LogException", exception);
}
private static void SendLog(string message, string? level = null, Exception? exception = null)
{
if (!Plugin.DebugMode && (level == "LogDebug" || level == "LogInfo"))
{
return;
}
switch (level)
{
case "LogInfo":
Plugin.Log.LogInfo((object)message);
break;
case "LogError":
Plugin.Log.LogError((object)message);
break;
case "LogWarning":
Plugin.Log.LogWarning((object)message);
break;
case "LogDebug":
Plugin.Log.LogDebug((object)message);
break;
case "LogFatal":
Plugin.Log.LogFatal((object)message);
break;
case "LogMessage":
Plugin.Log.LogMessage((object)message);
break;
case "LogException":
if (exception == null)
{
Plugin.Log.LogError((object)(message ?? ""));
}
Plugin.Log.LogError((object)(message + "\nMessage: " + exception?.Message + "\nSource: " + exception?.Source + "\n" + exception?.GetBaseException().StackTrace + "\n"));
break;
default:
if (level != "Log")
{
Debug.Log((object)("[" + level + "]: " + message));
}
else
{
Debug.Log((object)message);
}
break;
}
}
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}