-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRuneboundGameMode.h
53 lines (41 loc) · 1.2 KB
/
RuneboundGameMode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"
#include "RuneboundGameMode.generated.h"
/**
* @brief The game mode for Runebound
*/
UCLASS()
class ARuneboundGameMode : public AGameModeBase
{
GENERATED_BODY()
public:
/** Constructor */
ARuneboundGameMode();
/** Desctructor */
virtual ~ARuneboundGameMode() = default;
protected:
/** Called when the game starts or when spawned */
virtual void BeginPlay() override;
/** Function to be called when a collectable object is destroyed */
UFUNCTION()
void OnCollectableDestroyed(AActor* Collectable);
/** Function to be called when an Interactable is being interacted with */
UFUNCTION()
void OnInteracted(AActor* Actor);
/** Array to store all quests */
UPROPERTY(VisibleAnywhere, Category = "Quest")
TArray<FString> Quests;
/** Reference to the Portal */
UPROPERTY(VisibleAnywhere, Category = "NPC")
class APortal* Portal;
/** Reference to the OldMan */
UPROPERTY(VisibleAnywhere, Category = "NPC")
class AOldMan* OldMan;
/** Reference to the Rock */
UPROPERTY(VisibleAnywhere, Category = "NPC")
class ARock* Rock;
/** Reference to the Plant */
UPROPERTY(VisibleAnywhere, Category = "NPC")
class APlant* Plant;
};