Lesson 68 - JoinGame Callbacks
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
#include "UI/HTTP/HTTPRequestManager.h"
|
||||
#include "PortalManager.generated.h"
|
||||
|
||||
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FBroadcastJoinGameSessionMessage, const FString&, StatusMessage);
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -13,4 +15,11 @@ UCLASS()
|
||||
class DEDICATEDSERVERS_API UPortalManager : public UHTTPRequestManager
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
|
||||
UPROPERTY(BlueprintAssignable)
|
||||
FBroadcastJoinGameSessionMessage BroadcastJoinGameSessionMessage;
|
||||
|
||||
void JoinGameSession();
|
||||
};
|
||||
|
||||
@@ -34,4 +34,10 @@ private:
|
||||
|
||||
UPROPERTY()
|
||||
TObjectPtr<UPortalManager> PortalManager;
|
||||
|
||||
UFUNCTION()
|
||||
void OnJoinGameButtonClicked();
|
||||
|
||||
UFUNCTION()
|
||||
void UpdateJoinGameStatusMessage(const FString& StatusMessage);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user