|
LEAP Documentation 40220
Documentation for the LEAP project
|
#include <ProjectXGameSession.h>
Public Member Functions | |
| virtual void | InitOptions (const FString &Options) override |
| virtual void | RegisterServer () override |
| virtual FString | ApproveLogin (const FString &Options, const FUniqueNetIdRepl &UniqueId) override |
| virtual void | AddAdmin (APlayerController *AdminPlayer) override |
| virtual void | RemoveAdmin (APlayerController *AdminPlayer) override |
| virtual bool | KickPlayer (APlayerController *KickedPlayer, const FText &KickReason) override |
| virtual bool | BanPlayer (APlayerController *BannedPlayer, const FText &BanReason) override |
| virtual bool | SessionKickPlayer (APlayerController *KickedPlayer, const FText &KickReason) |
| virtual bool | IsPlayerBanned (UNetConnection *NetConnection, const FUniqueNetIdRepl &UniqueId) const |
| virtual bool | IsPlayerSessionKicked (UNetConnection *NetConnection, const FUniqueNetIdRepl &UniqueId) const |
| bool | TravelToSession (int32 ControllerId, FName SessionName) |
| virtual void | HandleMatchHasStarted () override |
| virtual void | HandleMatchHasEnded () override |
| void | FindSessions (TSharedPtr< const FUniqueNetId > UserId, FName InSessionName, int32 PartySize, const TArray< EGameType > &GameTypes, bool bIsLAN, bool bIsPresence, bool bIsMatchmaking, bool bSearchFreshServersOnly) |
| bool | JoinSession (TSharedPtr< const FUniqueNetId > UserId, FName SessionName, int32 SessionIndexInSearchResults) |
| bool | JoinSession (TSharedPtr< const FUniqueNetId > UserId, FName SessionName, const FOnlineSessionSearchResult &SearchResult) |
| bool | HostSession (TSharedPtr< const FUniqueNetId > UserId, FName SessionName, const FString &GameType, const FString &MapName, bool bIsLAN, bool bIsPresence, int32 MaxNumPlayers) |
| bool | HostSession (const TSharedPtr< const FUniqueNetId > UserId, const FName SessionName, const FOnlineSessionSettings &SessionSettings) |
| void | DestroySession () |
| void | UpdateSession () |
| FOnCreatePresenceSessionComplete & | OnCreatePresenceSessionComplete () |
| FOnFindSessionsComplete & | OnFindSessionsComplete () |
| FOnJoinSessionComplete & | OnJoinSessionComplete () |
| FOnDestroySessionCompleteDelegate & | OnDestroySessionComplete () |
| void | UpdateServerInfoMapName (const FString &MapName) |
| void | UpdateServerInfoGameModeName (const EGameType &GameMode) |
| void | UpdateServerInfoDifficulty (const EDifficultyLevel &DifficultyLevel) |
| void | UpdateServerInfoMaxPlayers (int32 PlayerCountMax) |
| void | StartMatchmaking () |
| bool | IsServerOfficial () |
| TSharedPtr< class FOnlineSessionSearch > | GetCurrentSearchSettings () const |
Public Attributes | |
| TArray< FString > | BannedPlayerID |
| TArray< FString > | BannedPlayerIP |
| TArray< FString > | SessionKickedPlayerID |
| FString | ServerPassword = "" |
| FString | OfficialServerSessionPassword = "" |
| FString | ServerName = "DefaultName" |
| FString | ServerRegion = "USEast" |
Protected Member Functions | |
| virtual void | OnCreateSessionComplete (FName SessionName, bool bWasSuccessful) |
| void | OnStartOnlineGameComplete (FName SessionName, bool bWasSuccessful) |
| void | OnFindSessionsComplete (bool bWasSuccessful) |
| void | OnJoinSessionComplete (FName SessionName, EOnJoinSessionCompleteResult::Type Result) |
| virtual void | OnDestroySessionComplete (FName SessionName, bool bWasSuccessful) |
Protected Attributes | |
| FOnCreateSessionCompleteDelegate | OnCreateSessionCompleteDelegate |
| FOnStartSessionCompleteDelegate | OnStartSessionCompleteDelegate |
| FOnDestroySessionCompleteDelegate | OnDestroySessionCompleteDelegate |
| FOnFindSessionsCompleteDelegate | OnFindSessionsCompleteDelegate |
| FOnJoinSessionCompleteDelegate | OnJoinSessionCompleteDelegate |
| FOnCreatePresenceSessionComplete | CreatePresenceSessionCompleteEvent |
| FOnFindSessionsComplete | FindSessionsCompleteEvent |
| FOnJoinSessionComplete | JoinSessionCompleteEvent |
| FDelegateHandle | OnStartSessionCompleteDelegateHandle |
| FDelegateHandle | OnCreateSessionCompleteDelegateHandle |
| FDelegateHandle | OnDestroySessionCompleteDelegateHandle |
| FDelegateHandle | OnFindSessionsCompleteDelegateHandle |
| FDelegateHandle | OnJoinSessionCompleteDelegateHandle |
| FProjectXGameSessionParams | CurrentSessionParams |
| TSharedPtr< class FProjectXOnlineSessionSettings > | HostSettings |
| TSharedPtr< class FOnlineSessionSearch > | SearchSettings |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
| void AProjectXGameSession::DestroySession | ( | ) |
| void AProjectXGameSession::FindSessions | ( | TSharedPtr< const FUniqueNetId > | UserId, |
| FName | InSessionName, | ||
| int32 | PartySize, | ||
| const TArray< EGameType > & | GameTypes, | ||
| bool | bIsLAN, | ||
| bool | bIsPresence, | ||
| bool | bIsMatchmaking, | ||
| bool | bSearchFreshServersOnly | ||
| ) |
|
inline |
|
overridevirtual |
|
overridevirtual |
| bool AProjectXGameSession::HostSession | ( | const TSharedPtr< const FUniqueNetId > | UserId, |
| const FName | SessionName, | ||
| const FOnlineSessionSettings & | SessionSettings | ||
| ) |
| bool AProjectXGameSession::HostSession | ( | TSharedPtr< const FUniqueNetId > | UserId, |
| FName | SessionName, | ||
| const FString & | GameType, | ||
| const FString & | MapName, | ||
| bool | bIsLAN, | ||
| bool | bIsPresence, | ||
| int32 | MaxNumPlayers | ||
| ) |
|
overridevirtual |
|
virtual |
|
virtual |
|
inline |
| bool AProjectXGameSession::JoinSession | ( | TSharedPtr< const FUniqueNetId > | UserId, |
| FName | SessionName, | ||
| const FOnlineSessionSearchResult & | SearchResult | ||
| ) |
| bool AProjectXGameSession::JoinSession | ( | TSharedPtr< const FUniqueNetId > | UserId, |
| FName | SessionName, | ||
| int32 | SessionIndexInSearchResults | ||
| ) |
|
overridevirtual |
|
inline |
|
protectedvirtual |
|
inline |
|
protectedvirtual |
|
inline |
|
protected |
|
inline |
|
protected |
|
protected |
|
overridevirtual |
|
overridevirtual |
|
virtual |
| void AProjectXGameSession::StartMatchmaking | ( | ) |
| bool AProjectXGameSession::TravelToSession | ( | int32 | ControllerId, |
| FName | SessionName | ||
| ) |
UE_BUILD_SHIPPING
| void AProjectXGameSession::UpdateServerInfoDifficulty | ( | const EDifficultyLevel & | DifficultyLevel | ) |
| void AProjectXGameSession::UpdateServerInfoGameModeName | ( | const EGameType & | GameMode | ) |
| void AProjectXGameSession::UpdateServerInfoMapName | ( | const FString & | MapName | ) |
| void AProjectXGameSession::UpdateServerInfoMaxPlayers | ( | int32 | PlayerCountMax | ) |
| void AProjectXGameSession::UpdateSession | ( | ) |
| TArray<FString> AProjectXGameSession::BannedPlayerID |
| TArray<FString> AProjectXGameSession::BannedPlayerIP |
|
protected |
|
protected |
Transient properties of a session during game creation/matchmaking
|
protected |
|
protected |
Current host settings
|
protected |
| FString AProjectXGameSession::OfficialServerSessionPassword = "" |
|
protected |
Delegate for creating a new session
|
protected |
|
protected |
Delegate for destroying a session
|
protected |
|
protected |
Delegate for searching for sessions
|
protected |
|
protected |
Delegate after joining a session
|
protected |
|
protected |
Delegate after starting a session
|
protected |
Handles to various registered delegates
|
protected |
Current search settings
| FString AProjectXGameSession::ServerName = "DefaultName" |
| FString AProjectXGameSession::ServerPassword = "" |
| FString AProjectXGameSession::ServerRegion = "USEast" |
| TArray<FString> AProjectXGameSession::SessionKickedPlayerID |