feat: add CardPanel

This commit is contained in:
2025-12-19 00:30:35 +01:00
parent 4706af27f8
commit 4b969e6d69
9 changed files with 349 additions and 70 deletions

View File

@@ -17,7 +17,10 @@ public class CardboardEntity {
int yellow;
public static CardboardEntity fromModel(CardboardModel model) {
return new CardboardEntity(model.getComb().getId(), model.getMatch().getId(), model.getCompet().getId(),
return new CardboardEntity(
model.getComb() != null ? model.getComb().getId() : model.getGuestComb().getId() * -1,
model.getMatch().getId(),
model.getCompet().getId(),
model.getRed(), model.getYellow());
}
}