Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "CoreMinimal.h"
- #include "Engine/DataTable.h"
- #include "WTInventoryEnumLibrary.h"
- #include "Runtime/CoreUObject/Public/Templates/SubclassOf.h"
- #include "WTInventoryStructLibrary.generated.h"
- class WTBaseItem;
- //class APawn;
- USTRUCT(BlueprintType)
- struct FCraftingComponent
- {
- GENERATED_BODY()
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- int Amount = 0;
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- FString ComponentItem = FString(TEXT("-"));
- };
- USTRUCT(BlueprintType)
- struct FCraftingRecipy : public FTableRowBase
- {
- GENERATED_BODY()
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- FString CraftedItem = FString(TEXT("-"));
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- TArray<FCraftingComponent> Components;
- };
- USTRUCT(BlueprintType)
- struct FWTItemData : public FTableRowBase
- {
- GENERATED_BODY()
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- TSubclassOf<class WTBaseItem> WorldClass;
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- FName Name = FName(TEXT("Item"));
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- FName DataName = FName(TEXT("Item"));
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- TObjectPtr<UTexture2D> Texture;
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- FString Description = FString(TEXT(""));
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- EWTItemType Type = EWTItemType::Material;
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- EWTItemRarity Rarity = EWTItemRarity::Common;
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- bool Stackable = true;
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- bool Usable = true;
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- int MaxStack = 5;
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- int MarketValue = 1;
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- TObjectPtr<USoundWave> UseSound;
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- TObjectPtr<UStaticMesh> WorldMesh;
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- FVector WorldScale = FVector(1,1,1);
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- float InteractRadius = 1.0;
- UPROPERTY(EditAnywhere, BlueprintReadOnly)
- FName EquipmentDataRowName = FName(TEXT(""));
- };
Advertisement
Add Comment
Please, Sign In to add comment