32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using SLSFramework.General;
|
|
using UnityEngine;
|
|
|
|
namespace Continentis.MainGame.Card
|
|
{
|
|
public class ContentSubmodule : SubmoduleBase<CardLogicBase>
|
|
{
|
|
public List<string> keywords;
|
|
|
|
public string cardName;
|
|
public Sprite cardSprite;
|
|
public Rarity cardRarity;
|
|
public CardType cardType;
|
|
public string originalFunctionText;
|
|
public string interpretedFunctionText;
|
|
|
|
public ContentSubmodule(CardLogicBase card) : base(card)
|
|
{
|
|
keywords = card.cardData.keywords;
|
|
cardName = card.cardData.displayName.Localize();
|
|
cardSprite = card.cardData.cardSprite;
|
|
originalFunctionText = card.cardData.functionText.Localize();
|
|
cardRarity = card.cardData.cardRarity;
|
|
cardType = card.cardData.cardType;
|
|
//CardDescriptionInterpreter.InterpretDescription(card);
|
|
//keywords = CardDescriptionInterpreter.GetKeywords(card.cardData.cardDescription);
|
|
//Debug.Log($"Extracted Keywords: {string.Join(", ", keywords)}");
|
|
}
|
|
}
|
|
} |