Skip to content

Commit

Permalink
支持查询房间队伍详情
Browse files Browse the repository at this point in the history
  • Loading branch information
7byte committed Dec 10, 2018
1 parent f8af4de commit 72b3f1d
Show file tree
Hide file tree
Showing 2 changed files with 632 additions and 32 deletions.
13 changes: 13 additions & 0 deletions gameServer/demo/FightHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,19 @@ public override IMessage OnRoomDetail(ByteString msg)
{
Logger.Info("player userId={0}", player.UserID);
}
foreach (BrigadeInfo brigade in roomDetail.Brigades)
{
Logger.Info("brigade brigadeId={0}", brigade.BrigadeID);
foreach (TeamDetail team in brigade.Teams)
{
Logger.Info("team teamId={0}, password={1}, capacity={2}, mode={3}, visibility={4}, owner={5}",
team.TeamInfo.TeamID, team.TeamInfo.Password, team.TeamInfo.Capacity, team.TeamInfo.Mode, team.TeamInfo.Visibility, team.TeamInfo.Owner);
foreach (PlayerInfo player in team.Player)
{
Logger.Info("player userId={0}", player.UserID);
}
}
}
return reply;
}

Expand Down
Loading

0 comments on commit 72b3f1d

Please sign in to comment.