40 lines
818 B
C++
40 lines
818 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Engine/DataTable.h"
|
|
#include "CraftingInfo.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
USTRUCT(BlueprintType)
|
|
struct FCraftingInfo : public FTableRowBase
|
|
{
|
|
GENERATED_BODY();
|
|
|
|
public:
|
|
|
|
//unique ID of item that is being used to create the item
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
|
FName ComponentID;
|
|
|
|
//unique ID of the item that gets created
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
|
FName ProductID;
|
|
|
|
//do we want to destroy the component?
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
|
bool bDestroyItemA;
|
|
|
|
//
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
|
bool bDestroyItemB;
|
|
|
|
bool operator==(const FCraftingInfo& OtherItem) const {
|
|
return ComponentID == OtherItem.ComponentID;
|
|
}
|
|
|
|
|
|
};
|