New card UI, new visual config, new card definitions, new working editor window for authoring!

This commit is contained in:
Michal Pikulski
2025-11-05 23:50:15 +01:00
parent 0dc3f3e803
commit 50c0a12391
65 changed files with 2784 additions and 12389 deletions

View File

@@ -22,15 +22,6 @@ namespace AppleHills.Data.CardSystem
public CardZone Zone => _definition?.Zone ?? CardZone.AppleHills;
public int CollectionIndex => _definition?.CollectionIndex ?? 0;
public Sprite CardImage => _definition?.CardImage;
// Derived properties
public Color BackgroundColor => _definition?.GetBackgroundColor() ?? Color.white;
// Get frame shape based on rarity
public string GetFrameShapeName()
{
return $"Frame_{Rarity}";
}
// Default constructor
public CardData()
@@ -97,11 +88,9 @@ namespace AppleHills.Data.CardSystem
// Enums for card attributes
public enum CardRarity
{
Common = 0,
Uncommon = 1,
Rare = 2,
Epic = 3,
Legendary = 4
Normal = 0,
Rare = 1,
Legendary = 2
}
public enum CardZone