Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fill out your copyright notice in the Description page of Project Settings.
- #pragma once
- #include "CoreMinimal.h"
- #include "GameFramework/GameModeBase.h"
- #include "SGameState.generated.h"
- UENUM(BlueprintType)
- enum class EWaveState : uint8
- {
- WaitingToStart,
- WaveInProgress,
- // No longer spawning new bots, waiting for players to kill remaining bots
- WaitingToComplete,
- WaveComplete,
- GameOver,
- };
- /**
- *
- */
- UCLASS()
- class COOPGAME_API ASGameState : public AGameModeBase
- {
- GENERATED_BODY()
- protected:
- UFUNCTION()
- void OnRep_WaveState(EWaveState OldState);
- UFUNCTION(BlueprintImplementableEvent, Category = "GameState")
- void WaveStateChanged(EWaveState NewState, EWaveState OldState);
- public:
- UPROPERTY(BlueprintReadOnly, ReplicatedUsing=OnRep_WaveState, Category = "GameState")
- EWaveState WaveState;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement