feat: add frame
This commit is contained in:
+2
-1
@@ -391,10 +391,11 @@ func (h *Hub) removeFromTable(t *pendingTable, c *Client) {
|
||||
func (h *Hub) broadcastLobby(t *pendingTable) {
|
||||
players := make([]lobbyPlayer, len(t.clients))
|
||||
for i, cl := range t.clients {
|
||||
_, _, avatar := h.settler.PlayerProfile(cl.UserID)
|
||||
_, _, avatar, frame := h.settler.PlayerProfile(cl.UserID)
|
||||
players[i] = lobbyPlayer{
|
||||
Name: cl.Name,
|
||||
Avatar: avatar,
|
||||
Frame: frame,
|
||||
Host: cl.UserID == t.host,
|
||||
Seat: t.seatOf(i),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user