feat: RP asset functions

This commit is contained in:
2024-10-27 19:49:15 +01:00
parent b4e8796e74
commit 86362e2658
9 changed files with 281 additions and 79 deletions

View File

@@ -17,7 +17,7 @@ public:
/**
* Fuel item that this heater uses
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Turbine", meta=( UIMin = "1", UIMax = "2" ))
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Boiler")
int32 mTier = 1;
/**
@@ -37,4 +37,10 @@ public:
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Boiler")
float mDuration = 6.f;
/**
* Curve for the production to Heat
*/
UPROPERTY( EditDefaultsOnly, BlueprintReadOnly, Category = "Boiler" )
UCurveFloat* mBoilerCurve;
};

View File

@@ -18,7 +18,7 @@ public:
/**
* What type of heater this is
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Heater")
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cooler")
ERRDACoolerType mType = ERRDACoolerType::Chemical;
/**

View File

@@ -28,24 +28,24 @@ public:
* What Item should be a Dirt?
* @warning - If 2 DirtDataAssets have the same Item, the game will use the last one which was loaded
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "FicsitFarming")
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Dirt")
TSubclassOf<UFGItemDescriptor> mItem;
/**
* Seeds that can be extracted from this dirt every cycle
*/
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category="FicsitFarming" )
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category="Dirt" )
TArray<FItemAmount> mExtractableSeed;
/**
* Production time for the extraction of seeds
*/
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category="FicsitFarming" )
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category="Dirt" )
float mExtractionCycleTime = 6.0f;
/**
* How much dirt should be consumed?
*/
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category="FicsitFarming" )
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category="Dirt" )
int32 mDirtConsume = 2;
};

View File

@@ -17,24 +17,24 @@ public:
/**
* Fuel item that this heater uses
*/
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "Turbine", meta=( UIMin = "1", UIMax = "5" ) )
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "Generator", meta=( UIMin = "1", UIMax = "5" ) )
int32 mTier = 1;
/**
* Maximum power output of the generator
*/
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "Mp Generator" )
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "Generator" )
float mMaxPowerOutput;
/**
* Maximum RPM of the generator
*/
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "Mp Generator" )
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "Generator" )
int mMaxRPM;
/**
* Curve that defines the power output of the generator
*/
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "Mp Generator" )
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "Generator" )
UCurveFloat* mGeneratorCurve;
};

View File

@@ -39,4 +39,13 @@ public:
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Heater")
float mDuration = 6.f;
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "Heater" )
float mHeat = 1;
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "Heater" )
float mMaxHeatValue = 500;
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "Heater" )
float mMinHeatValue = 20;
};

View File

@@ -19,7 +19,7 @@ public:
/**
* Fuel item that this heater uses
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Turbine", meta=( UIMin = "1", UIMax = "2" ))
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Turbine")
int32 mTier = 1;
/**