diff --git a/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFish-0001.dll b/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFish-0001.dll index 0ea917d..739c7dc 100644 Binary files a/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFish-0001.dll and b/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFish-0001.dll differ diff --git a/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFish.dll b/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFish.dll index 02c3221..6feaeda 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-0001.dll b/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFishEditor-0001.dll index 08d8689..ea3a3cc 100644 Binary files a/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFishEditor-0001.dll and b/ProjectFish/Binaries/Win64/UnrealEditor-ProjectFishEditor-0001.dll differ diff --git a/ProjectFish/Content/Gameplay/MapSystem/BP_MapNode.uasset b/ProjectFish/Content/Gameplay/MapSystem/BP_MapNode.uasset index af5dfa8..9af3b5c 100644 Binary files a/ProjectFish/Content/Gameplay/MapSystem/BP_MapNode.uasset and b/ProjectFish/Content/Gameplay/MapSystem/BP_MapNode.uasset differ diff --git a/ProjectFish/Source/ProjectFish/DataAsset/MapConfigAsset.h b/ProjectFish/Source/ProjectFish/DataAsset/MapConfigAsset.h index fc02574..6e4d628 100644 --- a/ProjectFish/Source/ProjectFish/DataAsset/MapConfigAsset.h +++ b/ProjectFish/Source/ProjectFish/DataAsset/MapConfigAsset.h @@ -28,4 +28,7 @@ public: UPROPERTY(EditAnywhere, BlueprintReadWrite, Category= MapConfig, meta = (ToolTip = "节点垂直间距")) int32 NodeOffsetY = 300; + + UPROPERTY(EditAnywhere, BlueprintReadWrite, Category= MapConfig, meta = (ToolTip = "战斗节点名称")) + FName BattleMapName = FName(TEXT("Dabaza")); }; diff --git a/ProjectFish/Source/ProjectFish/Gameplay/MapSystem/FishingMapSystem.cpp b/ProjectFish/Source/ProjectFish/Gameplay/MapSystem/FishingMapSystem.cpp index fd09070..0251882 100644 --- a/ProjectFish/Source/ProjectFish/Gameplay/MapSystem/FishingMapSystem.cpp +++ b/ProjectFish/Source/ProjectFish/Gameplay/MapSystem/FishingMapSystem.cpp @@ -1,5 +1,6 @@ #include "FishingMapSystem.h" #include "Engine/Engine.h" +#include "Kismet/GameplayStatics.h" #include "ProjectFish/DataAsset/MapConfigAsset.h" UFishingMapNode::UFishingMapNode() @@ -87,6 +88,19 @@ void UFishingMapSystem::MoveToNode(FGuid NodeID) OnNodeStateChange.Broadcast(node->NodeID, EMapNodeState::Immovable); } } + //根据节点类型 触发不同的事件 + UFishingMapNode* node = GetNode(NodeID); + switch (node->NodeType) + { + case EMapNodeType::Battle: + UGameplayStatics::OpenLevel(this, MapConfig->BattleMapName); + break; + case EMapNodeType::Boss: + UGameplayStatics::OpenLevel(this, MapConfig->BattleMapName); + break; + case EMapNodeType::Skill: + break;; + } }