第一次提交
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Blueprint/DragDropOperation.h"
|
||||
#include "ItemDataDragDropOperation.generated.h"
|
||||
|
||||
class UItemData;
|
||||
class UItemStackContainer;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
UCLASS()
|
||||
class PHYINVENTORY_API UItemDataDragDropOperation : public UDragDropOperation
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
protected:
|
||||
TWeakObjectPtr<UItemStackContainer> TargetItemStackView;
|
||||
TWeakObjectPtr<UItemData> TargetItemData;
|
||||
int32 TargetItemIndex = INDEX_NONE;
|
||||
TWeakObjectPtr<UItemStackContainer> SourceItemStackView;
|
||||
TWeakObjectPtr<UItemData> SourceItemData;
|
||||
int32 SourceItemIndex = INDEX_NONE;
|
||||
public:
|
||||
UItemStackContainer* GetTargetItemStackView() const;
|
||||
void SetTargetItemStackView(UItemStackContainer* InItemStackContainer);
|
||||
|
||||
UItemData* GetTargetItemData() const;
|
||||
void SetTargetItemData(UItemData* InItemData);
|
||||
|
||||
int32 GetTargetItemIndex() const;
|
||||
void SetTargetItemIndex(int32 InTargetItemIndex);
|
||||
|
||||
UItemStackContainer* GetSourceItemStackView() const;
|
||||
void SetSourceItemStackView(UItemStackContainer* InItemStackContainer);
|
||||
|
||||
UItemData* GetSourceItemData() const;
|
||||
void SetSourceItemData(UItemData* InItemData);
|
||||
|
||||
int32 GwtSourceItemIndex() const;
|
||||
void SetSourceItemIndex(int32 InSourceItemIndex);
|
||||
};
|
||||
Reference in New Issue
Block a user