using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using BepInEx;
using Jotunn.Utils;
using ModdingUtils.Utils;
using UnboundLib.Cards;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyVersion("0.0.0.0")]
public class CardHolder : MonoBehaviour
{
public List<GameObject> Cards;
public List<GameObject> HiddenCards;
internal void RegisterCards()
{
Debug.Log((object)Cards);
foreach (GameObject card in Cards)
{
CustomCard.RegisterUnityCard(card, SpecialGradeRoundsMod.modInitials, card.GetComponent<CardInfo>().cardName, true, (Action<CardInfo>)null);
}
Debug.Log((object)HiddenCards);
foreach (GameObject hiddenCard in HiddenCards)
{
CustomCard.RegisterUnityCard(hiddenCard, SpecialGradeRoundsMod.modInitials, hiddenCard.GetComponent<CardInfo>().cardName, false, (Action<CardInfo>)null);
Cards.instance.AddHiddenCard(hiddenCard.GetComponent<CardInfo>());
}
}
}
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInPlugin("SpecialGradeRounds", "Special Grade Rounds", "1.0.1")]
[BepInProcess("Rounds.exe")]
public class SpecialGradeRoundsMod : BaseUnityPlugin
{
internal static string modInitials = "SGR";
internal static AssetBundle assets;
private void Awake()
{
assets = AssetUtils.LoadAssetBundleFromResources("specialgraderoundsbundle", typeof(SpecialGradeRoundsMod).Assembly);
assets.LoadAsset<GameObject>("ModCards").GetComponent<CardHolder>().RegisterCards();
Debug.Log("Load Complete!");
}
private void Start()
{
}
}