TriggerVolume

If you want to declare TriggerVolume variable, you must first include “Engine/TriggerVolume.h”.

Also, remember that the last include should be “.generated.h” file

 


#pragma once

#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "Engine/TriggerVolume.h"
#include "OpenDoor.generated.h"

My .gitignore File

Binaries, Build, DerivedDataCache(If you see it), Intermediate, Saved (folders that created by Unreal Engine)
+ DB files created by visual studio (have .db extension or files under the vs folder)

################
#Unreal Generated Files#
################
*/Build
*/Binaries
*/DerivedDataCache
*/Intermediate/
*/Saved
BuildingEscape/Content/StarterContent/

##############
#VS Generated Files#
##############
BuildingEscape/.vs/

TMap

We’re going to use TMap instead of std::map, because we’re writing Unreal standard C++. Unreal has its own data types that override the standard libraries, because they’re more suited to the sort of platforms that we’re going to deploy on, when we make games in Unreal.

#include <map>
#define TMap std::map

std::unordered_set or Unreal TSet is a valid alternative. Map is a more versatile.