4#include "Components/BoxComponent.h"
5#include "DrawDebugHelpers.h"
7#include "GameFramework/PlayerController.h"
15#include "Kismet/GameplayStatics.h"
19 PrimaryActorTick.bCanEverTick =
true;
23 TriggerBox = CreateDefaultSubobject<UBoxComponent>(TEXT(
"TriggerBox"));
27 TriggerBox->SetBoxExtent(FVector(100.0f, 100.0f, 100.0f));
31 TriggerBox->SetCollisionEnabled(ECollisionEnabled::QueryOnly);
32 TriggerBox->SetCollisionResponseToAllChannels(ECR_Ignore);
33 TriggerBox->SetCollisionResponseToChannel(ECC_Pawn, ECR_Overlap);
59 Super::Tick(DeltaTime);
63 FVector BoxCenter =
TriggerBox->GetComponentLocation();
64 FVector BoxExtent =
TriggerBox->GetScaledBoxExtent();
65 FRotator BoxRotation =
TriggerBox->GetComponentRotation();
74 BoxRotation.Quaternion(),
84 FString StatusText =
bIsTriggered ? TEXT(
"[TRIGGERED]") : TEXT(
"[ACTIVE]");
85 FColor TextColor =
bIsTriggered ? FColor::Red : FColor::Green;
87 FVector TextLocation = BoxCenter + FVector(0.0f, 0.0f, BoxExtent.Z + 50.0f);
102 FVector MessageLocation = TextLocation + FVector(0.0f, 0.0f, 30.0f);
117 UPrimitiveComponent* OtherComp, int32 OtherBodyIndex,
bool bFromSweep,
const FHitResult& SweepResult)
124 APlayerActor* PlayerActor = Cast<APlayerActor>(OtherActor);
132void AContactTrigger::ServerRPC_OnTrigger_Implementation(AActor* TriggeringActor)
147 if (
auto KLingoNetwork = UKLingoNetworkSystem::Get(GetWorld()))
168 if (UWorld* World = GetWorld())
171 GM->BeginReadQuest( ResponseData);
173 ALuggageManager* LuggageManager = Cast<ALuggageManager>( UGameplayStatics::GetActorOfClass(World, ALuggageManager::StaticClass()));
188 if (UWorld* World = GetWorld())
191 GM->BeginListenQuest(ResponseData);
195 AFoodCourtManager* FCourtManager = Cast<AFoodCourtManager>(UGameplayStatics::GetActorOfClass(
196 World, AFoodCourtManager::StaticClass()));
Declares the player-controlled character actor.
네트워크 요청과 응답에 사용되는 구조체 및 설정을 정의합니다.
KLingo API 요청을 담당하는 서브시스템을 선언합니다.
STT·GPT·TTS 파이프라인을 연결하는 음성 대화 컴포넌트를 선언합니다.
void SpawnFoodContainer()
Main character driven directly by the player.
ECompassMarkerType MarkerType
static FString GetStageStartMessage(const EQuestType QuestType)
static class ALingoGameMode * GetLingoGameMode(const UObject *WorldContextObject)