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("AnomalySaga")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("StoryLogs for AnomalySaga.")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyInformationalVersion("0.0.1")]
[assembly: AssemblyProduct("AnomalySaga")]
[assembly: AssemblyTitle("AnomalySaga")]
[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 AnomalySaga
{
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "AnomalySaga";
public const string PLUGIN_NAME = "AnomalySaga";
public const string PLUGIN_VERSION = "0.0.1";
}
}
namespace AnomalySaga.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, "storylogassetAS"));
if ((Object)(object)StoryLogAsset == (Object)null)
{
Plugin.Logger.LogError((object)"Failed to load assets from 'storylogasset'.");
}
}
}
[BepInPlugin("AnomalySaga", "AnomalySaga", "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)"AnomalySaga 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)
int num = CustomStoryLogs.RegisterCustomLog("AnomalySaga", "Origin - January 0, 0000", "All the way back, before we existed, lay iYbxXByI. iYbxXByI was a omnipresent power, creator and destroyer. When lQaxWXb, the power of time started, iYbxXByI became angered, everything was static, everything was in iYbxXByI’s realm. lQaxWXb tore its realm and forced it into a timeline. iYbxXByI took and took from all times, future, present, past. Long after, more powers came, bYJLn, zvEVn, cEhFXukI, and so many more. Humanity set out to create its own power, ichorous blood came into possession, it was gruesome and powerful. But alas it came into fruition. It stole, just as iYbxXByI did. It reigned for tens upon tens of millennia before fading away from starvation. Then came iYbxXByI. It tore lQaxWXb apart, and iYbxXByI’s realm existed once again. But this was a cycle. It happened so many times, humanity cannot comprehend the mass amount of repeats the cycle has gone through, neither could any of the powers. But We can.\r\n\r\n\r\n\r\n", false, false);
CustomStoryLogs.RegisterCustomLogCollectable("AnomalySaga", num, "813 Penumbra", new Vector3(-75.17584f, 1.998217f, 63.30674f), new Vector3(-86.538f, -134.72f, 134.668f), vanillaStoryLogModel);
int num2 = CustomStoryLogs.RegisterCustomLog("AnomalySaga", "My Dreams - November 7, 1967", "I’ve been having weird dreams. It’s so strange, I’m in this place, the same space. A field surrounds me, cabins line the surface, its hazy with so much vibrance. So comforting, but all dreams turn into nightmares. After going through what seems to be a facility, like the ones we go for the Company, I grab an apparatus. Then it all changes... The trees die, the saturation diminishes, the sounds creep along my spine. It’s a terrible dream, my crewmates think nothing of it. But I swear I keep seeing the terminal glitch out, showing information of the moon I was on in my dreams. After some deciphering, the text simply says, ‘We Dream’. Who is we, why does this damn terminal reference my dreams, this is absurd.\r\n\r\n\r\n\r\n\r\n", false, false);
CustomStoryLogs.RegisterCustomLogCollectable("AnomalySaga", num2, "567 Soreal", new Vector3(-19.98416f, 1.587225f, -50.71774f), new Vector3(-77.544f, 19.668f, -19.592f), vanillaStoryLogModel);
int num3 = CustomStoryLogs.RegisterCustomLog("AnomalySaga", "Forlorn - July 6, 7268", "Routing errors, day after day. The date is all weird too, it was 2038 just a couple days ago, now it’s 13889? I swear I cannot remember what the time was before, I can barely recall when we applied for the Company job. Time is all weird around this moon, but our fuel reserves are running low, we need a new apparatus. I think we might have to land on this moon. The moon is so idiosyncratic, so peculiar. The weirdest thing which drives all of us mad, the speaker box keeps repeating this word, ‘forlorn’.\r\n\r\n\r\n\r\n", false, false);
CustomStoryLogs.RegisterCustomLogCollectable("AnomalySaga", num3, "707 Idiosyn", new Vector3(92.31776f, -0.713f, 121.3391f), new Vector3(-90f, 0f, 0f), vanillaStoryLogModel);
int num4 = CustomStoryLogs.RegisterCustomLog("AnomalySaga", "Routing Errors - July 6, 7268", "I’m not sure what happened here, it is not 7268, its 1981. We were just exiting the orbit of March, one of our military’s bases and we launched into the sky to do some surveillance and our ship malfunctioned or something. A moon with no name appeared on the Halden terminal and started whirring like a broken computer. This is important for the military to know what and why this moon is, how it is. We’ll be sure to bring weapons just in case..\r\n\r\n\r\n\r\n", false, false);
CustomStoryLogs.RegisterCustomLogCollectable("AnomalySaga", num4, "0 Untitled", new Vector3(57.15701f, 18.554f, -117.031f), new Vector3(-90f, 0f, 0f), vanillaStoryLogModel);
}
private StoryLogs()
{
}
}
}