public CardModelInfo(Texture2D icon, int cardId, string cardName, int point, Sectarian sectarian) { Icon = icon; CardId = cardId; CardName = cardName; Point = point; this.sectarian = sectarian; }
public CardModelInfo(int cardId, string level, string cardName, string describe, string ability, string cardTag, CardType cardType, Sectarian sectarian, CardRank rank, Region cardProperty, Territory cardTerritory, int point, int ramification, Texture2D icon) { this.icon = icon; this.cardId = cardId; this.level = level; this.cardName = cardName; this.describe = describe; this.ability = ability; this.cardTag = String.Join(" ", cardTag.Split(' ').Select(x => x.TransTag())); Debug.LogError(cardTag + "--" + this.cardTag); this.point = point; this.cardType = cardType; this.sectarian = sectarian; this.cardProperty = cardProperty; this.cardTerritory = cardTerritory; this.cardRank = rank; CardLibraryCommand.CreatScript(cardId); }
public SectarianCardLibrary(List <CardModelInfo> CardsModels, Sectarian sectarian) { this.sectarian = sectarian; icon = CardLibraryCommand.GetLibraryInfo().sectarianIcons[sectarian]; cardModelInfos = CardsModels.Where(card => card.sectarian == sectarian).ToList(); }