Implemented MainSaveGameClass into Main Menu Buttons

This commit is contained in:
Rafal Swierczek 2024-01-25 04:24:10 +00:00
parent fd5b82693a
commit 1e5afffcd8
12 changed files with 52 additions and 17 deletions

View File

@ -9,6 +9,13 @@
<component name="ChangeListManager">
<list default="true" id="8acc2658-cb31-4c49-857f-282cfee74640" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/.idea.EndlessVendetta/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.EndlessVendetta/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset" beforeDir="false" afterPath="$PROJECT_DIR$/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Content/Levels/MainMenuLevel.umap" beforeDir="false" afterPath="$PROJECT_DIR$/Content/Levels/MainMenuLevel.umap" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Content/MainMenu/Gameplay/MainMenuPlayerController.uasset" beforeDir="false" afterPath="$PROJECT_DIR$/Content/MainMenu/Gameplay/MainMenuPlayerController.uasset" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Content/MainMenu/Widgets/WBP_MainMenu.uasset" beforeDir="false" afterPath="$PROJECT_DIR$/Content/MainMenu/Widgets/WBP_MainMenu.uasset" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Content/StarterContent/HDRI/HDRI_Epic_Courtyard_Daylight.uasset" beforeDir="false" afterPath="$PROJECT_DIR$/Content/StarterContent/HDRI/HDRI_Epic_Courtyard_Daylight.uasset" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Content/StarterContent/Props/MaterialSphere.uasset" beforeDir="false" afterPath="$PROJECT_DIR$/Content/StarterContent/Props/MaterialSphere.uasset" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Source/EndlessVendetta/Characters/BountyHunterCharacter.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/Source/EndlessVendetta/Characters/BountyHunterCharacter.cpp" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -127,7 +134,7 @@
<workItem from="1705756768038" duration="3821000" />
<workItem from="1705856571902" duration="3954000" />
<workItem from="1706036726146" duration="5339000" />
<workItem from="1706101472121" duration="12462000" />
<workItem from="1706101472121" duration="14409000" />
</task>
<servers />
</component>

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dd3739eda1c2496b7c5dc172fff7a588154fdcd821c612726eb87f03056f4d59
size 298322
oid sha256:fb7901ee6817276134b5a654dd76bdffbeec528eb8c6d20e2632dc2109b84a1b
size 299666

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:72268ce2c312e91ebe26900c51cd832b04ab9575f17ebcf77940391fcbb5f1ec
size 13860483
oid sha256:6aa987a4adaa4132382a1af348224f2ba5f444a7b030773bf82793802838143b
size 13860728

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b13376b6f65cf5b384ddd7fed1bf5e9493e3781fdf90fab77ac437d77400f8ea
size 6083

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7e43597b76b2e65851699082975c5d4d329bf07743e22ac19089e90b7c72b0a0
size 81778
oid sha256:e53b5a7db63663ecc7aa6f67855b9933f0a7e19b00d5f828c45e44e44729a0ca
size 138439

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -11,8 +11,6 @@ void ABountyHunterCharacter::SpawnBounties()
UE_LOG(LogTemp, Warning, TEXT("Spawning Bounty..."));
UGameplayStatics::save
CurrentMainBounty = GetWorld()->SpawnActor<AMainBountyClass>(MainBountyClasses[CurrentMainBountyIndex]);
const FAttachmentTransformRules AttachmentTransformRules(EAttachmentRule::SnapToTarget, true);
AttachToComponent(GetRootComponent(), AttachmentTransformRules);

View File

@ -0,0 +1,5 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "MainSaveGameClass.h"

View File

@ -0,0 +1,22 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/SaveGame.h"
#include "MainSaveGameClass.generated.h"
/**
*
*/
UCLASS()
class ENDLESSVENDETTA_API UMainSaveGameClass : public USaveGame
{
GENERATED_BODY()
public:
bool HasCompletedCurrentMainBounty_Save;
int CurrentMainBountyIndex_Save;
};