getting closer

This commit is contained in:
2023-04-06 23:29:08 -04:00
parent fea4785655
commit f581786ec5
9 changed files with 100 additions and 16 deletions

View File

@ -5,4 +5,6 @@ public class Card
public Guid Id { get; set; }
public Suit Suit { get; set; }
public string Value { get; set; }
public int PositionX { get; set; }
public int PositionY { get; set; }
}

View File

@ -3,7 +3,9 @@ namespace Sequence.Entities;
public class DeckCard
{
public Guid Id { get; set; }
public Guid MatchId { get; set; }
public Match Match { get; set; }
public Guid CardId { get; set; }
public Card Card { get; set; }
public int Order { get; set; }
}

View File

@ -3,6 +3,8 @@ namespace Sequence.Entities;
public class HandCard
{
public Guid Id { get; set; }
public Guid PlayerId { get; set; }
public Player Player { get; set; }
public Card Card { get; set; }
public Guid DeckCardId { get; set; }
public DeckCard DeckCard { get; set; }
}

View File

@ -4,7 +4,10 @@ public class Match
{
public Guid Id { get; set; }
public DateTime Created { get; set; }
public Guid PlayerOneId { get; set; }
public Player PlayerOne { get; set; }
public Guid PlayerTwoId { get; set; }
public Player PlayerTwo { get; set; }
public Guid CurrentTurnPlayerId { get; set; }
public ICollection<DeckCard> Deck { get; set; }
}

View File

@ -1,10 +0,0 @@
namespace Sequence.Entities;
public class MatchCard
{
public Guid Id { get; set; }
public Match Match { get; set; }
public Card Card { get; set; }
public int PositionX { get; set; }
public int PositionY { get; set; }
}

View File

@ -3,7 +3,9 @@ namespace Sequence.Entities;
public class Player
{
public Guid Id { get; set; }
public Guid UserId { get; set; }
public User User { get; set; }
public string Alias { get; set; }
public ICollection<HandCard> HandCards { get; set; }
public ICollection<PlayerCard> PlayerCards { get; set; }
}

View File

@ -4,7 +4,5 @@ public class PlayerCard
{
public Guid Id { get; set; }
public Player Player { get; set; }
public Card Card { get; set; }
public int PositionX { get; set; }
public int PositionY { get; set; }
public DeckCard DeckCard { get; set; }
}