Navigation
API > API/Plugins > API/Plugins/OnlineSubsystemUtils
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- AOnlineBeacon
- AOnlineBeaconClient
- APartyBeaconClient
References
| Module | OnlineSubsystemUtils |
| Header | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Public/PartyBeaconClient.h |
| Include | #include "PartyBeaconClient.h" |
Syntax
UCLASS&40;Transient, NotPlaceable, Config&61;Engine&41;
class APartyBeaconClient : public AOnlineBeaconClient
Remarks
A beacon client used for making reservations with an existing game session
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCancelReservation | Has the reservation request been canceled | |
| bool | bPendingReservationSent | Has the reservation request been delivered | |
| FTimerHandle | CancelRPCFailsafe | Timer to trigger a cancel reservation request if the server doesn't respond in time | |
| FString | DestSessionId | Session Id of the destination host | |
| FTimerHandle | PendingCancelResponseTimerHandle | ||
| FPartyReservation | PendingReservation | Pending reservation that will be sent upon connection with the intended host | |
| FTimerHandle | PendingReservationFullTimerHandle | ||
| FTimerHandle | PendingReservationUpdateTimerHandle | ||
| FTimerHandle | PendingResponseTimerHandle | Timers for delaying various responses (debug) | |
| EClientRequestType | RequestType | Type of request currently being handled by this client beacon | |
| FOnReservationCountUpdate | ReservationCountUpdate | Delegate for reservation count updates | |
| FOnReservationFull | ReservationFull | Delegate for reservation full | |
| FOnReservationRequestComplete | ReservationRequestComplete | Delegate for reservation request responses |
Constructors
| Type | Name | Description | |
|---|---|---|---|
APartyBeaconClient
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Cancel an existing request to the remote host to revoke allocated space on the server. | ||
| void | ClearTimers
(
bool bCallFailSafeIfNeeded |
Clear out all the timer handles listed above | |
| void | ClientCancelReservationResponse
(
EPartyReservationResult::Type ReservationResponse |
Response from the host session after making a cancellation request | |
| void | ClientReservationResponse
(
EPartyReservationResult::Type ReservationResponse |
Response from the host session after making a reservation request | |
| void | Response from the host session that the reservation is full | ||
| void | ClientSendReservationUpdates
(
int32 NumRemainingReservations |
Response from the host session that the reservation count has changed | |
| FTimerHandle | DelayResponse
(
FTimerDelegate& Delegate, |
Trigger the given delegate at a later time | |
| const FPartyReservation & | |||
| void | Delegate triggered when a cancel reservation request is complete | ||
| void | Delegate triggered if the client doesn't hear from the server in time | ||
| FOnReservationCountUpdate & | Delegate triggered when the host indicated a reservation count has changed | ||
| FOnReservationFull & | Delegate triggered when the host indicated the reservation is full | ||
| FOnReservationRequestComplete & | Delegate triggered when a response from the party beacon host has been received | ||
| void | ProcessCancelReservationResponse
(
EPartyReservationResult::Type ReservationResponse |
Process a response to our CancelReservation request to the server | |
| void | Process a response from the server that the reservation beacon is full | ||
| void | ProcessReservationResponse
(
EPartyReservationResult::Type ReservationResponse |
Process a response to our RequestReservation request to the server | |
| void | ProcessReservationUpdate
(
int32 NumRemainingReservations |
Process a response from the server with an update to the number of consumed reservations | |
| bool | RequestAddOrUpdateReservation
(
const FString& ConnectInfoStr, |
Sends a request to the remote host. | |
| bool | RequestReservation
(
const FOnlineSessionSearchResult& DesiredHost, |
Sends a request to the remote host to allow the specified members to reserve space in the host's session. | |
| bool | RequestReservation
(
const FString& ConnectInfoStr, |
Sends a request to the remote host to allow the specified members to reserve space in the host's session. | |
| bool | RequestReservationUpdate
(
const FUniqueNetIdRepl& RequestingPartyLeader, |
Sends an update request to the remote host to append additional members to an existing party in the host's session. | |
| bool | RequestReservationUpdate
(
const FOnlineSessionSearchResult& DesiredHost, |
Sends an update request to the remote host to append additional members to an existing party in the host's session. | |
| bool | RequestReservationUpdate
(
const FString& ConnectInfoStr, |
Sends an update request to the remote host to append additional members to an existing party in the host's session. | |
| void | ServerAddOrUpdateReservationRequest
(
const FString& SessionId, |
Tell the server about the reservation add or update request being made | |
| void | ServerCancelReservationRequest
(
const FUniqueNetIdRepl& PartyLeader |
Tell the server to cancel a pending or existing reservation | |
| void | ServerRemoveMemberFromReservationRequest
(
const FString& SessionId, |
Tell the server that we are removing members from our reservation | |
| void | ServerReservationRequest
(
const FString& SessionId, |
Tell the server about the reservation request being made | |
| void | ServerUpdateReservationRequest
(
const FString& SessionId, |
Tell the server about the reservation update request being made |
Overridden from AOnlineBeaconClient
| Type | Name | Description | |
|---|---|---|---|
| void | OnConnected () |
A connection has been made and RPC/replication can begin |
Overridden from AOnlineBeacon
| Type | Name | Description | |
|---|---|---|---|
| void | OnFailure () |
Notification that failure needs to be handled |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. |