Decompiled source of Gordion Saga v0.2.1

GordionSaga.dll

Decompiled 2 weeks ago
using System;
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.Logging;
using CustomStoryLogs;
using HarmonyLib;
using Microsoft.CodeAnalysis;
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.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("GordionSaga")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("StoryLogs for GordionSaga.")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyInformationalVersion("0.0.1")]
[assembly: AssemblyProduct("GordionSaga")]
[assembly: AssemblyTitle("GordionSaga")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.1.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 GordionSaga
{
	public static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "GordionSaga";

		public const string PLUGIN_NAME = "GordionSaga";

		public const string PLUGIN_VERSION = "0.0.1";
	}
}
namespace GordionSaga.src
{
	internal class Assets
	{
		public static AssetBundle StoryLogAsset;

		public static void PopulateAssets()
		{
			string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
			StoryLogAsset = AssetBundle.LoadFromFile(Path.Combine(directoryName, "storylogassetGS"));
			if ((Object)(object)StoryLogAsset == (Object)null)
			{
				Plugin.Logger.LogError((object)"Failed to load assets from 'storylogasset'.");
			}
		}
	}
	[BepInPlugin("GordionSaga", "GordionSaga", "0.0.1")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class Plugin : BaseUnityPlugin
	{
		public static Plugin Instance { get; private set; }

		internal static ManualLogSource Logger { get; private set; }

		internal static Harmony? Harmony { get; set; }

		private void Awake()
		{
			Logger = ((BaseUnityPlugin)this).Logger;
			Instance = this;
			Assets.PopulateAssets();
			GameObject val = Assets.StoryLogAsset.LoadAsset<GameObject>("StoryLog");
			int vanillaStoryLogModel = CustomStoryLogs.RegisterCustomLogModel(val);
			StoryLogs.RegisterLogs(vanillaStoryLogModel);
			Logger.LogInfo((object)"GordionSaga v0.0.1 has loaded!");
		}
	}
	internal class StoryLogs
	{
		public static void RegisterLogs(int vanillaStoryLogModel)
		{
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_0046: Unknown result type (might be due to invalid IL or missing references)
			//IL_0083: Unknown result type (might be due to invalid IL or missing references)
			//IL_0097: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0125: Unknown result type (might be due to invalid IL or missing references)
			//IL_0139: Unknown result type (might be due to invalid IL or missing references)
			//IL_0178: Unknown result type (might be due to invalid IL or missing references)
			//IL_018c: Unknown result type (might be due to invalid IL or missing references)
			//IL_01cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_01df: Unknown result type (might be due to invalid IL or missing references)
			//IL_021e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0232: Unknown result type (might be due to invalid IL or missing references)
			//IL_0271: Unknown result type (might be due to invalid IL or missing references)
			//IL_0285: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_02d8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0317: Unknown result type (might be due to invalid IL or missing references)
			//IL_032b: Unknown result type (might be due to invalid IL or missing references)
			int num = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Bugs! - March 3, 1955", "These bugs! This is so damn annoying, why do they specifically go after the shipment containers. These things are strong too, they can carry those godforsakenly heavy Halden engines. I’m tired of this, I might just quit. David won’t be too happy since I’m his number one, but there’s new job offers on that one planet, uh what was its name. Ah, Gordion. I can’t think right, dealing with these bugs has me worn out!\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num, "59 Affliction", new Vector3(-155f, 18.95f, 22.5f), new Vector3(-90f, 0f, 120f), vanillaStoryLogModel);
			int num2 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Who is Sigurd? - January 10, 2087", "We found a log, some kind of recording of this man named Sigurd, maybe that’s what the sticky note was about and why there was a tape recorder in the ship. I have no clue who he is but apparently he was here over a hundred years ago, seemingly.. willingly? I have no clue what secrets the Company has, but I think we should find the rest of these logs if there is any.\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num2, "71 Gordion", new Vector3(-20.85f, -2.625f, 29f), new Vector3(-90f, 0f, -135f), vanillaStoryLogModel);
			int num3 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Drilling, and More Drilling - April 26, 1933", "Definitely one of the most annoying jobs, especially with all this noise! Tunere has become just a drilling planet, and of course I’m stationed on one of the most noisy areas here. I just can’t wait until my shift is over. This company is so strange, what are they even drilling for on this dead planet. Well I mean the payout is pretty good though, just confused on their plan. Who cares, if I get my money what possibly can stop me!\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num3, "607 Tunere", new Vector3(23f, -2.1f, 46f), new Vector3(-90f, 0f, -150f), vanillaStoryLogModel);
			int num4 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "So Abandoned - January 8, 2087", "What happened here, at least that's what most of my crew asks. I don’t really give a damn, but everyone is asking. The Company just wants us to get here and get out, grabbing all the valuable parts. I can mostly see just engines and stuff, but it is interesting that there are multiple Halden apparatuses powering these drills. Those things can power an entire facility, why do you need them to power a drill! Something is definitely up with the Company and we all know that, none of us can even remember how we got here. But I guess we have to keep going.\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num4, "607 Tunere", new Vector3(-12.75f, 24.75f, -67f), new Vector3(-90f, 0f, -60f), vanillaStoryLogModel);
			int num5 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Poor Elio - January 14, 2087", "We finally saved up to get to this moon, and holy hell it is hot here. Ichor, what a name. I have to keep it down since there are dogs. But I hate to say Elio, our captain, died. Died by one of those spider things. It was so surreal I don’t know how to react. We were fine for the first three days but the next three were such a mess, we barely met the quota. Delilah is in the facility right now, pretty scared since it’s already been a couple hours, but the radar shows she is alive so I guess its okay. I hope we will live until we can get out of here.\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num5, "93 Ichor", new Vector3(10.75f, 0.6f, -50f), new Vector3(-105.5f, -100f, 260f), vanillaStoryLogModel);
			int num6 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Blood of Ichor - January 8, 1948", "What a ride that was. Halden really gives us the beautiful suites. Although this hangover fucking sucks. Anyways, we set up post here, the Company wanted us to do some looking around, try to find something they call the Blood. What the hell that is, I have no clue, but you don’t question the Company. Learned that from experience.\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num6, "93 Ichor", new Vector3(1.5f, -2.7f, 21.5f), new Vector3(-82f, -50f, 50f), vanillaStoryLogModel);
			int num7 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Monster - February 12, 1950", "The Blood fused into this conglomeration, this horrid sight. Trying organic artifical life is just so wrong, so fucking wrong. This thing is eating everything we give it and holy god it grows fast. The higher ups say it’s nothing to be worried about, but my gut tells me they are wrong. Ursula says not to question the Company but damn I am questioning everything.\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num7, "71 Sector-0", new Vector3(-126.25f, -2.175f, -150.25f), new Vector3(-90f, 0f, 150f), vanillaStoryLogModel);
			int num8 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Lyra - June 9, 1949", "Those things we made with the Blood, the Company calls them Jesters but I don’t know, they are weird. I wonder what trouble I’d get in if I released them, it definitely would be funny but I’m not sure what the consequences would be. Ah, who cares about consequences, they say I’m the head of the chaos department so I’m going to let them loose!\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num8, "71 Sector-0", new Vector3(-0.75f, -1.95f, 99.5f), new Vector3(-90f, 0f, -120f), vanillaStoryLogModel);
			int num9 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Left Behind - January 11, 2087", "They left me! I knew I couldn’t trust them. I got attacked by a spider and they ran, I could’ve led them all but I guess mutiny is their favorite activity. There’s not much to eat here and I am starving. Maybe some of those flying snakes can be good combined with those birds, if I can catch them of course. Or that delicious honey in those locust nests. I guess I will have to scavenge around, what a day.\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num9, "20 Adamance", new Vector3(-64.5f, -17.3f, 30.25f), new Vector3(-90f, 0f, 60f), vanillaStoryLogModel);
			int num10 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Sector0 - January 17, 2087", "This quota went good, but I’m pretty confused. On Ichor and now Titan, I’ve been seeing some weird hints about this place called Sector-0. It’s not on the routing section in the terminal but we found a exploit in the system to get there, we will see how it goes once we get the credits to leave for that moon.\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num10, "8 Titan", new Vector3(-76.06f, 19.571f, -40.12f), new Vector3(-87.135f, 104.246f, 52.403f), vanillaStoryLogModel);
		}

		private StoryLogs()
		{
		}
	}
}