From 26b49e2e9dd476f69a60b20820f3cc81a6536546 Mon Sep 17 00:00:00 2001 From: eyakm1 Date: Sun, 18 Jun 2023 01:00:23 +0300 Subject: [PATCH] Selected troopers savegame class implemented --- Content/MainMenu/MainMenuLevel.umap | Bin 32994 -> 33270 bytes .../TurnBasedTutorial/BattleMode/BattleUI.cpp | 2 +- .../ManageSquad/SelectedTrooperSaveGame.cpp | 10 ++++++++ .../ManageSquad/SelectedTrooperSaveGame.h | 22 ++++++++++++++++++ 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 Source/TurnBasedTutorial/ManageSquad/SelectedTrooperSaveGame.cpp create mode 100644 Source/TurnBasedTutorial/ManageSquad/SelectedTrooperSaveGame.h diff --git a/Content/MainMenu/MainMenuLevel.umap b/Content/MainMenu/MainMenuLevel.umap index c6ab3b19f26f4874caeebc35db7add8f5680b03b..2756307b8f39353a28db73e7ebb9c3d78e13459f 100644 GIT binary patch delta 946 zcmaFV$n>q5X~G#MmXL|(G6V!=8XrA7eaUxoUtZ|vw}<#AyD=7teQIPt0sn!3C1mqC z#touCZIcxxwI(;jvP@nlZoznBvcH7$WGx95rjwzQ10>Rz^us1IChAZ2mlU7;PeOs| z4UB8floSq@k(W}Rd{0tX(t9EG8?#P=#9H0rfd7Btn1|Bmr?2(Dx-ktKQgXZk}juFV1afplfKPXJnygWW4!yke%Y> z#U&CluoMA`lPeY`-MX`rJ@y)%a@?|f%K6C`BV;E}5EqpWeBtwcTKo;ILUMVclV_><@Hl0yD=7t-D_Y#0sn#EL(t}P zj2lFO+9oSXYE24fnY>Qif@w?e1%P?@03A_rftH*NQ(y^<2lD1BITfbcaFJhfI+Oe41sLrn8)iyQ7Ld`J zTqQ3e#0(5T4j>kQ24r3(%!E_&HcWMJ-hy-3i*fLun~9|Mi#u|1$%Xf?y?sz~&q^ZkEaH_Hvt_ zYi;A5yj@>za;zc8W=TsXW)NrdQX6}5ZUakQBSSqSOFd)r&F_Ql6en*lm5>410P+C{ zaII4I%S!(0u~123lFxO)>yr~p!zSyNN=!aq$|LG@Ievwz^AEp$K5A-Y ZtdpF~Sr)oEuS|tyvPHbW=1Em4>;MfG%#Hv6 diff --git a/Source/TurnBasedTutorial/BattleMode/BattleUI.cpp b/Source/TurnBasedTutorial/BattleMode/BattleUI.cpp index ef28c7b..b8ca44b 100644 --- a/Source/TurnBasedTutorial/BattleMode/BattleUI.cpp +++ b/Source/TurnBasedTutorial/BattleMode/BattleUI.cpp @@ -1,8 +1,8 @@ // Fill out your copyright notice in the Description page of Project Settings. +#include "BattleUI.h" #include "Components/Button.h" #include "Components/TextBlock.h" -#include "BattleUI.h" #include "BattlePlayerController.h" #include "BattlePlayerState.h" diff --git a/Source/TurnBasedTutorial/ManageSquad/SelectedTrooperSaveGame.cpp b/Source/TurnBasedTutorial/ManageSquad/SelectedTrooperSaveGame.cpp new file mode 100644 index 0000000..4324d33 --- /dev/null +++ b/Source/TurnBasedTutorial/ManageSquad/SelectedTrooperSaveGame.cpp @@ -0,0 +1,10 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "SelectedTrooperSaveGame.h" + +USelectedTrooperSaveGame::USelectedTrooperSaveGame(): Super() +{ + +} + diff --git a/Source/TurnBasedTutorial/ManageSquad/SelectedTrooperSaveGame.h b/Source/TurnBasedTutorial/ManageSquad/SelectedTrooperSaveGame.h new file mode 100644 index 0000000..aa7410e --- /dev/null +++ b/Source/TurnBasedTutorial/ManageSquad/SelectedTrooperSaveGame.h @@ -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 "SelectedTrooperSaveGame.generated.h" + +/** + * + */ +UCLASS() +class TURNBASEDTUTORIAL_API USelectedTrooperSaveGame : public USaveGame +{ + GENERATED_BODY() + +public: + UPROPERTY(EditAnywhere, Category=Basic) + TArray SelectedTroopers; + + USelectedTrooperSaveGame(); +};