Browse Source

lobby proto msg

master
tangmingyou 4 years ago
parent
commit
f059381400
  1. 11
      api/poker.proto
  2. 2
      internal/game/table.go

11
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 { message ReqCreateTable {
int32 players = 1; int32 players = 1;
int32 robots = 2; int32 robots = 2;

2
internal/game/table.go

@ -16,7 +16,7 @@ type Table struct {
Robots []*Robot Robots []*Robot
bigBlindsPos int // 大盲注位 bigBlindsPos int // 大盲注位
// TODO game logs // TODO game logs7
} }
type Stage int type Stage int

Loading…
Cancel
Save