Details

Last Updated
First Uploaded
Downloads
24
Likes
0
Size
1.1MB
Dependency string
MythicManiac-SOTF_Thomas_the_Destroyer-0.1.0
Dependants
Download

plugins/ThomasTheDestroyer.dll

Download (29.9 KB)
using System;using System.Collections;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 BepInEx.Configuration;using BepInEx.Core.Logging.Interpolation;using BepInEx.Logging;using BepInEx.Unity.IL2CPP;using BepInEx.Unity.IL2CPP.Utils.Collections;using FMOD;using FMOD.Studio;using Il2CppInterop.Runtime;using Il2CppInterop.Runtime.Injection;using Il2CppInterop.Runtime.InteropTypes;using Il2CppInterop.Runtime.InteropTypes.Fields;using Il2CppSystem;using Il2CppSystem.Runtime.InteropServices;using Sons.Gameplay.GameSetup;using Sons.Gameplay.TreeCutting;using Sons.Save;using SonsApi;using UnityEngine;using UnityEngine.SceneManagement;[assembly: CompilationRelaxations(8)][assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)][assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)][assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")][assembly: AssemblyCompany("ThomasTheDestroyer")][assembly: AssemblyConfiguration("Release")][assembly: AssemblyDescription("as a small chance of spawning a friend on a set interval. Single player only.")][assembly: AssemblyFileVersion("0.1.0.0")][assembly: AssemblyInformationalVersion("0.1.0")][assembly: AssemblyProduct("ThomasTheDestroyer")][assembly: AssemblyTitle("ThomasTheDestroyer")][assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)][assembly: AssemblyVersion("0.1.0.0")][module: UnverifiableCode]namespace SonsApi{	public static class GameStateApi	{		public enum HostMode		{			SinglePlayer,			Multiplayer,			MultiplayerClient		}		public static bool IsInGame()		{			//IL_0005: Unknown result type (might be due to invalid IL or missing references)			//IL_000a: Unknown result type (might be due to invalid IL or missing references)			//IL_0019: Unknown result type (might be due to invalid IL or missing references)			//IL_001e: Unknown result type (might be due to invalid IL or missing references)			Scene sceneByName = SceneManager.GetSceneByName("SonsMain");			if (((Scene)(ref sceneByName)).IsValid())			{				sceneByName = SceneManager.GetSceneByName("SonsMainLoading");				return !((Scene)(ref sceneByName)).IsValid();			}			return false;		}		public static HostMode? GetHostMode()		{			//IL_0000: Unknown result type (might be due to invalid IL or missing references)			//IL_0005: Unknown result type (might be due to invalid IL or missing references)			//IL_0006: Unknown result type (might be due to invalid IL or missing references)			//IL_0018: Expected I4, but got Unknown			SaveGameType saveGameType = GameSetupManager.GetSaveGameType();			return (int)saveGameType switch			{
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.