feat: DS Changes
This commit is contained in:
parent
8d3cdacdb5
commit
185d004e3c
@ -28,28 +28,39 @@ struct REFINEDRDAPI_API FRRDADSModAdapterInventorySlotAccess
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
/* The Inventory Slot Index */
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||
int mInventorySlotIndex = 0;
|
||||
|
||||
/* 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)
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||
FText mInventorySlotDisplayName;
|
||||
|
||||
/* Set how digital storage should interact with this inventory slot */
|
||||
UPROPERTY(EditDefaultsOnly)
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||
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)
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||
EResourceForm mSlotItemForm = EResourceForm::RF_SOLID;
|
||||
|
||||
UPROPERTY(meta=(NoAutoJson = true))
|
||||
UPROPERTY(BlueprintReadOnly, 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))
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta=(EditCondition = mOverrideItemFilter))
|
||||
TArray<TSubclassOf<UFGItemDescriptor>> mItemFilter;
|
||||
|
||||
/* Should check if the inventory slot has an Item Filter set
|
||||
This will override the item class that the player selects with the allowed item class on the slot.
|
||||
Also disables item selection in the UI.
|
||||
*/
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||
bool mCheckSlotItemFilter = false;
|
||||
};
|
||||
|
||||
USTRUCT(BlueprintType)
|
||||
@ -59,18 +70,18 @@ struct REFINEDRDAPI_API FRRDADSModAdapterInventoryAccess
|
||||
|
||||
public:
|
||||
/* A custom name that should be used in the digital storage UI, by default will use "Inventory 1" */
|
||||
UPROPERTY(EditDefaultsOnly)
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||
FText mInventoryDisplayName;
|
||||
|
||||
/* The Inventory Name to search for */
|
||||
UPROPERTY(EditDefaultsOnly)
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||
FName mInventoryName;
|
||||
|
||||
/* The Inventory index to search for in case couldn't find by name */
|
||||
UPROPERTY(EditDefaultsOnly)
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||
int mInventoryIndex = 0;
|
||||
|
||||
/* The Inventory slots to allow access to Digital Storage */
|
||||
UPROPERTY(EditDefaultsOnly)
|
||||
TMap<int, FRRDADSModAdapterInventorySlotAccess> mInventorySlots;
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||
TArray<FRRDADSModAdapterInventorySlotAccess> mInventorySlots;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user