using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using FancyCardBar;
using HarmonyLib;
using Jotunn.Utils;
using Microsoft.CodeAnalysis;
using UnboundLib;
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.7.1", FrameworkDisplayName = ".NET Framework 4.7.1")]
[assembly: AssemblyVersion("0.0.0.0")]
[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.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace FancyVanillaIcons
{
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInPlugin("com.rsmind.rounds.fancyvanillaicons", "Fancy Vanilla Icons", "1.0.4")]
[BepInProcess("Rounds.exe")]
public class FancyVanillaIcons : BaseUnityPlugin
{
private const string ModId = "com.rsmind.rounds.fancyvanillaicons";
private const string ModName = "Fancy Vanilla Icons";
public const string Version = "1.0.4";
public const string ModInitials = "FVI";
public static bool Debug;
internal static AssetBundle assets;
public static FancyVanillaIcons instance { get; private set; }
private void Awake()
{
//IL_0011: Unknown result type (might be due to invalid IL or missing references)
//IL_0017: Expected O, but got Unknown
Unbound.RegisterClientSideMod("com.rsmind.rounds.fancyvanillaicons");
Harmony val = new Harmony("com.rsmind.rounds.fancyvanillaicons");
val.PatchAll();
}
private void Start()
{
instance = this;
assets = AssetUtils.LoadAssetBundleFromResources("fancyvanillaicons", typeof(FancyVanillaIcons).Assembly);
if ((Object)(object)assets == (Object)null)
{
Debug.Log((object)"Failed to load Fancy Vanilla Icons asset bundle");
}
CardInfo[] cards = CardChoice.instance.cards;
foreach (CardInfo val in cards)
{
FancyIcon val2 = ((Component)val).gameObject.AddComponent<FancyIcon>();
val2.fancyIcon = assets.LoadAsset<GameObject>("I_" + val.cardName.ToLower());
}
}
}
}