getting closer
This commit is contained in:
@ -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; }
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
@ -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; }
|
||||
}
|
@ -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; }
|
||||
}
|
@ -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; }
|
||||
}
|
@ -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; }
|
||||
}
|
@ -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; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user