This commit is contained in:
Nalobin Egor
2023-11-19 19:30:07 +11:00
parent c88bdf1ff0
commit 91fb0eb3da
13 changed files with 409 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "SinglePlayerGameModeBase.h"
#include "UObject/ConstructorHelpers.h"
ASinglePlayerGameModeBase::ASinglePlayerGameModeBase(): Super()
{
static ConstructorHelpers::FClassFinder<APawn> PlayerPawnClassFinder(TEXT("/Script/Engine.Blueprint'/Game/Player/Blueprints/BP_PlayerCharacter.BP_PlayerCharacter_C'"));
if (PlayerPawnClassFinder.Succeeded())
{
DefaultPawnClass = PlayerPawnClassFinder.Class;
}
}

View File

@@ -0,0 +1,21 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"
#include "SinglePlayerGameModeBase.generated.h"
/**
*
*/
UCLASS()
class CODREMAKE_API ASinglePlayerGameModeBase : public AGameModeBase
{
GENERATED_BODY()
ASinglePlayerGameModeBase();
};