More features

This commit is contained in:
gamer147
2026-05-23 14:18:01 -04:00
parent b2024af852
commit 6b70850b7b
59 changed files with 862 additions and 42033 deletions

View File

@@ -1,4 +1,4 @@
using DCGEngine.Database.Models;
using SVSim.Database.Common;
namespace SVSim.Database.Models;

View File

@@ -1,5 +1,5 @@
using System.ComponentModel.DataAnnotations.Schema;
using DCGEngine.Database.Models;
using SVSim.Database.Common;
namespace SVSim.Database.Models;

View File

@@ -1,4 +1,4 @@
using DCGEngine.Database.Models;
using SVSim.Database.Common;
namespace SVSim.Database.Models;

View File

@@ -1,4 +1,4 @@
using DCGEngine.Database.Models;
using SVSim.Database.Common;
namespace SVSim.Database.Models;

View File

@@ -1,4 +1,4 @@
using DCGEngine.Database.Models;
using SVSim.Database.Common;
namespace SVSim.Database.Models;

View File

@@ -1,4 +1,4 @@
using DCGEngine.Database.Models;
using SVSim.Database.Common;
namespace SVSim.Database.Models;

View File

@@ -1,4 +1,4 @@
using DCGEngine.Database.Models;
using SVSim.Database.Common;
namespace SVSim.Database.Models;

View File

@@ -1,4 +1,4 @@
using DCGEngine.Database.Models;
using SVSim.Database.Common;
namespace SVSim.Database.Models;

View File

@@ -1,4 +1,4 @@
using DCGEngine.Database.Models;
using SVSim.Database.Common;
namespace SVSim.Database.Models;

View File

@@ -1,4 +1,3 @@
using DCGEngine.Database.Models;
using Microsoft.EntityFrameworkCore;
namespace SVSim.Database.Models;
@@ -9,7 +8,7 @@ namespace SVSim.Database.Models;
[Owned]
public class OwnedCardEntry
{
public CardEntry Card { get; set; } = new ShadowverseCardEntry();
public ShadowverseCardEntry Card { get; set; } = new ShadowverseCardEntry();
public int Count { get; set; }
public bool IsProtected { get; set; }
}
}

View File

@@ -1,4 +1,4 @@
using DCGEngine.Database.Models;
using SVSim.Database.Common;
namespace SVSim.Database.Models;

View File

@@ -1,12 +1,32 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using DCGEngine.Database.Models;
using SVSim.Database.Common;
using SVSim.Database.Enums;
namespace SVSim.Database.Models;
public class ShadowverseCardEntry : CardEntry
public class ShadowverseCardEntry : BaseEntity<long>
{
/// <summary>
/// The internal name of this card (not the localized display name).
/// </summary>
[Required(AllowEmptyStrings = false)]
public string Name { get; set; } = string.Empty;
/// <summary>
/// Attack stat (atk on the wire).
/// </summary>
public int? Attack { get; set; }
/// <summary>
/// Life / defense stat (life on the wire).
/// </summary>
public int? Defense { get; set; }
/// <summary>
/// Play cost (cost on the wire).
/// </summary>
public int? PrimaryResourceCost { get; set; }
/// <summary>
/// The rarity of this card.
/// </summary>
@@ -24,9 +44,9 @@ public class ShadowverseCardEntry : CardEntry
#region Navigation Properties
/// <summary>
/// The class this card belongs to, or optionally none for neutral cards.
/// The class this card belongs to, or null for neutral cards.
/// </summary>
public ClassEntry? Class { get; set; }
#endregion
}
}

View File

@@ -1,10 +1,19 @@
using System.ComponentModel.DataAnnotations.Schema;
using DCGEngine.Database.Models;
using SVSim.Database.Common;
namespace SVSim.Database.Models;
public class ShadowverseCardSetEntry : CardSetEntry
public class ShadowverseCardSetEntry : BaseEntity<int>
{
/// <summary>
/// The internal name of the set.
/// </summary>
public string Name { get; set; } = string.Empty;
/// <summary>
/// The cards in the set.
/// </summary>
public List<ShadowverseCardEntry> Cards { get; set; } = new List<ShadowverseCardEntry>();
public bool IsInRotation { get; set; }
public bool IsBasic { get; set; }
}
}

View File

@@ -1,11 +1,22 @@
using DCGEngine.Database.Models;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using SVSim.Database.Common;
using SVSim.Database.Enums;
namespace SVSim.Database.Models;
public class ShadowverseDeckEntry : DeckEntry
public class ShadowverseDeckEntry : BaseEntity<Guid>
{
/// <summary>
/// Internal deck name.
/// </summary>
[Required(AllowEmptyStrings = false)]
public string Name { get; set; } = string.Empty;
/// <summary>
/// Cards in this deck.
/// </summary>
public List<DeckCard> Cards { get; set; } = new List<DeckCard>();
public int Number { get; set; }
public Format Format { get; set; }
public bool RandomLeaderSkin { get; set; }
@@ -19,4 +30,4 @@ public class ShadowverseDeckEntry : DeckEntry
public LeaderSkinEntry LeaderSkin { get; set; } = new LeaderSkinEntry();
#endregion
}
}

View File

@@ -1,4 +1,4 @@
using DCGEngine.Database.Models;
using SVSim.Database.Common;
namespace SVSim.Database.Models;

View File

@@ -1,5 +1,3 @@
using System.ComponentModel.DataAnnotations.Schema;
using DCGEngine.Database.Models;
using Microsoft.EntityFrameworkCore;
using SVSim.Database.Enums;

View File

@@ -1,5 +1,5 @@
using System.ComponentModel.DataAnnotations.Schema;
using DCGEngine.Database.Models;
using SVSim.Database.Common;
using Microsoft.EntityFrameworkCore;
namespace SVSim.Database.Models;