feat: RP Data Assets

This commit is contained in:
2024-10-25 14:45:06 +02:00
parent 90ac5dca32
commit bfd977e1e1
6 changed files with 194 additions and 67 deletions
@@ -5,6 +5,7 @@
#include "CoreMinimal.h"
#include "ItemAmount.h"
#include "RRDADataAssetBase.h"
#include "Enums/RRDARPEnums.h"
#include "RRDACoolerDataAsset.generated.h"
@@ -14,9 +15,27 @@ class REFINEDRDAPI_API URRDACoolerDataAsset : public URRDADataAssetBase
GENERATED_BODY()
public:
/**
* What type of heater this is
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Heater")
ERRDACoolerType mType = ERRDACoolerType::Chemical;
/**
* Fuel item that this heater uses
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cooler")
FItemAmount mItem;
TSubclassOf<UFGItemDescriptor> mItem;
/**
* How much of the item is used
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cooler")
int32 mAmount = 1000;
/**
* Duration for one production
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Boiler")
float mDuration = 6.f;
};