blaster/Source/Blaster/GameMode/TeamsGameMode.h

31 lines
588 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "BlasterGameMode.h"
#include "TeamsGameMode.generated.h"
/**
*
*/
UCLASS()
class BLASTER_API ATeamsGameMode : public ABlasterGameMode
{
GENERATED_BODY()
public:
virtual void PostLogin(APlayerController* NewPlayer) override;
virtual void Logout(AController* Exiting) override;
protected:
virtual void HandleMatchHasStarted() override;
private:
UPROPERTY()
class ABlasterGameState* BGameState;
void AssignToTeam(APlayerState* PlayerState);
};