|
PICO Unreal Platform SDK
|
PicoMatchmakingInterface class. More...
#include <Pico_Matchmaking.h>
Public Member Functions | |
| bool | ReportResultsInsecure (const FString &RoomID, const TMap< FString, int > &Data, FMatchmakingReportResultsInsecure InDelegate) |
| Reports the result of a skill-rating match. More... | |
| bool | GetStats (const FString &Pool, uint32 MaxLevel, EMatchmakingStatApproach Approach=EMatchmakingStatApproach::Trailing, FMatchmakingGetStats InDelegate=FMatchmakingGetStats()) |
| Gets the matchmaking statistics for the current user. More... | |
| bool | Browse2 (const FString &Pool, FPicoMatchmakingOptions MatchmakingOptions, FMatchmakingBrowse2 InDelegate) |
Gets rooms by matchmakinging pool name. The user can join the room with RoomService.Join2 toor cancel the retrieval with MatchmakingService.Cancel. More... | |
| bool | Cancel (FMatchmakingCancel InDelegate) |
| Cancels a matchmaking request. Call this function to cancel an enqueue request before a match is made. This is typically triggered when a user gives up waiting. If you do not cancel the request but the user goes offline, the user/room will be timed out according to the setting of reserved period on the PICO Developer Platform. More... | |
| bool | CreateAndEnqueueRoom2 (const FString &Pool, FPicoMatchmakingOptions MatchmakingOptions, FMatchmakingCreateAndEnqueueRoom2 InDelegate) |
| Creates a matchmaking room, then enqueues and joins it. More... | |
| bool | Enqueue2 (const FString &pool, FPicoMatchmakingOptions MatchmakingOptions, FMatchmakingEnqueue2 InDelegate) |
Enqueues for an available matchmaking room to join. When the server finds a match, it will return a message of type MessageType.Notification_Matchmaking_MatchFound. You can join found matching rooms by calling RoomService.Join2. If you want to cancel the match early, you can use MatchmakingService.Cancel. More... | |
| bool | GetAdminSnapshot (FMatchmakingGetAdminSnapshot InDelegate) |
| Debugs the state of the current matchmaking pool queue. More... | |
| bool | StartMatch (const FString &RoomId, FMatchmakingStartMatch InDelegate) |
| Reports that a skill-rating match has started. You can use this method after joining the room. More... | |
PicoMatchmakingInterface class.
| bool Browse2 | ( | const FString & | Pool, |
| FPicoMatchmakingOptions | MatchmakingOptions, | ||
| FMatchmakingBrowse2 | InDelegate | ||
| ) |
Gets rooms by matchmakinging pool name. The user can join the room with RoomService.Join2 toor cancel the retrieval with MatchmakingService.Cancel.
| pool | The matchmaking pool name you want to browse. |
| MatchmakingOptions | (Optional) The matchmaking configuration of the browse request. |
| InDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, int, ErrorCode, const FString&, ErrorMessage, UPico_MatchmakingBrowseResult *, MatchmakingBrowseResult). |
true: success false: failure
| bool Cancel | ( | FMatchmakingCancel | InDelegate | ) |
Cancels a matchmaking request. Call this function to cancel an enqueue request before a match is made. This is typically triggered when a user gives up waiting. If you do not cancel the request but the user goes offline, the user/room will be timed out according to the setting of reserved period on the PICO Developer Platform.
| InDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, int, ErrorCode, const FString&, ErrorMessage). |
true: success false: failure
| bool CreateAndEnqueueRoom2 | ( | const FString & | Pool, |
| FPicoMatchmakingOptions | MatchmakingOptions, | ||
| FMatchmakingCreateAndEnqueueRoom2 | InDelegate | ||
| ) |
Creates a matchmaking room, then enqueues and joins it.
true)| pool | The matchmaking pool to use, which is created on the PICO Developer Platform. |
| MatchmakingOptions | (Optional) Additional matchmaking configuration for this request. |
| InDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, int, ErrorCode, const FString&, ErrorMessage, UPico_MatchmakingEnqueueResultAndRoom *, MatchmakingEnqueueResultAndRoom). |
true: success false: failure
| bool Enqueue2 | ( | const FString & | pool, |
| FPicoMatchmakingOptions | MatchmakingOptions, | ||
| FMatchmakingEnqueue2 | InDelegate | ||
| ) |
Enqueues for an available matchmaking room to join. When the server finds a match, it will return a message of type MessageType.Notification_Matchmaking_MatchFound. You can join found matching rooms by calling RoomService.Join2. If you want to cancel the match early, you can use MatchmakingService.Cancel.
| pool | The matchmaking pool to use, which is defined on the PICO Developer Platform. |
| MatchmakingOptions | (Optional) Match configuration for Enqueue. |
| InDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, int, ErrorCode, const FString&, ErrorMessage, UPico_MatchmakingEnqueueResult *, MatchmakingEnqueueResult). |
true: success false: failure
| bool GetAdminSnapshot | ( | FMatchmakingGetAdminSnapshot | InDelegate | ) |
Debugs the state of the current matchmaking pool queue.
| InDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, int, ErrorCode, const FString&, ErrorMessage, UPico_MatchmakingAdminSnapshot *, MatchmakingAdminSnapshot). |
true: success false: failure
| bool GetStats | ( | const FString & | Pool, |
| uint32 | MaxLevel, | ||
| EMatchmakingStatApproach | Approach = EMatchmakingStatApproach::Trailing, |
||
| FMatchmakingGetStats | InDelegate = FMatchmakingGetStats() |
||
| ) |
Gets the matchmaking statistics for the current user.
| Pool | The pool to look in. |
| MaxLevel | (beta feature, don't use it) |
| approach | (beta feature, don't use it) |
| InDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, int, ErrorCode, const FString&, ErrorMessage, UPico_MatchmakingStats *, MatchmakingStats). |
true: success false: failure
| bool ReportResultsInsecure | ( | const FString & | RoomID, |
| const TMap< FString, int > & | Data, | ||
| FMatchmakingReportResultsInsecure | InDelegate | ||
| ) |
Reports the result of a skill-rating match.
| RoomID | The ID of the room. |
| Data | The key-value pairs. |
| InDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, int, ErrorCode, const FString&, ErrorMessage). |
true: success false: failure
| bool StartMatch | ( | const FString & | RoomId, |
| FMatchmakingStartMatch | InDelegate | ||
| ) |
Reports that a skill-rating match has started. You can use this method after joining the room.
| RoomId | The ID of the room you want to match. |
| InDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, int, ErrorCode, const FString&, ErrorMessage). |
true: success false: failure