From f05938140007b2a736a1d27bd44fc70b6faf4e16 Mon Sep 17 00:00:00 2001 From: tangmingyou <234767776@qq.com> Date: Sun, 29 Jan 2023 23:38:21 +0800 Subject: [PATCH] lobby proto msg --- api/poker.proto | 11 +++++++++++ internal/game/table.go | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/api/poker.proto b/api/poker.proto index 90daa97..3162518 100644 --- a/api/poker.proto +++ b/api/poker.proto @@ -51,6 +51,17 @@ message ResLobbyView { } +message LobbyTable { + int32 tableNo = 1; + repeated LobbyPlayer players = 3; +} + +message LobbyPlayer { + bytes type = 1; + string username = 2; + string avatar = 3; +} + message ReqCreateTable { int32 players = 1; int32 robots = 2; diff --git a/internal/game/table.go b/internal/game/table.go index d479e9f..38bf36c 100644 --- a/internal/game/table.go +++ b/internal/game/table.go @@ -16,7 +16,7 @@ type Table struct { Robots []*Robot bigBlindsPos int // 大盲注位 - // TODO game logs + // TODO game logs7 } type Stage int