#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 |
( |
| ) |
|
15{
16 BoxComponent = CreateDefaultSubobject<UBoxComponent>(TEXT(
"BoxComponent"));
17 BoxComponent->SetCollisionEnabled(ECollisionEnabled::QueryOnly);
18
19 EventListenerComponent = CreateDefaultSubobject<UStageEventListenerComponent>(TEXT(
"EventListenerComponent"));
20 GateEventSender = CreateDefaultSubobject<UStageEventSenderComponent>(TEXT(
"GateEventSender"));
21
22
23
24
26 BoxComponent->SetCollisionResponseToAllChannels(ECR_Ignore);
27 BoxComponent->SetCollisionResponseToChannel(ECC_Pawn, ECR_Overlap);
28}
#define CCHANNEL_ENEMYACTION
Definition CK_Collision.h:8
TObjectPtr< UStageEventListenerComponent > EventListenerComponent
Definition EventGate.h:84
TObjectPtr< UBoxComponent > BoxComponent
Definition EventGate.h:90
TObjectPtr< UStageEventSenderComponent > GateEventSender
Definition EventGate.h:87
다음을 참조함 : BoxComponent, CCHANNEL_ENEMYACTION, EventListenerComponent, GateEventSender.
◆ BeginPlay()
| void AEventGate::BeginPlay |
( |
| ) |
|
|
overrideprotectedvirtual |
AInteractableActor(으)로부터 재구현되었습니다.
94{
95 Super::BeginPlay();
96
98 {
101 }
102 else
103 {
105 }
106
108 {
110 }
111}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:41
#define NAMEOF(Type)
Definition CK_UE.h:31
void HandleBoxBeginOverlap(UPrimitiveComponent *OverlappedComp, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult &SweepResult)
Definition EventGate.cpp:37
FName StageEventID_DEPRECATED
Definition EventGate.h:94
void HandleBoxEndOverlap(UPrimitiveComponent *OverlappedComp, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex)
Definition EventGate.cpp:58
다음을 참조함 : BoxComponent, GateEventSender, HandleBoxBeginOverlap(), HandleBoxEndOverlap(), LOG_ERROR, NAMEOF, StageEventID_DEPRECATED.
◆ EndPlay()
| void AEventGate::EndPlay |
( |
const EEndPlayReason::Type |
EndPlayReason | ) |
|
|
overrideprotectedvirtual |
◆ GetEventListenerComponent()
◆ GetId()
| FName AEventGate::GetId |
( |
| ) |
const |
◆ HandleBoxBeginOverlap()
| void AEventGate::HandleBoxBeginOverlap |
( |
UPrimitiveComponent * |
OverlappedComp, |
|
|
AActor * |
OtherActor, |
|
|
UPrimitiveComponent * |
OtherComp, |
|
|
int32 |
OtherBodyIndex, |
|
|
bool |
bFromSweep, |
|
|
const FHitResult & |
SweepResult |
|
) |
| |
|
protected |
◆ HandleBoxEndOverlap()
| void AEventGate::HandleBoxEndOverlap |
( |
UPrimitiveComponent * |
OverlappedComp, |
|
|
AActor * |
OtherActor, |
|
|
UPrimitiveComponent * |
OtherComp, |
|
|
int32 |
OtherBodyIndex |
|
) |
| |
|
protected |
◆ OnBeginInteraction()
| void AEventGate::OnBeginInteraction |
( |
const AActor * |
Caller | ) |
|
|
overrideprotectedvirtual |
AInteractableActor(으)로부터 재구현되었습니다.
131{
132 Super::OnBeginInteraction(Caller);
134
136 {
138 return;
139 }
140
142 {
143 LOG_WARNING(LogCK,
"%s의 Storyboard 이벤트 ID가 설정되어 있지 않습니다. ", *GetName());
144 return;
145 }
146
148}
#define LOG_WARNING(Category, Format,...)
Definition CK_UE.h:40
void OnBeginInteraction_Internal(const AActor *Caller)
Definition StageEventSenderComponent.h:9
다음을 참조함 : GateEventSender, LOG_WARNING, NAMEOF, OnBeginInteraction_Internal().
◆ OnBeginInteraction_Internal()
| void AEventGate::OnBeginInteraction_Internal |
( |
const AActor * |
Caller | ) |
|
|
protected |
◆ OnEndInteraction()
| void AEventGate::OnEndInteraction |
( |
const AActor * |
Caller | ) |
|
|
overrideprotectedvirtual |
◆ 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 |
◆ bIgnoreOverlap
| bool AEventGate::bIgnoreOverlap = false |
|
protected |
◆ BoxComponent
| TObjectPtr<UBoxComponent> AEventGate::BoxComponent |
|
protected |
◆ DetectionTiming
◆ EventListenerComponent
◆ GateEventSender
◆ StageEventID_DEPRECATED
| FName AEventGate::StageEventID_DEPRECATED = NAME_None |
|
private |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: