Hey guess what? error C2084. Accept:
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"
#include "TestGameModeBase.generated.h"
/**
*
*/
UCLASS(minimalapi)
class ATestGameModeBase : public AGameModeBase
{
GENERATED_BODY()
public:
ATestGameModeBase();
};
#include "TestGameModeBase.h"
#include "UObject/ConstructorHelpers.h"
#include "TestPlayerController.h"
#include "TestHud.h"
ATestGameModeBase::ATestGameModeBase()
{
static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(TEXT("/Game/myAdditionsArcade/testing/testCharacter"));
if (PlayerPawnBPClass.Class != NULL)
{
DefaultPawnClass = PlayerPawnBPClass.Class;
}
PlayerControllerClass = ATestPlayerController::StaticClass();
HUDClass = ATestHud::StaticClass();
}
I was attempting to access the TestGameModeBase through my hud with:
songAudioComponents = Cast<ATestGameModeBase>(GetWorld()->GetAuthGameMode())->RetrieveSongs(); // there was a retrieve songs function in the ATestGameModeBase but I removed it for debugging
which is when the error began. Previously there wasnt a problem but now the error has started all my backups are experiencing the same error