Loading...
Searching...
No Matches
FOnlineSessionInfoAccelByteV1 Class Reference
Inheritance diagram for FOnlineSessionInfoAccelByteV1:

Public Member Functions

 FOnlineSessionInfoAccelByteV1 (const FOnlineSessionInfoAccelByteV1 &Other)
bool operator== (const FOnlineSessionInfoAccelByteV1 &Other) const
FOnlineSessionInfoAccelByteV1operator= (const FOnlineSessionInfoAccelByteV1 &Src)
virtual const uint8 * GetBytes () const override
virtual int32 GetSize () const override
virtual bool IsValid () const override
virtual FString ToString () const override
virtual FString ToDebugString () const override
virtual const FString & GetRemoteId () const
 Get the Remote ID of the P2P connection peer.
virtual void SetRemoteId (const FString &InRemoteId)
 Set the Remote ID of the P2P connection peer.
FUniqueNetIdAccelByteResourceRef GetSessionIdRef () const
virtual const FUniqueNetId & GetSessionId () const override
 Get the Session ID.
virtual void SetSessionId (const FString &InSessionId)
 Set the Session ID.
virtual TSharedPtr< FInternetAddr > GetHostAddr () const
 Get the Host IP Address.
virtual void SetHostAddr (const TSharedRef< FInternetAddr > &InHostAddr)
 Set the Host IP Address.
bool HasTeamInfo () const
 Whether or not we have information regarding teams for this session's information, will only be true if this is a matchmaking session.
int32 GetTeamIndex (const FUniqueNetId &UserId) const
 Attempts to get a team index for a user, returns INDEX_NONE if not found.
const TUniqueNetIdMap< int32 > & GetTeams () const
void SetTeams (const TUniqueNetIdMap< int32 > &InTeams)
bool HasPartyInfo () const
 Whether or not we have information regarding parties for this session, will only be true if this is a matchmaking session.
const TSessionPartyArray & GetParties () const
void SetParties (const TSessionPartyArray &InParties)
const FAccelByteModelsMatchmakingResult & GetSessionResult () const
void SetSessionResult (const FAccelByteModelsMatchmakingResult &InSessionResult)
void SetP2PChannel (int32 InChannel)
int32 GetP2PChannel ()

Public Attributes

PACKAGE_SCOPE : void SetupP2PRelaySessionInfo(const FOnlineSubsystemAccelByte& Subsystem)

Member Function Documentation

◆ GetTeamIndex()

int32 FOnlineSessionInfoAccelByteV1::GetTeamIndex ( const FUniqueNetId & UserId) const

Attempts to get a team index for a user, returns INDEX_NONE if not found.

Note that team indices are just mapped from 0 to how ever many teams are matched. If you have special team numbers you'll want to map these values on the client side.