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