diff --git a/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFish.dll b/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFish.dll index fcc7a03..911e05e 100644 Binary files a/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFish.dll and b/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFish.dll differ diff --git a/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFishEditor.dll b/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFishEditor.dll index 9f50551..9790b6c 100644 Binary files a/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFishEditor.dll and b/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFishEditor.dll differ diff --git a/ProjectFish/Content/Gameplay/BagSystem/BP_BagConfigComponent.uasset b/ProjectFish/Content/Gameplay/BagSystem/BP_BagConfigComponent.uasset index 045375f..27c1bc8 100644 Binary files a/ProjectFish/Content/Gameplay/BagSystem/BP_BagConfigComponent.uasset and b/ProjectFish/Content/Gameplay/BagSystem/BP_BagConfigComponent.uasset differ diff --git a/ProjectFish/Content/Gameplay/BagSystem/BagConfig/PlayerBagConfig.uasset b/ProjectFish/Content/Gameplay/BagSystem/BagConfig/PlayerBagConfig.uasset index 4d28ee6..1a0aadd 100644 Binary files a/ProjectFish/Content/Gameplay/BagSystem/BagConfig/PlayerBagConfig.uasset and b/ProjectFish/Content/Gameplay/BagSystem/BagConfig/PlayerBagConfig.uasset differ diff --git a/ProjectFish/Source/ProjectFish/Gameplay/Subsystem/FishingRodConfigSubsystem.cpp b/ProjectFish/Source/ProjectFish/Gameplay/Subsystem/FishingRodConfigSubsystem.cpp index c1ea414..a62bf5d 100644 --- a/ProjectFish/Source/ProjectFish/Gameplay/Subsystem/FishingRodConfigSubsystem.cpp +++ b/ProjectFish/Source/ProjectFish/Gameplay/Subsystem/FishingRodConfigSubsystem.cpp @@ -6,14 +6,15 @@ #include "ProjectFish/DataAsset/BagConfigAsset.h" #include "ProjectFish/DataAsset/BagShapeAsset.h" -void UFishingRodConfigSubsystem::CreateFishingRodInventory(class UBagShapeAsset* FishingRodShape, class UBagShapeAsset* PlayerBagShape) +void UFishingRodConfigSubsystem::CreateFishingRodInventory(class UBagShapeAsset* FishingRodShape, class UBagConfigAsset* PlayerBagConfig) { //鱼竿的技能配置资源 fishingRodInventoryConfig = NewObject(this); fishingRodInventoryConfig->BagShapeAsset = FishingRodShape; //玩家背包的技能配置资源 - playerInventoryConfig = NewObject(this); - playerInventoryConfig->BagShapeAsset = PlayerBagShape; + // playerInventoryConfig = NewObject(this); + // playerInventoryConfig->BagShapeAsset = PlayerBagShape; + playerInventoryConfig = DuplicateObject(PlayerBagConfig, this); } UBagConfigAsset* UFishingRodConfigSubsystem::GetFishingRodInventory() diff --git a/ProjectFish/Source/ProjectFish/Gameplay/Subsystem/FishingRodConfigSubsystem.h b/ProjectFish/Source/ProjectFish/Gameplay/Subsystem/FishingRodConfigSubsystem.h index dc934e8..606de01 100644 --- a/ProjectFish/Source/ProjectFish/Gameplay/Subsystem/FishingRodConfigSubsystem.h +++ b/ProjectFish/Source/ProjectFish/Gameplay/Subsystem/FishingRodConfigSubsystem.h @@ -17,7 +17,7 @@ class PROJECTFISH_API UFishingRodConfigSubsystem : public UGameInstanceSubsystem public: UFUNCTION(BlueprintCallable, Category = "PlayerInventorySubsystem") - void CreateFishingRodInventory(class UBagShapeAsset* FishingRodShape, class UBagShapeAsset* PlayerBagShape); + void CreateFishingRodInventory(class UBagShapeAsset* FishingRodShape, class UBagConfigAsset* PlayerBagConfig); UFUNCTION(BlueprintPure, Category = "PlayerInventorySubsystem") UBagConfigAsset* GetFishingRodInventory();