Compare commits

..

No commits in common. "f4143ad6d3a4a632015974ebc32e4fffcbcabde0" and "12623d7b94a152e5e7225061dad5956705b3107c" have entirely different histories.

1 changed files with 19 additions and 20 deletions

View File

@ -192,26 +192,25 @@ func (m *SceneMgr) MarshalAllRoom(platform string, groupId, gameId int, gameMode
} }
si := &webapiproto.RoomInfo{ si := &webapiproto.RoomInfo{
Platform: platformName, Platform: platformName,
SceneId: int32(s.sceneId), SceneId: int32(s.sceneId),
GameId: int32(s.gameId), GameId: int32(s.gameId),
GameMode: int32(s.gameMode), GameMode: int32(s.gameMode),
SceneMode: int32(s.sceneMode), SceneMode: int32(s.sceneMode),
GroupId: s.groupId, GroupId: s.groupId,
GameFreeId: s.dbGameFree.GetId(), Creator: s.creator,
Creator: s.creator, ReplayCode: s.replayCode,
ReplayCode: s.replayCode, Params: common.CopySliceInt64ToInt32(s.params),
Params: common.CopySliceInt64ToInt32(s.params), PlayerCnt: int32(len(s.players) - s.robotNum),
PlayerCnt: int32(len(s.players) - s.robotNum), RobotCnt: int32(s.robotNum),
RobotCnt: int32(s.robotNum), CreateTime: s.createTime.Unix(),
CreateTime: s.createTime.Unix(), BaseScore: s.dbGameFree.BaseScore,
BaseScore: s.dbGameFree.BaseScore, GameFreeId: s.dbGameFree.GetId(),
RoomConfigId: s.GetRoomConfigId(), MaxRound: s.totalRound,
CurrRound: s.currRound, Password: s.GetPassword(),
MaxRound: s.totalRound, CostType: s.GetCostType(),
Password: s.GetPassword(), Voice: s.GetVoice(),
CostType: s.GetCostType(), CurrRound: s.currRound,
Voice: s.GetVoice(),
} }
if s.starting { if s.starting {
si.Start = 1 si.Start = 1