Initial Commit - Lesson 31 (Commit #1)
This commit is contained in:
30
Source/FPSTemplate/Public/Game/ShooterGameModeBase.h
Normal file
30
Source/FPSTemplate/Public/Game/ShooterGameModeBase.h
Normal file
@@ -0,0 +1,30 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "GameFramework/GameMode.h"
|
||||
#include "ShooterGameModeBase.generated.h"
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
UCLASS()
|
||||
class FPSTEMPLATE_API AShooterGameModeBase : public AGameMode
|
||||
{
|
||||
GENERATED_BODY()
|
||||
public:
|
||||
AShooterGameModeBase();
|
||||
virtual void Tick(float DeltaTime) override;
|
||||
virtual void StartPlayerElimination(float ElimTime, ACharacter* ElimmedCharacter, class APlayerController* VictimController, APlayerController* AttackerController);
|
||||
|
||||
UPROPERTY()
|
||||
TMap<APlayerController*, FTimerHandle> Timers;
|
||||
|
||||
virtual void PlayerEliminated(ACharacter* ElimmedCharacter, class APlayerController* VictimController, APlayerController* AttackerController);
|
||||
virtual void RequestRespawn(ACharacter* ElimmedCharacter, AController* ElimmedController);
|
||||
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, Category="Respawning")
|
||||
float RespawnTime;
|
||||
};
|
||||
Reference in New Issue
Block a user