// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Blueprint/UserWidget.h" #include "GameOverWidget.generated.h" /** * */ UCLASS() class TURNBASEDTUTORIAL_API UGameOverWidget : public UUserWidget { GENERATED_BODY() public: virtual void NativeConstruct() override; UFUNCTION(Client, Reliable) void SetWidgetText(bool HasWon); UFUNCTION(Client, Reliable) void QuitCurrentSession(); protected: UPROPERTY(meta = (BindWidget)) class UButton *ButtonToMenu; UPROPERTY(meta = (BindWidget)) class UTextBlock *GameOverText; };