KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
OrderKiosk.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"
6#include "ADropper.h"
8#include "ListenAnswer.h"
9#include "GameFramework/Actor.h"
10#include "OrderKiosk.generated.h"
11
12/*
13 * 굴러오는 Food를 정지시켰다가 음식메쉬액터 또는 이름액터를 가져오면 진행
14 * (정답판정X)
15 */
16
17UCLASS()
18class ONEPIECE_API AOrderKiosk : public AActor, public ICompassTargetInterface
19{
20 GENERATED_BODY()
21
22public:
23 // Sets default values for this actor's properties
25
26protected:
27 // Called when the game starts or when spawned
28 virtual void BeginPlay() override;
29
30public:
31 // Called every frame
32 virtual void Tick(float DeltaTime) override;
33
34public:
35 // Components
36 // 음식 캡슐 감지
37 UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
38 class UBoxComponent* FoodCollision;
39 // 답 제출 감지
40 UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
41 class UBoxComponent* SubmitCollision;
42
43 UFUNCTION()
44 void BeginFoodOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
45
46 UFUNCTION()
47 void BeginSubmitOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
48
49 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Teleport")
50 TObjectPtr<class ATeleportOut> TeleportOut;
51
52public:
53 // 한번 제출했었는지 여부
54 bool IsOnceStopped = false;
55
56protected:
57 // 현재 감지중인 음식 큐브
58 UPROPERTY(VisibleAnywhere,BlueprintReadOnly)
59 class AFood* CurrentFoodContainer;
60
61 UPROPERTY(EditAnywhere)
62 EAnswerType InAnswerType = EAnswerType::None;
63
64 // 움직이거나 멈추게 할 컨베이어 리스트
65 // (맵에서 직접 선택)
66 UPROPERTY(EditAnywhere)
67 TArray<AActor*> ConveyorsToControl;
68
69 UFUNCTION(Server, Reliable)
70 void Server_DestroyListenAnswer(AActor* ActorToDestroy);
71
72 UFUNCTION(Server, Reliable)
73 void Server_MoveFoodContainer(AActor* ActorToMove);
74
75 // 위젯 디스플레이 액터
76 class ACityName* FoodDisplay;
77 class ACityName* CityDisplay;
78
79protected:
80 // Compass Interface
81 virtual void SetCompassMarkerInto(ECompassMarkerType InMarkerType) override;
82};
83
ECompassMarkerType
EAnswerType
Definition Food.h:37