Decompiled source of BreathingStyles v1.1.0

BreathingStyles.dll

Decompiled 6 months ago
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()
	{
		foreach (GameObject card in Cards)
		{
			CustomCard.RegisterUnityCard(card, breathingStyles.modInitials, card.GetComponent<CardInfo>().cardName, true, (Action<CardInfo>)null);
		}
		foreach (GameObject hiddenCard in HiddenCards)
		{
			CustomCard.RegisterUnityCard(hiddenCard, breathingStyles.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("17794", "BreathingStyles", "1.33.0")]
[BepInProcess("Rounds.exe")]
public class breathingStyles : BaseUnityPlugin
{
	internal static AssetBundle assets;

	internal static string modInitials = "BS";

	private void Awake()
	{
		assets = AssetUtils.LoadAssetBundleFromResources("breathingstyles", typeof(breathingStyles).Assembly);
		assets.LoadAsset<GameObject>("_ModCards").GetComponent<CardHolder>().RegisterCards();
	}

	private void Start()
	{
	}
}