feat: kot and hakem kot

This commit is contained in:
2026-06-15 20:12:52 +03:30
parent 73b7c136f1
commit 4eadda7947
2 changed files with 7 additions and 4 deletions
+2
View File
@@ -93,11 +93,13 @@ class GameState {
class HandResult {
final int winnerTeam;
final bool kot;
final bool hakemKot;
final int points;
final List<int> scores;
HandResult.fromJson(Map<String, dynamic> j)
: winnerTeam = (j['winner_team'] ?? 0) as int,
kot = (j['kot'] ?? false) as bool,
hakemKot = (j['hakem_kot'] ?? false) as bool,
points = (j['points'] ?? 0) as int,
scores = ((j['scores'] as List?) ?? [])
.map((e) => (e as num).toInt())