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 UnboundLib;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.1", FrameworkDisplayName = ".NET Framework 4.7.1")]
[assembly: AssemblyVersion("0.0.0.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.0")]
[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.0";
public const string ModInitials = "FVI";
public static bool Debug;
internal static AssetBundle assets;
[field: CompilerGenerated]
[field: DebuggerBrowsable(/*Could not decode attribute arguments.*/)]
public static FancyVanillaIcons instance
{
[CompilerGenerated]
get;
[CompilerGenerated]
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>(String.Concat("I_", val.cardName.ToLower()));
}
}
}