This commit is contained in:
2026-07-05 18:41:12 +03:30
parent 37baef565e
commit 045e304853
8 changed files with 42 additions and 24 deletions
+5 -3
View File
@@ -27,9 +27,10 @@ type chatMsg struct {
// lobbyPlayer یک بازیکن در اتاق انتظارِ میز خصوصی.
type lobbyPlayer struct {
Name string `json:"name"`
Host bool `json:"host"`
Seat int `json:"seat"` // جایگاهِ مطلق (۰..۳)
Name string `json:"name"`
Avatar string `json:"avatar"` // seed آواتارِ کاربر
Host bool `json:"host"`
Seat int `json:"seat"` // جایگاهِ مطلق (۰..۳)
}
// tableLobbyMsg وضعیت اتاق انتظارِ میز خصوصی (دورهمی).
@@ -64,6 +65,7 @@ type PlayerInfo struct {
Connected bool `json:"connected"`
Coins int64 `json:"coins"`
RankTier string `json:"rank_tier"` // bronze..king (برای نشانِ رتبه)
Avatar string `json:"avatar"` // seed آواتارِ کاربر
}
// matchedMsg به کلاینت پس از تشکیل میز.