using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using Empress_ShopLoaderAPI;
using HarmonyLib;
using UnityEngine;
using UnityEngine.SceneManagement;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("MVP_SubwayStation_ShopMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MVP_SubwayStation_ShopMod")]
[assembly: AssemblyCopyright("Copyright © 2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("a6b868bb-a116-4296-a014-1dc1bad75585")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
[BepInPlugin("dev.thatdrw.mvp.subwaystationshopmod", "MVP SubwayStation ShopMod", "1.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class MVP_SubwayStation_ShopMod : BaseUnityPlugin
{
private void Awake()
{
//IL_0039: Unknown result type (might be due to invalid IL or missing references)
//IL_003f: Expected O, but got Unknown
((BaseUnityPlugin)this).Logger.LogInfo((object)"░█▄█░█░█░█▀█░▀░█▀▀░░░█▀▀░█░█░█▀▄░█░█░█▀█░█░█░█▀▀░▀█▀░█▀█░▀█▀░▀█▀░█▀█░█▀█░░░█▀▀░█░█░█▀█░█▀█");
((BaseUnityPlugin)this).Logger.LogInfo((object)"░█░█░▀▄▀░█▀▀░░░▀▀█░░░▀▀█░█░█░█▀▄░█▄█░█▀█░░█░░▀▀█░░█░░█▀█░░█░░░█░░█░█░█░█░░░▀▀█░█▀█░█░█░█▀▀");
((BaseUnityPlugin)this).Logger.LogInfo((object)"░▀░▀░░▀░░▀░░░░░▀▀▀░░░▀▀▀░▀▀▀░▀▀░░▀░▀░▀░▀░░▀░░▀▀▀░░▀░░▀░▀░░▀░░▀▀▀░▀▀▀░▀░▀░░░▀▀▀░▀░▀░▀▀▀░▀░░");
Harmony val = new Harmony("dev.thatdrw.mvp.subwaystationshopmod");
val.PatchAll();
SceneManager.sceneLoaded += OnSceneLoaded;
HookShopAPI();
}
private void HookShopAPI()
{
string text = Path.Combine(Path.GetDirectoryName(((BaseUnityPlugin)this).Info.Location), "mvp_subwaystationshopmod_bundle");
AssetBundle val = AssetBundle.LoadFromFile(text);
if (!((Object)(object)val == (Object)null))
{
GameObject val2 = val.LoadAsset<GameObject>("Shop Generic N - SubwayStation Shop");
if ((Object)(object)val2 != (Object)null)
{
ShopAPI.RegisterShop(val2, "DaRealMVP/SubwayStation");
}
}
}
private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
{
//IL_001b: Unknown result type (might be due to invalid IL or missing references)
//IL_0021: Expected O, but got Unknown
if ((Object)(object)GameObject.Find("MVPSubwayStationShopModHandler") == (Object)null)
{
GameObject val = new GameObject("MVPSubwayStationShopModHandler");
val.AddComponent<MVP_SubwayStation_ShopModHandler>();
Object.DontDestroyOnLoad((Object)(object)val);
}
}
private void Start()
{
}
private void Update()
{
}
}
public class MVP_SubwayStation_ShopModHandler : MonoBehaviour
{
private void Update()
{
}
}