5#include "CoreMinimal.h"
6#if ENGINE_MAJOR_VERSION >= 5
7#include "Online/CoreOnline.h"
9#include "UObject/CoreOnline.h"
12#include "Interfaces/OnlineIdentityInterface.h"
22 virtual TSharedRef<const FUniqueNetId>
GetUserId()
const override {
return UserIdPtr.ToSharedRef(); }
25 virtual bool GetUserAttribute(
const FString& AttrName, FString& OutAttrValue)
const override;
26 virtual bool SetUserAttribute(
const FString& AttrName,
const FString& AttrValue)
override;
30 virtual FString
GetAccessToken()
const override {
return TEXT(
"DummyAuthTicket"); }
31 virtual bool GetAuthAttribute(
const FString& AttrName, FString& OutAttrValue)
const override;
36#if ENGINE_MAJOR_VERSION >= 5
37 :
UserIdPtr(FUniqueNetIdPixoVR::Create(InUserId)),
39 :
UserIdPtr(
new FUniqueNetIdPixoVR(InUserId)),
66 virtual bool Login(int32 LocalUserNum,
const FOnlineAccountCredentials& AccountCredentials)
override;
67 virtual bool Logout(int32 LocalUserNum)
override;
68 virtual bool AutoLogin(int32 LocalUserNum)
override;
69 virtual TSharedPtr<FUserOnlineAccount>
GetUserAccount(
const FUniqueNetId& UserId)
const override;
74 virtual ELoginStatus::Type
GetLoginStatus(int32 LocalUserNum)
const override;
75 virtual ELoginStatus::Type
GetLoginStatus(
const FUniqueNetId& UserId)
const override;
78 virtual FString
GetAuthToken(int32 LocalUserNum)
const override;
79 virtual void RevokeAuthToken(
const FUniqueNetId& UserId,
const FOnRevokeAuthTokenCompleteDelegate& Delegate)
override;
80 virtual void GetUserPrivilege(
const FUniqueNetId& UserId, EUserPrivileges::Type Privilege,
const FOnGetUserPrivilegeCompleteDelegate& Delegate)
override;
85 virtual void SetPlayerNickname(
const FUniqueNetId& UserId,
const FString PlayerNickname);
TSharedPtr< FPVROIdentity, ESPMode::ThreadSafe > FPVROIdentityPtr
TSharedPtr< const FUniqueNetId > FUniqueNetIdPtr
virtual void SetPlayerNickname(int32 LocalUserNum, const FString PlayerNickname)
virtual ELoginStatus::Type GetLoginStatus(int32 LocalUserNum) const override
virtual FString GetPlayerNickname(int32 LocalUserNum) const override
virtual FUniqueNetIdPtr CreateUniquePlayerId(uint8 *Bytes, int32 Size) override
TMap< int32, FUniqueNetIdPtr > UserIds
virtual FString GetAuthToken(int32 LocalUserNum) const override
virtual bool Logout(int32 LocalUserNum) override
virtual bool AutoLogin(int32 LocalUserNum) override
virtual FPlatformUserId GetPlatformUserIdFromUniqueNetId(const FUniqueNetId &UniqueNetId) const override
virtual void GetUserPrivilege(const FUniqueNetId &UserId, EUserPrivileges::Type Privilege, const FOnGetUserPrivilegeCompleteDelegate &Delegate) override
TMap< FUniqueNetIdPixoVR, TSharedRef< FPVROUserAccount > > UserAccounts
FPVROSubsystem * Subsystem
virtual FUniqueNetIdPtr GetUniquePlayerId(int32 LocalUserNum) const override
virtual TArray< TSharedPtr< FUserOnlineAccount > > GetAllUserAccounts() const override
virtual FString GetAuthType() const override
virtual TSharedPtr< FUserOnlineAccount > GetUserAccount(const FUniqueNetId &UserId) const override
virtual bool Login(int32 LocalUserNum, const FOnlineAccountCredentials &AccountCredentials) override
virtual void RevokeAuthToken(const FUniqueNetId &UserId, const FOnRevokeAuthTokenCompleteDelegate &Delegate) override
TMap< FString, FString > UserAttributes
virtual bool GetAuthAttribute(const FString &AttrName, FString &OutAttrValue) const override
virtual FString GetAccessToken() const override
virtual TSharedRef< const FUniqueNetId > GetUserId() const override
virtual FString GetRealName() const override
virtual bool GetUserAttribute(const FString &AttrName, FString &OutAttrValue) const override
virtual FString GetDisplayName(const FString &Platform=FString()) const override
FPVROUserAccount(const FString &InUserId=TEXT(""))
TMap< FString, FString > AdditionalAuthData
virtual bool SetUserAttribute(const FString &AttrName, const FString &AttrValue) override
FUniqueNetIdPtr UserIdPtr
virtual ~FPVROUserAccount()