feat: More options on DS assets
This commit is contained in:
parent
36ef9be1bf
commit
d4167cfd88
@ -17,11 +17,11 @@ class REFINEDRDAPI_API URRDADataAssetDSAdapterCovers : public URRDADataAssetBase
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/* The building class this adapter cover belongs to */
|
/* The building class these adapter covers belongs to */
|
||||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category="AdapterCovers")
|
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category="AdapterCovers")
|
||||||
TSubclassOf<AFGBuildableFactory> mBuildableClass;
|
TSubclassOf<AFGBuildableFactory> mBuildableClass;
|
||||||
|
|
||||||
/* The offsets to place the cover mesh from the buildings origin */
|
/* An array of covers to place on the buildable connections */
|
||||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category="AdapterCovers")
|
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category="AdapterCovers")
|
||||||
TArray<FRRDADSAdapterOffset> mConnectionOffsets;
|
TArray<FRRDADSAdapterCoverDetails> mCovers;
|
||||||
};
|
};
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
#include "CoreMinimal.h"
|
#include "CoreMinimal.h"
|
||||||
|
|
||||||
UENUM(BlueprintType)
|
UENUM(BlueprintType)
|
||||||
enum class ERRDADSInventorySlotAccess : uint8
|
enum class ERRDADSInventorySlotAccessInteraction : uint8
|
||||||
{
|
{
|
||||||
None,
|
Ignore,
|
||||||
ImportToNetworkFromSlot,
|
ImportToNetworkFromSlot,
|
||||||
ExportFromNetworkToSlot,
|
ExportFromNetworkToSlot,
|
||||||
};
|
};
|
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
#include "Enums/RRDADSEnums.h"
|
#include "Enums/RRDADSEnums.h"
|
||||||
#include "Math/Transform.h"
|
#include "Math/Transform.h"
|
||||||
|
#include "Resources/FGItemDescriptor.h"
|
||||||
#include "RRDADSStructs.generated.h"
|
#include "RRDADSStructs.generated.h"
|
||||||
|
|
||||||
|
|
||||||
USTRUCT(BlueprintType)
|
USTRUCT(BlueprintType)
|
||||||
struct REFINEDRDAPI_API FRRDADSAdapterOffset
|
struct REFINEDRDAPI_API FRRDADSAdapterCoverDetails
|
||||||
{
|
{
|
||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
@ -20,12 +21,49 @@ public:
|
|||||||
bool bIsConveyor = true;
|
bool bIsConveyor = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
USTRUCT(BlueprintType)
|
||||||
|
struct REFINEDRDAPI_API FRRDADSModAdapterInventorySlotAccess
|
||||||
|
{
|
||||||
|
GENERATED_BODY()
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
/* A custom display name for the inventory slot that will be displayed in the digital storage UI.
|
||||||
|
This makes it easier for players to understand what this slot is used for.
|
||||||
|
*/
|
||||||
|
UPROPERTY(EditDefaultsOnly)
|
||||||
|
FText mInventorySlotDisplayName;
|
||||||
|
|
||||||
|
/* Set how digital storage should interact with this inventory slot */
|
||||||
|
UPROPERTY(EditDefaultsOnly)
|
||||||
|
ERRDADSInventorySlotAccessInteraction mInteraction = ERRDADSInventorySlotAccessInteraction::Ignore;
|
||||||
|
|
||||||
|
/* Select the item resource form that will be displayed in the digital storage UI
|
||||||
|
This will only display items of this form when players search for an item.
|
||||||
|
*/
|
||||||
|
UPROPERTY(EditDefaultsOnly)
|
||||||
|
EResourceForm mSlotItemForm = EResourceForm::RF_SOLID;
|
||||||
|
|
||||||
|
UPROPERTY( meta=(NoAutoJson = true) )
|
||||||
|
bool mOverrideItemFilter = false;
|
||||||
|
|
||||||
|
/* Limit the list of items this slot should contain, only items in this list will be displayed on the digital storage UI */
|
||||||
|
UPROPERTY(EditDefaultsOnly, meta=(EditCondition = mOverrideItemFilter))
|
||||||
|
TArray<TSubclassOf<UFGItemDescriptor>> mItemFilter;
|
||||||
|
};
|
||||||
|
|
||||||
USTRUCT(BlueprintType)
|
USTRUCT(BlueprintType)
|
||||||
struct REFINEDRDAPI_API FRRDADSModAdapterInventoryAccess
|
struct REFINEDRDAPI_API FRRDADSModAdapterInventoryAccess
|
||||||
{
|
{
|
||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
/* A custom name that should be used in the digital storage UI, by default will use "Inventory 1" */
|
||||||
|
UPROPERTY(EditDefaultsOnly)
|
||||||
|
FText mInventoryDisplayName;
|
||||||
|
|
||||||
/* The Inventory Name to search for */
|
/* The Inventory Name to search for */
|
||||||
UPROPERTY(EditDefaultsOnly)
|
UPROPERTY(EditDefaultsOnly)
|
||||||
FName mInventoryName;
|
FName mInventoryName;
|
||||||
@ -36,5 +74,5 @@ public:
|
|||||||
|
|
||||||
/* The Inventory slots to allow access to Digital Storage */
|
/* The Inventory slots to allow access to Digital Storage */
|
||||||
UPROPERTY(EditDefaultsOnly)
|
UPROPERTY(EditDefaultsOnly)
|
||||||
TMap<int, ERRDADSInventorySlotAccess> mInventorySlots;
|
TMap<int, FRRDADSModAdapterInventorySlotAccess> mInventorySlots;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user