SaveGame / LevelData / bCanChain

This commit is contained in:
2023-07-22 21:12:41 +02:00
parent 224154e100
commit d2dcb8093d
10 changed files with 24 additions and 21 deletions

Binary file not shown.

View File

@@ -23,6 +23,9 @@ public:
UPROPERTY(BlueprintReadWrite, EditAnywhere)
int32 HitsRemaining = 1;
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
bool CanChain = false;
UPROPERTY(BlueprintReadOnly)
int32 Index = 0;

View File

@@ -5,9 +5,11 @@
#include "CoreMinimal.h"
#include "FireworkBase.h"
#include "BuildingBlock.h"
#include "LevelTemplate.h"
#include "Engine/Texture.h"
#include "Engine/World.h"
#include "Engine/DataTable.h"
#include "UObject/SoftObjectPtr.h"
#include "CustomDataTypes.generated.h"
UENUM(BlueprintType)
@@ -35,6 +37,25 @@ enum Firework
Lighter UMETA(DisplayName = "Lighter"),
};
// LevelData
USTRUCT(BlueprintType)
struct FIREWORKDUELS_API FLevelData
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite)
TSoftClassPtr<ALevelTemplate> LevelTemplateClass;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool IsUnlocked = false;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
int32 ObtainedStars = 0;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
float BestTime = 999.f;
};
// Firework data
USTRUCT(BlueprintType)
struct FIREWORKDUELS_API FFireworkData : public FTableRowBase
@@ -70,24 +91,3 @@ struct FIREWORKDUELS_API FInventory
UPROPERTY(EditAnywhere, BlueprintReadWrite)
TArray<FFireworkData> Items;
};
// Level Data
USTRUCT(BlueprintType)
struct FIREWORKDUELS_API FLevelData : public FTableRowBase
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite)
TSoftObjectPtr<UWorld> Level;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
TSoftObjectPtr<UTexture2D> LevelThumbnail;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
FText LevelName;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
FText Description;
};