LEAP Documentation 40220
Documentation for the LEAP project
PlatformDependentEngagement.h
Go to the documentation of this file.
1// Copyright 2022 Blue Isle Studios Inc.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Input/Events.h"
7#include "Interfaces/OnlineIdentityInterface.h"
8#include "PlatformDependentEngagement.generated.h"
9
11
12DECLARE_DYNAMIC_DELEGATE_OneParam(FOnUserEngagedSignature, bool, bSuccess);
13
14UCLASS()
15class PROJECTX_API UPlatformDependentEngagement : public UObject
16{
17 GENERATED_BODY()
18
19public:
20 static TWeakObjectPtr<class UProjectXGameInstance> GameInstance;
21 static TWeakObjectPtr<class UWorld> World;
23 static FOnUserEngagedSignature EngagementCallback;
24
25 UFUNCTION(BlueprintCallable, Category = "Platform Engagement", meta = (WorldContext = "WorldContextObject"))
26 static void EngageUser(const UObject* WorldContextObject, const FOnUserEngagedSignature& Callback, const FInputEvent& InputEvent);
27
28 static void Init(UProjectXGameInstance* InitializingGameInstance);
29 static void HandleLoginUIClosed(TSharedPtr<const FUniqueNetId> UniqueId, const int ControllerIndex, const FOnlineError& Error);
30 static void OnConfirmGeneric();
31 static void OnUserCanPlay(const FUniqueNetId& UserId, EUserPrivileges::Type Privilege, uint32 PrivilegeResults);
32 static void SetControllerAndAdvanceToMainMenu(const int ControllerIndex);
33 static void AdvanceToMainMenu();
34};
DECLARE_DYNAMIC_DELEGATE_OneParam(FOnUserEngagedSignature, bool, bSuccess)
Definition: PlatformDependentEngagement.h:16
static int32 PendingControllerIndex
Definition: PlatformDependentEngagement.h:22
static TWeakObjectPtr< class UWorld > World
Definition: PlatformDependentEngagement.h:21
static TWeakObjectPtr< class UProjectXGameInstance > GameInstance
Definition: PlatformDependentEngagement.h:20
static FOnUserEngagedSignature EngagementCallback
Definition: PlatformDependentEngagement.h:23
Definition: ProjectXGameInstance.h:507
virtual void Init() override
Definition: ProjectXGameInstance.cpp:219