房间列表返回房间最大人数配置

This commit is contained in:
sk 2024-09-19 10:03:57 +08:00
parent e479b2e6fd
commit 2206eba159
4 changed files with 959 additions and 947 deletions

View File

@ -182,7 +182,7 @@ func init() {
err := proto.Unmarshal(netlib.SkipHeaderGetRaw(v), &msg) err := proto.Unmarshal(netlib.SkipHeaderGetRaw(v), &msg)
if err == nil && msg.GetTag() == webapi.TagCode_SUCCESS { if err == nil && msg.GetTag() == webapi.TagCode_SUCCESS {
tNode.TransEnv.SetField(GAMESRVAPI_TRANSACTE_RESPONSE, ud) tNode.TransEnv.SetField(GAMESRVAPI_TRANSACTE_RESPONSE, ud)
} else { } else if err != nil {
logger.Logger.Errorf("GameSrvApi OnChildRespWrapper unmarshal err %v", err) logger.Logger.Errorf("GameSrvApi OnChildRespWrapper unmarshal err %v", err)
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -248,6 +248,7 @@ message RoomInfo{
string Password = 22;// string Password = 22;//
int32 CostType = 23;// 1 2AA int32 CostType = 23;// 1 2AA
int32 Voice = 24;// 1 int32 Voice = 24;// 1
int32 PlayerNum = 25; //
} }
message PlayerSingleAdjust{ message PlayerSingleAdjust{

View File

@ -199,6 +199,7 @@ func (m *SceneMgr) MarshalAllRoom(platform string, groupId, gameId int, gameMode
Password: s.GetPassword(), Password: s.GetPassword(),
CostType: s.GetCostType(), CostType: s.GetCostType(),
Voice: s.GetVoice(), Voice: s.GetVoice(),
PlayerNum: int32(s.playerNum),
} }
if s.starting { if s.starting {
si.Start = 1 si.Start = 1