Decompiled source of Tima Seals mod v1.0.0

BepInEx/plugins/TimaSealsMod/TimaSealLCMod.dll

Decompiled 3 months ago
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using LethalLib.Modules;
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.0", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("TimaSealLCMod")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("TimaSealLCMod")]
[assembly: AssemblyTitle("TimaSealLCMod")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace LCClassLibrary;

[BepInPlugin("TimaSeal.LCMod", "Tima Seal's mod", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
	private const string GUID = "TimaSeal.LCMod";

	private const string NAME = "Tima Seal's mod";

	private const string VERSION = "1.0.0";

	public static Plugin instance;

	private void Awake()
	{
		instance = this;
		string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "timalcmod");
		AssetBundle val = AssetBundle.LoadFromFile(text);
		((BaseUnityPlugin)this).Logger.LogInfo((object)"loaded AssetBundle: ");
		((BaseUnityPlugin)this).Logger.LogInfo((object)val);
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Loading seal item...");
		Item val2 = val.LoadAsset<Item>("Assets/Seal/seal plushie item.asset");
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded seal item, setting up");
		NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
		Utilities.FixMixerGroups(val2.spawnPrefab);
		Items.RegisterScrap(val2, 7, (LevelTypes)(-1));
		((BaseUnityPlugin)this).Logger.LogInfo((object)"setup complete");
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Tima mod loaded");
	}
}