KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UBroadcastManager.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
7#pragma once
8
9#include "CoreMinimal.h"
10#include "Macro.h"
11#include "EDamageType.h"
12#include "EQuestRole.h"
13#include "ETutorialStep.h"
14#include "FResultStatData.h"
15#include "Subsystems/GameInstanceSubsystem.h"
16#include "UBroadcastManager.generated.h"
17
24UCLASS()
25class LATTELIBRARY_API UBroadcastManager : public UGameInstanceSubsystem
26{
27 GENERATED_BODY()
28
29public:
31
33 UPROPERTY(BlueprintAssignable, Category="Events")
34 FOnMessage OnMessage;
35
36 UFUNCTION(BlueprintCallable, Category="Events")
37 void SendMessage(const FString& InMsg);
38
39 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnNetworkWaitCount, int, RequestCount);
40 UPROPERTY(BlueprintAssignable, Category="Events")
41 FOnNetworkWaitCount OnNetworkWaitCount;
42
43 UFUNCTION(BlueprintCallable, Category="Events")
44 void SendNetworkWaitCount(int RequestCount);
45
46 DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnHitStop, AActor*, Target, EDamageType, Type);
47 UPROPERTY(BlueprintAssignable, Category="Events")
48 FOnHitStop OnHitStop;
49
50 UFUNCTION(BlueprintCallable, Category="Events")
51 void SendHitStop(AActor* Target, const EDamageType Type);
52
53 UFUNCTION(BlueprintCallable, Category="Events")
54 void SendHitStopPair(AActor* Attacker, const EDamageType AttackerType,
55 AActor* Target, const EDamageType TargetType);
56
57
58 DECLARE_DYNAMIC_MULTICAST_DELEGATE_FourParams(FOnKnockback,
59 AActor*, Target,
60 AActor*, Instigator,
61 EDamageType, Type,
62 float, Resistance );
63 UPROPERTY(BlueprintAssignable, Category="Events")
64 FOnKnockback OnKnockback;
65
66 UFUNCTION(BlueprintCallable, Category="Events")
67 void SendKnockback(AActor* Target, AActor* Instigator, EDamageType Type, float Resistance);
68
69 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnAudioSpectrum, float, Spectrum);
70 UPROPERTY(BlueprintAssignable, Category="Events")
71 FOnAudioSpectrum OnAudioSpectrum;
72
73 UFUNCTION(BlueprintCallable, Category="Events")
74 void SendAudioSpectrum(float Spectrum);
75
76 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnAudioCapture, bool, bRecording);
77 UPROPERTY(BlueprintAssignable, Category="Events")
78 FOnAudioCapture OnAudioCapture;
79
80 UFUNCTION(BlueprintCallable, Category="Events")
81 void SendAudioCapture(bool bRecording);
82
83
84
85 DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnDoorMessage, int, DoorIndex, bool, Open, AActor*, EventInstigator);
86 UPROPERTY(BlueprintAssignable, Category="Events")
87 FOnDoorMessage OnDoorMessage;
88
89 UFUNCTION(BlueprintCallable, Category="Events")
90 void SendDoorMessage(int InDoorIndex, bool InOpen, AActor* EventInstigator);
91
92
93 DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FWeightSwitch, int, ButtonIndex, bool, bIsActive);
94 UPROPERTY(BlueprintAssignable, Category="Events")
95 FWeightSwitch OnWeightSwitch;
96
97 UFUNCTION(BlueprintCallable, Category="Events")
98 void SendWeightSwitch(int InButtonIndex, bool InActive);
99
100
101 DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnUpdateMissionTimerState, bool, bIsActive, float, TimeLimit);
102 UPROPERTY(BlueprintAssignable, Category="Events")
103 FOnUpdateMissionTimerState OnUpdateMissionTimerState;
104
105 UFUNCTION(BlueprintCallable, Category="Events")
106 void SendUpdateMissionTimerState(bool bIsActive, float TimeLimit);
107
109 UPROPERTY(BlueprintAssignable, Category="Events")
110 FOnUpdateQuestRole OnUpdateQuestRole;
111
112 UFUNCTION(BlueprintCallable, Category="Events")
113 void SendUpdateQuestRole(EQuestRole QuestRole);
114
115 DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnMovie, int, Group, bool, State);
116 UPROPERTY(BlueprintAssignable, Category="Events")
117 FOnMovie OnMovie;
118
119 UFUNCTION(BlueprintCallable, Category="Events")
120 void SendMovie(const int& InGroup, bool InState);
121
122 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnTutorMessage, const FText&, Message);
123 UPROPERTY(BlueprintAssignable, Category="Events")
124 FOnTutorMessage OnTutorMessage;
125
126 UFUNCTION(BlueprintCallable, Category="Events")
127 void SendTutorMessage(const FText& Message);
128
129 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnAddItemToBoxList, const TArray<FResultStatData>&, ItemDataList);
130 UPROPERTY(BlueprintAssignable, Category="Events")
131 FOnAddItemToBoxList OnAddItemToBoxList;
132
133 UFUNCTION(BlueprintCallable, Category="Events")
134 void SendAddItemToBoxList(const TArray<FResultStatData>& ItemDataList);
135
136 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnTeleportAllPlayers, FTransform, TargetTransform);
137 UPROPERTY(BlueprintAssignable, Category="Events")
138 FOnTeleportAllPlayers OnTeleport;
139
140 UFUNCTION(BlueprintCallable, Category="Events")
141 void SendTeleport(const FTransform& TargetTransform);
142
143 // Tutorial
145 APlayerController*, Player, ETutorialStep, NewStep);
146
147 UPROPERTY(BlueprintAssignable, Category="Events")
148 FOnTutorialStepChanged OnTutorialStepChanged;
149
150 UFUNCTION(BlueprintCallable, Category="Events")
151 void SendTutorialStepChanged(APlayerController* Player, ETutorialStep NewStep);
152
153 // Tutorial Message 표시 (자동숨김 없는 버전)
154 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnShowTutorialMessage, const FText&, Message);
155 UPROPERTY(BlueprintAssignable, Category="Events")
156 FOnShowTutorialMessage OnShowTutorialMessage;
157
158 UFUNCTION(BlueprintCallable, Category="Events")
159 void SendShowTutorialMessage(const FText& Message);
160
161 // Tutorial Message 숨김
162 DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnHideTutorialMessage);
163 UPROPERTY(BlueprintAssignable, Category="Events")
164 FOnHideTutorialMessage OnHideTutorialMessage;
165
166 UFUNCTION(BlueprintCallable, Category="Events")
167 void SendHideTutorialMessage();
168
169
170};
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnQuestScenarioDataUpdated)
EDamageType 클래스를 선언합니다.
EDamageType
Definition EDamageType.h:9
EQuestRole
Read 퀘스트에서 플레이어의 역할을 정의합니다.
Definition EQuestRole.h:6
ETutorialStep
튜토리얼 진행 단계
YiSan 전반에서 사용하는 공용 인터페이스를 선언합니다.
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnPageChanged, int32, PrevPage, int32, CurrentPage)
페이지 변경 이벤트 델리게이트
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnSightDetect, bool, Target)
게임 내 전역 이벤트를 중계하는 중앙 이벤트 버스(Event Bus) 서브시스템입니다.
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnMessage, FString, Msg)
DEFINE_SUBSYSTEM_GETTER_INLINE(UBroadcastManager)
Result Stat 위젯 통합 데이터 구조 위젯 타입, 색상 스타일, 각 타입별 데이터를 통합 관리