blaster/Source/Blaster/GameState/BlasterGameState.h

28 lines
587 B
C
Raw Normal View History

2022-05-17 22:41:31 +00:00
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameState.h"
#include "BlasterGameState.generated.h"
/**
*
*/
UCLASS()
class BLASTER_API ABlasterGameState : public AGameState
{
GENERATED_BODY()
public:
virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
void UpdateTopScore(class ABlasterPlayerState* ScoringPlayer);
UPROPERTY(Replicated)
TArray<class ABlasterPlayerState*> TopScoringPlayers;
private:
float TopScore = 0.f;
};