#include <SectionGate.h>
◆ ASectionGate()
| ASectionGate::ASectionGate |
( |
| ) |
|
14{
15 PrimaryActorTick.bCanEverTick = false;
16
17 BoxComponent = CreateDefaultSubobject<UBoxComponent>(TEXT(
"BoxComponent"));
18 EventListenerComponent = CreateDefaultSubobject<UStageEventListenerComponent>(TEXT(
"EventListenerComponent"));
19}
TObjectPtr< UStageEventListenerComponent > EventListenerComponent
Definition SectionGate.h:76
TObjectPtr< UBoxComponent > BoxComponent
Definition SectionGate.h:79
◆ ApplyGateState()
| void ASectionGate::ApplyGateState |
( |
EGateState |
NewState, |
|
|
bool |
bForce = false |
|
) |
| |
74{
76 {
77 return;
78 }
79
82
83 SetActorEnableCollision(bLocked);
84 SetActorHiddenInGame(!bLocked);
86
87 BoxComponent->SetCollisionEnabled(bLocked ? ECollisionEnabled::QueryAndPhysics : ECollisionEnabled::NoCollision);
88 BoxComponent->SetCollisionResponseToAllChannels(bLocked ? ECR_Block : ECR_Ignore);
90}
EGateState CurrentState
Definition SectionGate.h:86
◆ BeginPlay()
| void ASectionGate::BeginPlay |
( |
| ) |
|
|
overrideprotectedvirtual |
23{
24 Super::BeginPlay();
26}
EGateState InitialGateState
Definition SectionGate.h:82
void ApplyGateState(EGateState NewState, bool bForce=false)
Definition SectionGate.cpp:73
◆ GetEventListenerComponent()
| virtual UStageEventListenerComponent * ASectionGate::GetEventListenerComponent |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetGateState()
| FORCEINLINE EGateState ASectionGate::GetGateState |
( |
| ) |
const |
|
inline |
◆ GetStageEvent()
| virtual EStageEvent ASectionGate::GetStageEvent |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ IsLocked()
| FORCEINLINE bool ASectionGate::IsLocked |
( |
| ) |
const |
|
inline |
◆ SetGateState()
30{
32
33 switch (Operation)
34 {
36 {
38 break;
39 }
40
42 {
44 break;
45 }
46
48 {
50 break;
51 }
52 }
53
55 {
56 return;
57 }
58
60 {
62 };
63
64 if (USnapshotSubsystem::ProcessNewCommand<USectionGateStateCommand>(this, Lambda))
65 {
66 return;
67 }
68
70}
EGateState
Definition SectionGate.h:17
Definition SectionGateStateCommand.h:12
◆ BoxComponent
| TObjectPtr<UBoxComponent> ASectionGate::BoxComponent |
|
protected |
◆ CurrentState
◆ EventListenerComponent
| TObjectPtr<UStageEventListenerComponent> ASectionGate::EventListenerComponent |
|
protected |
◆ InitialGateState
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: