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