|
PICO Unreal Platform SDK
|
FOnlineSessionPico class inherited from IOnlineSession(Unreal Engine). More...
#include <OnlineSessionInterfacePico.h>
Public Member Functions | |
| virtual | ~FOnlineSessionPico () |
| The default destructor. | |
| virtual bool | CreateSession (int32 HostingPlayerNum, FName SessionName, const FOnlineSessionSettings &NewSessionSettings) override |
| Creates an online session based on the specified settings. More... | |
| virtual bool | StartSession (FName SessionName) override |
| Marks an online session as in progress (as opposed to being in lobby or pending). More... | |
| virtual bool | UpdateSession (FName SessionName, FOnlineSessionSettings &UpdatedSessionSettings, bool bShouldRefreshOnlineData=true) override |
| Updates the localized settings/properties for the session in question. More... | |
| virtual bool | EndSession (FName SessionName) override |
| Marks an online session as having been ended. More... | |
| virtual bool | DestroySession (FName SessionName, const FOnDestroySessionCompleteDelegate &CompletionDelegate=FOnDestroySessionCompleteDelegate()) override |
| Destroys the specified online session. More... | |
| virtual bool | IsPlayerInSession (FName SessionName, const FUniqueNetId &UniqueId) override |
| Determines if the player is registered in the specified session. More... | |
| virtual bool | StartMatchmaking (const TArray< TSharedRef< const FUniqueNetId > > &LocalPlayers, FName SessionName, const FOnlineSessionSettings &NewSessionSettings, TSharedRef< FOnlineSessionSearch > &SearchSettings) override |
| Starts cloud-based matchmaking for a session. More... | |
| virtual bool | CancelMatchmaking (int32 SearchingPlayerNum, FName SessionName) override |
| Cancels a matchmaking request for a given session. More... | |
| virtual bool | FindSessions (int32 SearchingPlayerNum, const TSharedRef< FOnlineSessionSearch > &SearchSettings) override |
| Searches for sessions matching the settings specified. More... | |
| virtual bool | FindSessionById (const FUniqueNetId &SearchingUserId, const FUniqueNetId &SessionId, const FUniqueNetId &FriendId, const FOnSingleSessionResultCompleteDelegate &CompletionDelegate) override |
| Finds a session by session ID. More... | |
| virtual bool | JoinSession (int32 PlayerNum, FName SessionName, const FOnlineSessionSearchResult &DesiredSession) override |
| Joins the session specified. More... | |
| void | Initialize () |
| Initializes the game module. | |
| bool | Uninitialize () |
| Uninitializes the game module. More... | |
| void | SetInitState (bool State) |
Sets InitSuccess for the game module. More... | |
| bool | IsInitSuccess () const |
Checks the current state of InitSuccess. More... | |
| void | OnForcedCancelMatchmaking () |
| Forces to cancel matchmaking. | |
| void | OnForcedLeaveRoom (ppfID RoomID) |
| Forces to leave the specified room. More... | |
| bool | IsInMatchmakingProgress () |
Checks InProgressMatchmakingSearch and SearchState. More... | |
Private Member Functions | |
| ppfID | GetRoomIDOfSession (const FNamedOnlineSession &Session) const |
| Gets the room ID of the session. More... | |
| int32 | GetRoomBuildUniqueId (const ppfRoomHandle Room) |
| Gets the build unique ID of a room. More... | |
| bool | FindModeratedRoomSessions (const TSharedRef< FOnlineSessionSearch > &SearchSettings) |
| Searches for moderated rooms. More... | |
| bool | FindMatchmakingSessions (const FString Pool, const TSharedRef< FOnlineSessionSearch > &SearchSettings) |
| Searches for the "browse" type matchmaking rooms. More... | |
FOnlineSessionPico class inherited from IOnlineSession(Unreal Engine).
|
overridevirtual |
Cancels a matchmaking request for a given session.
| SearchingPlayerNum | The index of the player canceling the search. |
| SessionName | The name of the session that was passed to StartMatchmaking (or CreateSession). |
true: success false: failure
|
overridevirtual |
Creates an online session based on the specified settings.
OnCreateSessionComplete delegate is called. | HostingPlayerNum | The index of the player hosting the session. |
| SessionName | The name of the session to create. |
| NewSessionSettings | The settings to use for the new session. |
true: success false: failure
|
overridevirtual |
Destroys the specified online session.
OnDestroySessionComplete delegate is called. | SessionName | The name of the session to destroy. |
| CompletionDelegate | Used when the session destroy request has been completed. |
true: success false: failure
|
overridevirtual |
Marks an online session as having been ended.
| SessionName | The name of the session to end. |
true: success false: failure
|
private |
Searches for the "browse" type matchmaking rooms.
| Pool | The name of the matchmaking pool to look in. |
| SearchSettings | The search settings (to set the search results and the searchState). |
true: success false: failure
|
private |
Searches for moderated rooms.
| SearchSettings | The search settings. |
true: success false: failure
|
overridevirtual |
Finds a session by session ID.
| SearchingUserId | The ID of the user initiating the request. |
| SessionId | The session ID to search for. |
| FriendId | Not supported. Set it invalid. |
| CompletionDelegate | Will be executed when ppf_Room_Get is complete. |
true: success false: failure
|
overridevirtual |
Searches for sessions matching the settings specified.
| SearchingPlayerNum | The index of the player searching for a match. |
| SearchSettings | The desired settings that the returned sessions will have. |
true: success false: failure
|
private |
Gets the build unique ID of a room.
| Room | The handle of the room. |
|
private |
Gets the room ID of the session.
| Session | The session to get room ID for. |
| bool IsInitSuccess | ( | ) | const |
Checks the current state of InitSuccess.
InitSuccess: true false | bool IsInMatchmakingProgress | ( | ) |
Checks InProgressMatchmakingSearch and SearchState.
true if InProgressMatchmakingSearch is valid and SearchState is EOnlineAsyncTaskState::InProgress false: otherwise
|
overridevirtual |
Determines if the player is registered in the specified session.
| SessionName | The name of the session. |
| UniqueId | The ID of the player to check if in session or not. |
true: in session false: not in session
|
overridevirtual |
Joins the session specified.
| PlayerNum | The index of the player searching for a match. |
| SessionName | The name of the session to join. |
| DesiredSession | The desired session to join. |
true: success false: failure | void OnForcedLeaveRoom | ( | ppfID | RoomID | ) |
Forces to leave the specified room.
| RoomID | The ID of the room to force leave. |
| void SetInitState | ( | bool | State | ) |
Sets InitSuccess for the game module.
| State |
|
|
overridevirtual |
Starts cloud-based matchmaking for a session.
| LocalPlayers | The IDs of all local players that will participate in the match. |
| SessionName | The name of the session to use. |
| NewSessionSettings | The desired settings to match against or create with when forming new sessions. NumPrivateConnections needs to be zero. |
| SearchSettings | The desired settings that the matched session will have. |
true: success false: failure
|
overridevirtual |
Marks an online session as in progress (as opposed to being in lobby or pending).
| SessionName | The name of session to change state for. |
true: success false: failure | bool Uninitialize | ( | ) |
Uninitializes the game module.
true.
|
overridevirtual |
Updates the localized settings/properties for the session in question.
| SessionName | The name of the session to update. |
| UpdatedSessionSettings | The object to update the session settings with. |
| bShouldRefreshOnlineData | Whether to submit the data to the backend or not. |
true: success false: failure