From c340c59eabb41b57f17190b159b6374178de5dfb Mon Sep 17 00:00:00 2001 From: 997146918 <997146918@qq.com> Date: Thu, 16 Oct 2025 19:24:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B1=9E=E6=80=A7=E5=AD=98?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectFish/Data/PlayerInfoSaveGame.cpp | 4 +++ .../ProjectFish/Data/PlayerInfoSaveGame.h | 32 +++++++++++++++++++ .../Components/FishingRodComponent.cpp | 0 .../Components/FishingRodComponent.h | 0 .../Components/ShipSpringArmComponent.cpp | 0 .../Components/ShipSpringArmComponent.h | 0 6 files changed, 36 insertions(+) create mode 100644 ProjectFish/Source/ProjectFish/Data/PlayerInfoSaveGame.cpp create mode 100644 ProjectFish/Source/ProjectFish/Data/PlayerInfoSaveGame.h rename ProjectFish/Source/ProjectFish/{ => Gameplay}/Components/FishingRodComponent.cpp (100%) rename ProjectFish/Source/ProjectFish/{ => Gameplay}/Components/FishingRodComponent.h (100%) rename ProjectFish/Source/ProjectFish/{ => Gameplay}/Components/ShipSpringArmComponent.cpp (100%) rename ProjectFish/Source/ProjectFish/{ => Gameplay}/Components/ShipSpringArmComponent.h (100%) diff --git a/ProjectFish/Source/ProjectFish/Data/PlayerInfoSaveGame.cpp b/ProjectFish/Source/ProjectFish/Data/PlayerInfoSaveGame.cpp new file mode 100644 index 0000000..60e607b --- /dev/null +++ b/ProjectFish/Source/ProjectFish/Data/PlayerInfoSaveGame.cpp @@ -0,0 +1,4 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "PlayerInfoSaveGame.h" diff --git a/ProjectFish/Source/ProjectFish/Data/PlayerInfoSaveGame.h b/ProjectFish/Source/ProjectFish/Data/PlayerInfoSaveGame.h new file mode 100644 index 0000000..dee836c --- /dev/null +++ b/ProjectFish/Source/ProjectFish/Data/PlayerInfoSaveGame.h @@ -0,0 +1,32 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "GameFramework/SaveGame.h" +#include "ProjectFish/Definations.h" +#include "PlayerInfoSaveGame.generated.h" + +/** + * + */ +UCLASS() +class PROJECTFISH_API UPlayerInfoSaveGame : public USaveGame +{ + GENERATED_BODY() +public: + UPROPERTY(BlueprintReadWrite, meta = (ToolTip = "船只资源")) + FPrimaryAssetId ShipAssetID; + UPROPERTY(BlueprintReadWrite, meta = (ToolTip = "船只等级")) + int32 ShipLevel; + UPROPERTY(BlueprintReadWrite, meta = (ToolTip = "船舱信息")) + FContainerInfo ShipContainer; + + UPROPERTY(BlueprintReadWrite, meta = (ToolTip = "仓库资源")) + FPrimaryAssetId PlayerContainerAssetID; + UPROPERTY(BlueprintReadWrite, meta = (ToolTip = "仓库等级")) + int32 PlayerContainerLevel; + UPROPERTY(BlueprintReadWrite, meta = (ToolTip = "玩家仓库信息")) + FContainerInfo PlayerContainer; + +}; diff --git a/ProjectFish/Source/ProjectFish/Components/FishingRodComponent.cpp b/ProjectFish/Source/ProjectFish/Gameplay/Components/FishingRodComponent.cpp similarity index 100% rename from ProjectFish/Source/ProjectFish/Components/FishingRodComponent.cpp rename to ProjectFish/Source/ProjectFish/Gameplay/Components/FishingRodComponent.cpp diff --git a/ProjectFish/Source/ProjectFish/Components/FishingRodComponent.h b/ProjectFish/Source/ProjectFish/Gameplay/Components/FishingRodComponent.h similarity index 100% rename from ProjectFish/Source/ProjectFish/Components/FishingRodComponent.h rename to ProjectFish/Source/ProjectFish/Gameplay/Components/FishingRodComponent.h diff --git a/ProjectFish/Source/ProjectFish/Components/ShipSpringArmComponent.cpp b/ProjectFish/Source/ProjectFish/Gameplay/Components/ShipSpringArmComponent.cpp similarity index 100% rename from ProjectFish/Source/ProjectFish/Components/ShipSpringArmComponent.cpp rename to ProjectFish/Source/ProjectFish/Gameplay/Components/ShipSpringArmComponent.cpp diff --git a/ProjectFish/Source/ProjectFish/Components/ShipSpringArmComponent.h b/ProjectFish/Source/ProjectFish/Gameplay/Components/ShipSpringArmComponent.h similarity index 100% rename from ProjectFish/Source/ProjectFish/Components/ShipSpringArmComponent.h rename to ProjectFish/Source/ProjectFish/Gameplay/Components/ShipSpringArmComponent.h