KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
AContactTrigger.h
이 파일의 문서화 페이지로 가기
1// Copyright (c) 2025 Doppleddiggong. All rights reserved. Unauthorized copying, modification, or distribution of this file, via any medium is strictly prohibited. Proprietary and confidential.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "GameFramework/Actor.h"
7#include "ALingoGameState.h"
9#include "AContactTrigger.generated.h"
10
16UCLASS()
17class ONEPIECE_API AContactTrigger : public AActor, public ICompassTargetInterface
18{
19 GENERATED_BODY()
20
21public:
23
24protected:
25 virtual void BeginPlay() override;
26
27public:
28 virtual void Tick(float DeltaTime) override;
29
30protected:
32 UFUNCTION()
33 void OnTriggerBeginOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor,
34 UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
35
37 UFUNCTION(Server, Reliable)
38 void ServerRPC_OnTrigger(AActor* TriggeringActor);
39
40private:
41 void OnTriggerScenario(EQuestType InQuestType);
42
43 UFUNCTION()
44 void OnReadResponseScenario(struct FResponseReadScenario& ResponseData, bool bWasSuccessful);
45
46 UFUNCTION()
47 void OnListenResponseScenario(struct FResponseListenScenario& ResponseData, bool bWasSuccessful);
48
49protected:
51 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Trigger")
52 TObjectPtr<class UBoxComponent> TriggerBox;
53
54 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Trigger")
56
58 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Trigger")
59 FString EventMessage;
60
62 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Trigger")
63 bool bIsTriggered;
64
66 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Debug")
67 bool bShowDebugBox;
68
70 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Debug")
71 FColor DebugBoxColor;
72
73private:
74 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Voice", meta=(AllowPrivateAccess="true"))
75 TObjectPtr<class UVoiceConversationSystem> VoiceConversationSystem;
76
77protected:
78 // Compass Interface
79 virtual void SetCompassMarkerInto(ECompassMarkerType InMarkerType) override;
80};
EQuestType
ECompassMarkerType
플레이어 접촉 시 이벤트 메시지를 전송하는 트리거 액터