Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
StageEventSenderComponent.h
이 파일의 문서화 페이지로 가기
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Components/ActorComponent.h"
7#include "StageEventSenderComponent.generated.h"
8
9
10UCLASS(ClassGroup = (CK), meta = (BlueprintSpawnableComponent))
11class CK_UE_API UStageEventSenderComponent : public UActorComponent
12{
13 GENERATED_BODY()
14
15public:
16 UFUNCTION(BlueprintCallable, Category = "StageEvent")
17 void Send(const AActor* Caller);
18
19 void SetEventIDToSend(const FName NewEventIDToSend);
20
21 UFUNCTION(BlueprintPure, Category = "StageEvent")
22 FORCEINLINE FName GetEventIDToSend() const
23 {
24 return EventIDToSend;
25 }
26
27#if WITH_EDITOR
28private:
29 UFUNCTION()
30 TArray<FString> GetStageEventOptions() const;
31#endif
32
33protected:
34 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "StageEvent", DisplayName = "Event ID To Send", meta = (GetOptions = "GetStageEventOptions"))
35 FName EventIDToSend = NAME_None;
36};