using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
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(".NETFramework,Version=v4.6", FrameworkDisplayName = ".NET Framework 4.6")]
[assembly: AssemblyCompany("DuneMoon")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("DuneMoon")]
[assembly: AssemblyTitle("DuneMoon")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace DuneMoon;
[BepInPlugin("Specter.DuneMoon", "DuneMoon", "1.0.0.0")]
public class Plugin : BaseUnityPlugin
{
private const string modGUID = "Specter.DuneMoon";
private const string modName = "DuneMoon";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("Specter.DuneMoon");
private static Plugin Instance;
public static ManualLogSource mls;
private static string dropShipName = "itemshipanimcontainer(Clone)";
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("Specter.DuneMoon");
mls.LogInfo((object)"DuneMoon is online.");
harmony.PatchAll(typeof(Plugin));
((MonoBehaviour)this).InvokeRepeating("SearchForDunePrefab", 0f, 5f);
}
private void SearchForDunePrefab()
{
GameObject val = GameObject.Find(dropShipName);
if ((Object)(object)val != (Object)null)
{
HandleDunePrefabFound(val);
}
}
private void HandleDunePrefabFound(GameObject dune)
{
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_0028: Unknown result type (might be due to invalid IL or missing references)
//IL_0032: Unknown result type (might be due to invalid IL or missing references)
dune.transform.localScale = Vector3.one;
dune.transform.position = new Vector3(0f, 0f, dune.transform.position.z);
}
}