Space Plunder
Loading...
Searching...
No Matches
GetFriendAvatar.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Kismet/BlueprintAsyncActionBase.h"
7#pragma warning(disable:4996)
8#pragma warning(disable:4265)
9#pragma warning(disable:4701)
10
11#include "CoreMinimal.h"
12#include "SteamRequests.h"
13#pragma push_macro("ARRAY_COUNT")
14#undef ARRAY_COUNT
15
16#if USING_CODE_ANALYSIS
17MSVC_PRAGMA(warning(push))
18MSVC_PRAGMA(warning(disable : ALL_CODE_ANALYSIS_WARNINGS))
19#endif
20
21#include "OnlineSubsystem.h"
22#include "OnlineSubsystemSteam.h"
23#include <steam/steam_api.h>
24
25#include "SteamFriendsData.h"
26
27#if USING_CODE_ANALYSIS
28MSVC_PRAGMA(warning(pop))
29#endif
30
31#pragma pop_macro("ARRAY_COUNT")
32
33#include "GetFriendAvatar.generated.h"
34
36DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FResponseGetFriendAvatarDelegate, const UTexture2D*, Avatar, int32, SteamErrorOutput);
38UCLASS()
39class STATSINTEGRATION_API UGetFriendAvatar : public UBlueprintAsyncActionBase
40{
41 GENERATED_BODY()
42public:
43 UPROPERTY(BlueprintAssignable)
44 FResponseGetFriendAvatarDelegate OnSuccess;
45 UPROPERTY(BlueprintAssignable)
46 FResponseGetFriendAvatarDelegate OnFailure;
47
53 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true"), Category = "Simple Steam Stats & Achievements")
54 static UGetFriendAvatar* GetSteamFriendAvatar(const FString& UniqueNetId, const ESteamAvatarSize AvatarSize = SteamAvatar_Medium);
55
56private:
57 FOnlineSubsystemSteam* SteamSubsystem;
58 virtual void Activate() override;
59
60 void GetFriendAvatar();
61
63 FString SteamID;
64
65 void OnAvatarDownloaded(AvatarImageLoaded_t* pAvatarDownloaded, bool bIOFailure);
66 CCallResult<UGetFriendAvatar, AvatarImageLoaded_t> m_callDownloadResult;
67
68
69
70};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FResponseGetFriendAvatarDelegate, const UTexture2D *, Avatar, int32, SteamErrorOutput)
ESteamAvatarSize
Definition SteamFriendsData.h:10
@ SteamAvatar_Medium
Definition SteamFriendsData.h:12
Definition GetFriendAvatar.h:40