File size: 1,377 Bytes
7fd553e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | // Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Kismet/BlueprintAsyncActionBase.h"
#include "UObject/ObjectPtr.h"
#include "AsyncAction_QueryReplays.generated.h"
class APlayerController;
class INetworkReplayStreamer;
class ULyraReplayList;
class UObject;
struct FEnumerateStreamsResult;
struct FFrame;
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FQueryReplayAsyncDelegate, ULyraReplayList*, Results);
/**
* Watches for team changes in the specified player controller
*/
UCLASS()
class UAsyncAction_QueryReplays : public UBlueprintAsyncActionBase
{
GENERATED_BODY()
public:
UAsyncAction_QueryReplays(const FObjectInitializer& ObjectInitializer);
// Watches for team changes in the specified player controller
UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true"))
static UAsyncAction_QueryReplays* QueryReplays(APlayerController* PlayerController);
virtual void Activate() override;
public:
// Called when the replay query completes
UPROPERTY(BlueprintAssignable)
FQueryReplayAsyncDelegate QueryComplete;
private:
void OnEnumerateStreamsComplete(const FEnumerateStreamsResult& Result);
private:
UPROPERTY()
TObjectPtr<ULyraReplayList> ResultList;
TWeakObjectPtr<APlayerController> PlayerController;
TSharedPtr<INetworkReplayStreamer> ReplayStreamer;
};
|