49 lines
944 B
C++
49 lines
944 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Blueprint/UserWidget.h"
|
|
#include "APITestOverlay.generated.h"
|
|
|
|
class UListFleetsBox;
|
|
class UAPITestManager;
|
|
struct FDSListFleetsResponse;
|
|
class UFleetId;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class DEDICATEDSERVERS_API UAPITestOverlay : public UUserWidget
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
|
|
UPROPERTY(EditDefaultsOnly)
|
|
TSubclassOf<UAPITestManager> APITestManagerClass;
|
|
|
|
UPROPERTY(EditDefaultsOnly)
|
|
TSubclassOf<UFleetId> FleetIdWidgetClass;
|
|
|
|
protected:
|
|
|
|
virtual void NativeConstruct() override;
|
|
|
|
private:
|
|
|
|
UPROPERTY(meta = (BindWidget))
|
|
TObjectPtr<UListFleetsBox> ListFleetsBox = nullptr;
|
|
|
|
UPROPERTY()
|
|
TObjectPtr<UAPITestManager> APITestManager;
|
|
|
|
UFUNCTION()
|
|
void ListFleetsButtonClicked();
|
|
|
|
UFUNCTION()
|
|
void OnListFleetsResponseReceived(const FDSListFleetsResponse& ListFleetsResponse, bool bWasSuccessful);
|
|
|
|
};
|