本文整理汇总了C++中ArenaTeam::Roster方法的典型用法代码示例。如果您正苦于以下问题:C++ ArenaTeam::Roster方法的具体用法?C++ ArenaTeam::Roster怎么用?C++ ArenaTeam::Roster使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ArenaTeam
的用法示例。
在下文中一共展示了ArenaTeam::Roster方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: HandleArenaTeamRosterOpcode
void WorldSession::HandleArenaTeamRosterOpcode(WorldPacket & recv_data)
{
uint32 teamId;
ArenaTeam* team;
recv_data >> teamId;
team = objmgr.GetArenaTeamById(teamId);
if(team)
{
//slot = TeamCountToId[team->m_type];
WorldPacket data(1000);
team->Roster(data);
SendPacket(&data);
}
}
示例2: HandleArenaTeamRosterOpcode
void WorldSession::HandleArenaTeamRosterOpcode(WorldPacket & recv_data)
{
sLog.outDebug( "WORLD: Received CMSG_ARENA_TEAM_ROSTER" );
//recv_data.hexlike();
CHECK_PACKET_SIZE(recv_data, 4);
uint32 ArenaTeamId; // arena team id
recv_data >> ArenaTeamId;
ArenaTeam *arenateam = objmgr.GetArenaTeamById(ArenaTeamId);
if(!arenateam)
return;
arenateam->Roster(this);
}
示例3: HandleArenaTeamRosterOpcode
void WorldSession::HandleArenaTeamRosterOpcode(WorldPacket & recv_data)
{
sLog.outDebug( "WORLD: Received CMSG_ARENA_TEAM_ROSTER" );
//recv_data.hexlike();
CHECK_PACKET_SIZE(recv_data, 1);
uint8 team_slot; // probably team_size or slot
recv_data >> team_slot;
ArenaTeam *arenateam = objmgr.GetArenaTeamById(_player->GetArenaTeamId(team_slot));
if(!arenateam)
return;
arenateam->Roster(this);
}