Compare commits
No commits in common. "25e85ebf6febb71363e4fb50afad99510a34daf9" and "46494db560f15b047afef481405631c7af2cdc30" have entirely different histories.
25e85ebf6f
...
46494db560
4 changed files with 4 additions and 46 deletions
Binary file not shown.
Binary file not shown.
|
|
@ -1,26 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"Name": "1",
|
|
||||||
"ID": 0,
|
|
||||||
"MealName": "",
|
|
||||||
"TargetHeat": 0.5,
|
|
||||||
"HeatHalfRange": 0.1,
|
|
||||||
"TotalCookingTimeMS": 5000.0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name": "2",
|
|
||||||
"ID": 1,
|
|
||||||
"MealName": "Lasagna",
|
|
||||||
"TargetHeat": 0.5,
|
|
||||||
"HeatHalfRange": 0.1,
|
|
||||||
"TotalCookingTimeMS": 5000.0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name": "3",
|
|
||||||
"ID": 2,
|
|
||||||
"MealName": "Alfredo",
|
|
||||||
"TargetHeat": 0.5,
|
|
||||||
"HeatHalfRange": 0.1,
|
|
||||||
"TotalCookingTimeMS": 5000.0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
@ -10,31 +10,17 @@
|
||||||
|
|
||||||
#include "OvenPawn.generated.h"
|
#include "OvenPawn.generated.h"
|
||||||
|
|
||||||
// todo(stefan): Revisit this meal struct, not all fields are needed/make sense. Good enough for now.
|
|
||||||
USTRUCT()
|
USTRUCT()
|
||||||
struct FMeal : public FTableRowBase
|
struct FMeal : public FTableRowBase
|
||||||
{
|
{
|
||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Meal", meta=(Tooltip = "The ID of the meal recipe"))
|
|
||||||
int32 ID{-1};
|
int32 ID{-1};
|
||||||
|
FString MealName;
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Meal", meta=(Tooltip = "The name of the meal recipe"))
|
double TargetHeat{0.0};
|
||||||
FText MealName = FText::FromString("DefaultMealName");
|
double HeatHalfRange{0.0};
|
||||||
|
double TotalCookingTimeMS{0.0};
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Meal",
|
|
||||||
meta=(Tooltip = "The target value of 'heat' for the perfect cooking temperature"))
|
|
||||||
double TargetHeat{0.5};
|
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Meal",
|
|
||||||
meta=(Tooltip =
|
|
||||||
"The half-range of the target value of the cooking temperature, e.g. if @param TargetHeat is 0.5 and @param HalfHeatRange is 0.1, anything between 0.4 and 0.6 is perfect heat"
|
|
||||||
))
|
|
||||||
double HeatHalfRange{0.1};
|
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Meal", meta=(Tooltip = "The total cooking time for this meal recipe, in milliseconds"))
|
|
||||||
double TotalCookingTimeMS{5000.0};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct FCookingStats
|
struct FCookingStats
|
||||||
|
|
@ -143,8 +129,6 @@ private:
|
||||||
TArray<TObjectPtr<AActor>> CookstoveObjects;
|
TArray<TObjectPtr<AActor>> CookstoveObjects;
|
||||||
TArray<FCookstove> Cookstoves;
|
TArray<FCookstove> Cookstoves;
|
||||||
|
|
||||||
public:
|
|
||||||
// ReSharper disable once CppUE4ProbableMemoryIssuesWithUObject
|
// ReSharper disable once CppUE4ProbableMemoryIssuesWithUObject
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Oven Settings")
|
|
||||||
TObjectPtr<UDataTable> RecipesDataTable;
|
TObjectPtr<UDataTable> RecipesDataTable;
|
||||||
};
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue