KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
ATeleportTrigger.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"
7#include "GameFramework/Actor.h"
8#include "ATeleportTrigger.generated.h"
9
10UCLASS()
11class ONEPIECE_API ATeleportTrigger : public AActor, public ICompassTargetInterface
12{
13 GENERATED_BODY()
14
15public:
17
18protected:
19 virtual void BeginPlay() override;
20
21public:
22 virtual void Tick(float DeltaTime) override;
23
24 UFUNCTION(BlueprintNativeEvent, Category = "Interaction")
25 void OnActivate();
26
27 virtual void OnActivate_Implementation();
28
29public:
30 UPROPERTY(EditAnywhere, BlueprintReadWrite)
31 int32 DoorIndex = 0;
32
33protected:
35 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Trigger")
36 TObjectPtr<class UBoxComponent> TriggerBox;
37
39 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Teleport")
40 TObjectPtr<class ATeleportOut> TeleportOut;
41
43 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Trigger")
44 bool bIsOneShot;
45
47 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Trigger")
48 bool bIsTriggered;
49
51 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Debug")
52 bool bShowDebugBox;
53
55 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Debug")
56 FColor DebugBoxColor;
57
58protected:
60 UFUNCTION()
61 void OnTriggerBeginOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor,
62 UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
63
64protected:
65 // Compass Interface
66 virtual void SetCompassMarkerInto(ECompassMarkerType InMarkerType) override;
67};
ECompassMarkerType