Lots of data and model setup

This commit is contained in:
gamer147
2025-05-18 02:27:17 -04:00
parent 79505e0c1a
commit b2024af852
77 changed files with 81988 additions and 433 deletions

View File

@@ -1,4 +1,5 @@
using MessagePack;
using SVSim.Database.Models;
namespace SVSim.EmulatedEntrypoint.Models.Dtos;
@@ -19,4 +20,15 @@ public class UserCard : CardIdentifier
/// </summary>
[Key("is_protected")]
public int IsProtected { get; set; }
public UserCard(OwnedCardEntry card)
{
this.CardId = card.Card.Id;
this.Count = card.Count;
this.IsProtected = card.IsProtected ? 1 : 0;
}
public UserCard()
{
}
}