RakNet  4.0
Static Public Member Functions | List of all members
RakNet::TeamSelection Struct Reference

Parameter to TM_World::ReferenceTeamMember() More...

#include <TeamManager.h>

Static Public Member Functions

static TeamSelection AnyAvailable (void)
 Join any team that has available slots and is tagged with ALLOW_JOIN_ANY_AVAILABLE_TEAM.
 
static TeamSelection SpecificTeam (TM_Team *specificTeamToJoin)
 Join a specific team if it has available slots, and is tagged with JOIN_SPECIFIC_TEAMS.
 
static TeamSelection NoTeam (NoTeamId noTeamSubcategory)
 Do not join a team, or leave all current teams.
 

Detailed Description

Parameter to TM_World::ReferenceTeamMember()

Use TeamSelection::AnyAvailable(), TeamSelection::SpecificTeam(), or TeamSelection::NoTeam()

Member Function Documentation

static TeamSelection RakNet::TeamSelection::AnyAvailable ( void  )
static

Join any team that has available slots and is tagged with ALLOW_JOIN_ANY_AVAILABLE_TEAM.

ID_TEAM_BALANCER_TEAM_ASSIGNED, ID_TEAM_BALANCER_REQUESTED_TEAM_FULL, or ID_TEAM_BALANCER_REQUESTED_TEAM_LOCKED will be returned to all systems.

static TeamSelection RakNet::TeamSelection::NoTeam ( NoTeamId  noTeamSubcategory)
static

Do not join a team, or leave all current teams.

This always succeeds. ID_TEAM_BALANCER_TEAM_ASSIGNED will be returned to all systems.

Parameters
[in]noTeamSubcategoryEven when not on a team, you can internally identify a subcategory of not being on a team, such as AI or spectator.
static TeamSelection RakNet::TeamSelection::SpecificTeam ( TM_Team specificTeamToJoin)
static

Join a specific team if it has available slots, and is tagged with JOIN_SPECIFIC_TEAMS.

ID_TEAM_BALANCER_TEAM_ASSIGNED, ID_TEAM_BALANCER_REQUESTED_TEAM_FULL, or ID_TEAM_BALANCER_REQUESTED_TEAM_LOCKED will be returned to all systems.

Parameters
[in]specificTeamToJoinWhich team to attempt to join.

The documentation for this struct was generated from the following file: