Space Plunder
Loading...
Searching...
No Matches
SpaceGameMode.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "GameFramework/GameMode.h"
7// #include "Interfaces/MultiplayerGM.h"
8#include "SpaceGameMode.generated.h"
9
10struct FPlayerDeath;
11
12UCLASS()
13class SPACEADVENTURE_API ASpaceGameMode : public AGameMode//, public IMultiplayerGM
14{
15 GENERATED_BODY()
16
17public:
18
20
21 virtual void BeginPlay() override;
22
23 //- When Player Connects //
24 virtual void PostLogin(APlayerController* NewPlayer) override;
25 //- When Player Disconnects //
26 virtual void Logout(AController* Exiting) override;
27 //- Connects from one controller to another (eg. from one level to another) //
28 virtual void SwapPlayerControllers(APlayerController* OldPC, APlayerController* NewPC) override;
29
30 //- All Player Controllers //
31 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Space GameMode")
32 TArray<APlayerController*> AllPlayerControllers;
33 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Space GameMode")
34 TArray<AActor*> PlayerStarts;
35
36
37 UFUNCTION(BlueprintCallable, Category="Space GameMode")
38 void SpawnPlayer(APlayerController* PlayerController);
39
40 UFUNCTION(BlueprintPure, BlueprintCallable, Category="Space GameMode")
41 FTransform FindRandomPlayerStart() const;
42 //- Multiplayer GM Interface //
43 virtual void PlayerDeath(FPlayerDeath PlayerDeath);
44 virtual void AIDeath(FPlayerDeath PlayerDeath);
45
46};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition SpaceGameMode.h:14
Definition BaseData.h:613