Data changes and vibe UI theme

This commit is contained in:
2026-06-17 23:33:09 -04:00
parent 4d45094492
commit 34cd7a9f13
19 changed files with 6130 additions and 4912 deletions
+29
View File
@@ -0,0 +1,29 @@
namespace Chrono.Model;
public class CardData
{
public string Name { get; init; } = "";
public string Category { get; init; } = "";
public int? Cost { get; init; }
public int? Attack { get; init; }
public int? Health { get; init; }
public string? Description { get; init; }
public string? Faction { get; init; }
public string? Set { get; init; }
public string? Speed { get; init; }
public List<string> Archetypes { get; init; } = [];
public List<string>? ImmortalizeTo { get; init; }
public string? ImmortalizeFrom { get; init; }
public string? ImmortalizeWhen { get; init; }
public string? ImageFile { get; init; }
public bool IsAgent => Category == "Agent";
public bool IsSpell => Category == "Spell";
public bool IsToken => Category == "Token";
public string? CostDisplay => Cost?.ToString();
public string? AttackDisplay => Attack?.ToString();
public string? HealthDisplay => Health?.ToString();
public bool HasImmortalize => ImmortalizeTo is { Count: > 0 };
public bool IsImmortalized => ImmortalizeFrom != null;
public string ImagePath => $"cards/{ImageFile ?? "placeholder.png"}";
}
+9
View File
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>