blaster/Source/Blaster/GameMode/BlasterGameMode.h

36 lines
898 B
C
Raw Normal View History

2022-05-07 15:11:53 +00:00
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameMode.h"
#include "BlasterGameMode.generated.h"
/**
*
*/
UCLASS()
class BLASTER_API ABlasterGameMode : public AGameMode
{
GENERATED_BODY()
2022-05-10 10:15:22 +00:00
public:
ABlasterGameMode();
virtual void Tick(float DeltaSeconds) override;
virtual void PlayerEliminated(class ABlasterCharacter* EliminatedCharacter, class ABlasterPlayerController* VictimController,
class ABlasterPlayerController* AttackerController);
2022-05-07 18:34:40 +00:00
virtual void RequestRespawn(ACharacter* EliminatedCharacter, AController* EliminatedController);
2022-05-10 10:15:22 +00:00
UPROPERTY(EditDefaultsOnly)
float WarmupTime = 10.f;
float LevelStartingTime = 0.f;
protected:
virtual void BeginPlay() override;
2022-05-10 10:42:09 +00:00
virtual void OnMatchStateSet() override;
2022-05-10 10:15:22 +00:00
private:
float CountDownTime = 0.f;
2022-05-07 15:11:53 +00:00
};