#include <EventGate.h>
|
| virtual void | BeginPlay () override |
| |
| virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
| |
| virtual void | OnBeginInteraction (const AActor *Caller) override |
| |
| virtual void | OnEndInteraction (const AActor *Caller) override |
| |
| void | HandleBoxBeginOverlap (UPrimitiveComponent *OverlappedComp, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult &SweepResult) |
| |
| void | HandleBoxEndOverlap (UPrimitiveComponent *OverlappedComp, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex) |
| |
| void | OnBeginInteraction_Internal (const AActor *Caller) |
| |
| void | OnEndInteraction_Internal (const AActor *Caller) |
| |
| void | OnGateOverlapEnter (AActor *OtherActor, UPrimitiveComponent *OtherComp) |
| |
| void | OnGateOverlapExit (AActor *OtherActor, UPrimitiveComponent *OtherComp) |
| |
◆ AEventGate()
| AEventGate::AEventGate |
( |
| ) |
|
14{
15 BoxComponent = CreateDefaultSubobject<UBoxComponent>(TEXT(
"BoxComponent"));
16 BoxComponent->SetCollisionEnabled(ECollisionEnabled::QueryOnly);
17
18 EventListenerComponent = CreateDefaultSubobject<UStageEventListenerComponent>(TEXT(
"EventListenerComponent"));
19 GateEventSender = CreateDefaultSubobject<UStageEventSenderComponent>(TEXT(
"GateEventSender"));
20
21
22
23
25 BoxComponent->SetCollisionResponseToAllChannels(ECR_Ignore);
26 BoxComponent->SetCollisionResponseToChannel(ECC_Pawn, ECR_Overlap);
27}
#define CCHANNEL_ENEMYACTION
Definition CK_Collision.h:8
TObjectPtr< UStageEventListenerComponent > EventListenerComponent
Definition EventGate.h:89
TObjectPtr< UBoxComponent > BoxComponent
Definition EventGate.h:95
TObjectPtr< UStageEventSenderComponent > GateEventSender
Definition EventGate.h:92
◆ BeginPlay()
| void AEventGate::BeginPlay |
( |
| ) |
|
|
overrideprotectedvirtual |
AInteractableActor(으)로부터 재구현되었습니다.
93{
94 Super::BeginPlay();
95
97 {
100 }
101 else
102 {
104 }
105
107 {
109 }
110}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:40
#define NAMEOF(Type)
Definition CK_UE.h:30
void HandleBoxBeginOverlap(UPrimitiveComponent *OverlappedComp, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult &SweepResult)
Definition EventGate.cpp:36
FName StageEventID_DEPRECATED
Definition EventGate.h:99
void HandleBoxEndOverlap(UPrimitiveComponent *OverlappedComp, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex)
Definition EventGate.cpp:57
◆ EndPlay()
| void AEventGate::EndPlay |
( |
const EEndPlayReason::Type |
EndPlayReason | ) |
|
|
overrideprotectedvirtual |
AInteractableActor(으)로부터 재구현되었습니다.
114{
116 {
119 }
120 else
121 {
123 }
124
125 Super::EndPlay(EndPlayReason);
126}
◆ GetEventListenerComponent()
| virtual UStageEventListenerComponent * AEventGate::GetEventListenerComponent |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetId()
| FName AEventGate::GetId |
( |
| ) |
const |
◆ GetStageEvent()
| virtual EStageEvent AEventGate::GetStageEvent |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ HandleBoxBeginOverlap()
| void AEventGate::HandleBoxBeginOverlap |
( |
UPrimitiveComponent * |
OverlappedComp, |
|
|
AActor * |
OtherActor, |
|
|
UPrimitiveComponent * |
OtherComp, |
|
|
int32 |
OtherBodyIndex, |
|
|
bool |
bFromSweep, |
|
|
const FHitResult & |
SweepResult |
|
) |
| |
|
protected |
37{
39 {
40 return;
41 }
42
43
45
46
48 {
49 return;
50 }
51
52
54}
void TryFireGateEvent(AActor *OtherActor)
Definition EventGate.cpp:81
bool bIgnoreOverlap
Definition EventGate.h:83
void OnGateOverlapEnter(AActor *OtherActor, UPrimitiveComponent *OtherComp)
EGateDetectionTiming DetectionTiming
Definition EventGate.h:86
◆ HandleBoxEndOverlap()
| void AEventGate::HandleBoxEndOverlap |
( |
UPrimitiveComponent * |
OverlappedComp, |
|
|
AActor * |
OtherActor, |
|
|
UPrimitiveComponent * |
OtherComp, |
|
|
int32 |
OtherBodyIndex |
|
) |
| |
|
protected |
58{
60 {
61 return;
62 }
63
64
66
67
69 {
71 return;
72 }
73
74
76}
void OnGateOverlapExit(AActor *OtherActor, UPrimitiveComponent *OtherComp)
void ForceStopInteraction() const
Definition InteractableActor.cpp:18
◆ OnBeginInteraction()
| void AEventGate::OnBeginInteraction |
( |
const AActor * |
Caller | ) |
|
|
overrideprotectedvirtual |
AInteractableActor(으)로부터 재구현되었습니다.
130{
131 Super::OnBeginInteraction(Caller);
133
135 {
136 LOG_WARNING(LogCKLevel,
"%s 를 찾지 못해 이벤트 디스패치를 건너뜁니다.",
NAMEOF(UStageEventSenderComponent));
137 return;
138 }
139
141 {
142 LOG_WARNING(LogCK,
"%s의 스테이지 이벤트 ID가 설정되어 있지 않습니다. ", *GetName());
143 return;
144 }
145
147}
#define LOG_WARNING(Category, Format,...)
Definition CK_UE.h:39
void OnBeginInteraction_Internal(const AActor *Caller)
◆ OnBeginInteraction_Internal()
| void AEventGate::OnBeginInteraction_Internal |
( |
const AActor * |
Caller | ) |
|
|
protected |
◆ OnEndInteraction()
| void AEventGate::OnEndInteraction |
( |
const AActor * |
Caller | ) |
|
|
overrideprotectedvirtual |
AInteractableActor(으)로부터 재구현되었습니다.
151{
152 Super::OnEndInteraction(Caller);
154}
void OnEndInteraction_Internal(const AActor *Caller)
◆ OnEndInteraction_Internal()
| void AEventGate::OnEndInteraction_Internal |
( |
const AActor * |
Caller | ) |
|
|
protected |
◆ OnGateOverlapEnter()
| void AEventGate::OnGateOverlapEnter |
( |
AActor * |
OtherActor, |
|
|
UPrimitiveComponent * |
OtherComp |
|
) |
| |
|
protected |
◆ OnGateOverlapExit()
| void AEventGate::OnGateOverlapExit |
( |
AActor * |
OtherActor, |
|
|
UPrimitiveComponent * |
OtherComp |
|
) |
| |
|
protected |
◆ TryFireGateEvent()
| void AEventGate::TryFireGateEvent |
( |
AActor * |
OtherActor | ) |
|
|
private |
82{
84 {
85 return;
86 }
87
88 LOG_WARNING(LogCK,
"상호작용에 실패했습니다. (%s)", *GetName());
89}
virtual UInteractionChannel * Interact(AActor *Caller) override
Definition InteractableActor.cpp:43
◆ bIgnoreOverlap
| bool AEventGate::bIgnoreOverlap = false |
|
protected |
◆ BoxComponent
| TObjectPtr<UBoxComponent> AEventGate::BoxComponent |
|
protected |
◆ DetectionTiming
◆ EventListenerComponent
| TObjectPtr<UStageEventListenerComponent> AEventGate::EventListenerComponent |
|
protected |
◆ GateEventSender
| TObjectPtr<UStageEventSenderComponent> AEventGate::GateEventSender |
|
protected |
◆ StageEventID_DEPRECATED
| FName AEventGate::StageEventID_DEPRECATED = NAME_None |
|
private |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: