Pico Unreal Platform SDK

Functions

static bool CreateSession (UObject *WorldContextObject, int HostingPlayerNum, FName SessionName, const FPicoOnlineSessionSettings &NewSessionSettings, FPicoManagerOnCreateSessionCompleteDelegate OnCreateSessionCompleteDelegate)
 Creates a private session or a matchmaking session. More...
 
static bool StartSession (UObject *WorldContextObject, FName SessionName, FPicoManagerOnStartSessionCompleteDelegate OnStartSessionCompleteDelegate)
 Changes the session state to InProgress. More...
 
static bool UpdateSession (UObject *WorldContextObject, FName SessionName, const FPicoOnlineSessionSettings &UpdatedSessionSettings, FPicoManagerOnUpdateSessionCompleteDelegate OnUpdateSessionCompleteDelegate, bool bShouldRefreshOnlineData=true)
 Updates the datastore of a session. More...
 
static bool EndSession (UObject *WorldContextObject, FName SessionName, FPicoManagerOnEndSessionCompleteDelegate OnEndSessionCompleteDelegate)
 Changes the session state to Ended. More...
 
static bool DestroySession (UObject *WorldContextObject, FName SessionName, FPicoManagerOnDestroySessionCompleteDelegate OnDestroySessionCompleteDelegate)
 Destroys the current session. More...
 
static bool IsPlayerInSession (UObject *WorldContextObject, FName SessionName, const FString &UniqueId)
 Checks whether a player is in a session. More...
 
static bool StartMatchmaking (UObject *WorldContextObject, const TArray< FString > &LocalPlayers, FName SessionName, const FPicoOnlineSessionSettings &NewSessionSettings, UPARAM(ref) FPicoOnlineSessionSearch &NewSessionSearch, FPicoManagerOnMatchmakingCompleteDelegate OnMatchmakingCompleteDelegate)
 Starts matchmaking for a session. More...
 
static bool CancelMatchmaking (UObject *WorldContextObject, int SearchingPlayerNum, FName SessionName, FPicoManagerOnCancelMatchmakingCompleteDelegate OnCancelMatchmakingCompleteDelegate)
 Cancels matchmaking for a session. More...
 
static bool FindSessions (UObject *WorldContextObject, int32 SearchingPlayerNum, UPARAM(ref) FPicoOnlineSessionSearch &NewSessionSearch, FPicoManagerOnFindSessionCompleteDelegate OnFindSessionCompleteDelegate)
 Finds matchmaking sessions or moderated sessions. More...
 
static bool FindSessionById (UObject *WorldContextObject, const FString &SearchingUserId, const FString &SessionId, FPicoManagerOnSingleSessionResultCompleteDelegate OnSingleSessionResultCompleteDelegate)
 Gets session data by session ID. More...
 
static bool JoinSession (UObject *WorldContextObject, int PlayerNum, FName SessionName, const FPicoOnlineSessionSearchResult &SearchResult, FPicoManagerOnJoinSessionCompleteDelegate OnJoinSessionCompleteDelegate)
 Joins a session. More...
 
static void DumpSessionState (UObject *WorldContextObject)
 Dumps a session. More...
 
static EOnlineSessionStatePicoType GetSessionState (UObject *WorldContextObject, FName SessionName)
 Gets the state of a session. More...
 
static FPicoNamedOnlineSession GetNamedSession (UObject *WorldContextObject, FName SessionName)
 Gets the data about a session. More...
 
static FPicoNamedOnlineSession AddNamedSessionBySettings (UObject *WorldContextObject, FName SessionName, const FPicoOnlineSessionSettings &SessionSettings)
 Adds session by session settings. More...
 
static FPicoNamedOnlineSession AddNamedSession (UObject *WorldContextObject, FName SessionName, const FPicoOnlineSession &Session)
 Adds a session. More...
 
static FPicoOnlineSessionSettings GetSessionSettings (UObject *WorldContextObject, FName SessionName)
 Gets the settings of a session. More...
 
static bool SendSessionInviteToFriend (UObject *WorldContextObject, int32 LocalUserNum, FName SessionName, const FString &Friend)
 Invites a friend to the session. More...
 

Detailed Description

This is the BP_Session group

Function Documentation

◆ AddNamedSession()

FPicoNamedOnlineSession AddNamedSession ( UObject *  WorldContextObject,
FName  SessionName,
const FPicoOnlineSession &  Session 
)
static

Adds a session.

Parameters
WorldContextObjectUsed to get the information about the current world.
SessionNameThe session name.
SessionThe session will be added.
Returns
The session added.

◆ AddNamedSessionBySettings()

FPicoNamedOnlineSession AddNamedSessionBySettings ( UObject *  WorldContextObject,
FName  SessionName,
const FPicoOnlineSessionSettings &  SessionSettings 
)
static

Adds session by session settings.

Parameters
WorldContextObjectUsed to get the information about the current world.
SessionNameThe session name.
SessionSettingsThe settings of the session.
Returns
The session added.

◆ CancelMatchmaking()

bool CancelMatchmaking ( UObject *  WorldContextObject,
int  SearchingPlayerNum,
FName  SessionName,
FPicoManagerOnCancelMatchmakingCompleteDelegate  OnCancelMatchmakingCompleteDelegate 
)
static

Cancels matchmaking for a session.

Parameters
WorldContextObjectUsed to get the information about the current world.
SearchingPlayerNum(not used)
SessionNameThe session name.
OnCancelMatchmakingCompleteDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ CreateSession()

bool CreateSession ( UObject *  WorldContextObject,
int  HostingPlayerNum,
FName  SessionName,
const FPicoOnlineSessionSettings &  NewSessionSettings,
FPicoManagerOnCreateSessionCompleteDelegate  OnCreateSessionCompleteDelegate 
)
static

Creates a private session or a matchmaking session.

Parameters
WorldContextObjectUsed to get the information about the current world.
HostingPlayerNumThe index in the current userId array.
SessionNameThe session name.
NewSessionSettingsThe session settings.
OnCreateSessionCompleteDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ DestroySession()

bool DestroySession ( UObject *  WorldContextObject,
FName  SessionName,
FPicoManagerOnDestroySessionCompleteDelegate  OnDestroySessionCompleteDelegate 
)
static

Destroys the current session.

Parameters
WorldContextObjectUsed to get the information about the current world.
SessionNameThe session name.
OnDestroySessionCompleteDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ DumpSessionState()

void DumpSessionState ( UObject *  WorldContextObject)
static

Dumps a session.

Parameters
WorldContextObjectUsed to get the information about the current world.

◆ EndSession()

bool EndSession ( UObject *  WorldContextObject,
FName  SessionName,
FPicoManagerOnEndSessionCompleteDelegate  OnEndSessionCompleteDelegate 
)
static

Changes the session state to Ended.

Parameters
WorldContextObjectUsed to get the information about the current world.
SessionNameThe session name.
OnEndSessionCompleteDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ FindSessionById()

bool FindSessionById ( UObject *  WorldContextObject,
const FString &  SearchingUserId,
const FString &  SessionId,
FPicoManagerOnSingleSessionResultCompleteDelegate  OnSingleSessionResultCompleteDelegate 
)
static

Gets session data by session ID.

Parameters
WorldContextObjectUsed to get the information about the current world.
SearchingUserIdThe ID of the logged-in player. If the played has not logged in, the session data will be unable to get.
SessionIdThe session ID.
OnSingleSessionResultCompleteDelegateWill be executed when the request has been complete.
Returns
Bool:
  • true: success
  • false: failure

◆ FindSessions()

bool FindSessions ( UObject *  WorldContextObject,
int32  SearchingPlayerNum,
UPARAM(ref) FPicoOnlineSessionSearch &  NewSessionSearch,
FPicoManagerOnFindSessionCompleteDelegate  OnFindSessionCompleteDelegate 
)
static

Finds matchmaking sessions or moderated sessions.

Parameters
WorldContextObjectUsed to get the information about the current world.
SearchingPlayerNum(not used)
NewSessionSearchThe search settings.
OnFindSessionCompleteDelegateWill be executed when the request has been complete.
Returns
Bool:
  • true: success
  • false: failure

◆ GetNamedSession()

FPicoNamedOnlineSession GetNamedSession ( UObject *  WorldContextObject,
FName  SessionName 
)
static

Gets the data about a session.

Parameters
WorldContextObjectUsed to get the information about the current world.
SessionNameThe session name.
Returns
The data about the session.

◆ GetSessionSettings()

FPicoOnlineSessionSettings GetSessionSettings ( UObject *  WorldContextObject,
FName  SessionName 
)
static

Gets the settings of a session.

Parameters
WorldContextObjectUsed to get the information about the current world.
SessionNameThe session name.
Returns
The settings of the session.

◆ GetSessionState()

EOnlineSessionStatePicoType GetSessionState ( UObject *  WorldContextObject,
FName  SessionName 
)
static

Gets the state of a session.

Parameters
WorldContextObjectUsed to get the information about the current world.
SessionNameThe name of the session to get state for.
Returns
The state of the session.

◆ IsPlayerInSession()

bool IsPlayerInSession ( UObject *  WorldContextObject,
FName  SessionName,
const FString &  UniqueId 
)
static

Checks whether a player is in a session.

Parameters
WorldContextObjectUsed to get the information about the current world.
SessionNameThe session name.
UniqueIdThe unique ID of the player.
Returns
Bool:
  • true: success
  • false: failure

◆ JoinSession()

bool JoinSession ( UObject *  WorldContextObject,
int  PlayerNum,
FName  SessionName,
const FPicoOnlineSessionSearchResult &  SearchResult,
FPicoManagerOnJoinSessionCompleteDelegate  OnJoinSessionCompleteDelegate 
)
static

Joins a session.

Parameters
WorldContextObjectUsed to get the information about the current world.
PlayerNumThe LocalOwnerId of the session.
SessionNameThe name of the session to join.
SearchResultThe search session result settings.
OnJoinSessionCompleteDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ SendSessionInviteToFriend()

bool SendSessionInviteToFriend ( UObject *  WorldContextObject,
int32  LocalUserNum,
FName  SessionName,
const FString &  Friend 
)
static

Invites a friend to the session.

Parameters
WorldContextObjectUsed to get the information about the current world.
LocalUserNumThe controller number of the friend to invite.
SessionNameThe session name.
FriendThe name of the friend to invite.
Returns
The settings of the session.

◆ StartMatchmaking()

bool StartMatchmaking ( UObject *  WorldContextObject,
const TArray< FString > &  LocalPlayers,
FName  SessionName,
const FPicoOnlineSessionSettings &  NewSessionSettings,
UPARAM(ref) FPicoOnlineSessionSearch &  NewSessionSearch,
FPicoManagerOnMatchmakingCompleteDelegate  OnMatchmakingCompleteDelegate 
)
static

Starts matchmaking for a session.

Parameters
WorldContextObjectUsed to get the information about the current world.
LocalPlayersThe logged-in users in the session.
SessionNameThe session name.
NewSessionSettingsSet NumPrivateConnections to 0.
NewSessionSearchUsed to modify the search state.
OnMatchmakingCompleteDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ StartSession()

bool StartSession ( UObject *  WorldContextObject,
FName  SessionName,
FPicoManagerOnStartSessionCompleteDelegate  OnStartSessionCompleteDelegate 
)
static

Changes the session state to InProgress.

Parameters
WorldContextObjectUsed to get the information about the current world.
SessionNameThe session name.
OnStartSessionCompleteDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ UpdateSession()

bool UpdateSession ( UObject *  WorldContextObject,
FName  SessionName,
const FPicoOnlineSessionSettings &  UpdatedSessionSettings,
FPicoManagerOnUpdateSessionCompleteDelegate  OnUpdateSessionCompleteDelegate,
bool  bShouldRefreshOnlineData = true 
)
static

Updates the datastore of a session.

Parameters
WorldContextObjectUsed to get the information about the current world.
SessionNameThe session name.
UpdatedSessionSettingsThe settings with new datastore.
bShouldRefreshOnlineData(not used)
OnUpdateSessionCompleteDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure