Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
ULevelStreamingEffect 클래스 참조

#include <LevelStreamingEffect.h>

ULevelStreamingEffect에 대한 상속 다이어그램 :
Inheritance graph
ULevelStreamingEffect에 대한 협력 다이어그램:
Collaboration graph

Public 멤버 함수

virtual void InitEffect ()
 
virtual void OnCompletedEffectsByPhase (const ELevelStreamingPhase CompletedPhase)
 
virtual void ExecuteUpdate (ELevelStreamingPhase Phase, const FLevelStreamingContext &Context)
 
virtual void CallPrepareOrFinishEvent (ELevelStreamingPhase Phase, ELevelStreamingEffectCallType CallType, const FLevelStreamingContext &Context)
 
FORCEINLINE ELevelStreamingEffectResult GetLastExecutionResult () const
 
FORCEINLINE bool IsSkipThisEffect () const
 

Protected 속성

bool bSkipThisEffect = false
 
ELevelStreamingEffectResult LastExecutionResult = ELevelStreamingEffectResult::None
 

멤버 함수 문서화

◆ CallPrepareOrFinishEvent()

void ULevelStreamingEffect::CallPrepareOrFinishEvent ( ELevelStreamingPhase  Phase,
ELevelStreamingEffectCallType  CallType,
const FLevelStreamingContext Context 
)
virtual
195{
196 switch (Phase)
197 {
198 case ELevelStreamingPhase::PreLoad:
199 {
200 ILevelPreLoadInterface* PreLoad = Cast<ILevelPreLoadInterface>(this);
201
202 if (PreLoad == nullptr)
203 {
204 return;
205 }
206
207 if (CallType == ELevelStreamingEffectCallType::Start)
208 {
209 PreLoad->OnPreLoadStart(Context);
210 }
211 else if (CallType == ELevelStreamingEffectCallType::End)
212 {
213 PreLoad->OnPreLoadEnd(Context);
214 }
215
216 return;
217 }
218
219 case ELevelStreamingPhase::DuringLoad:
220 {
221 ILevelLoadingInterface* Loading = Cast<ILevelLoadingInterface>(this);
222
223 if (Loading == nullptr)
224 {
225 return;
226 }
227
228 if (CallType == ELevelStreamingEffectCallType::Start)
229 {
230 Loading->OnLoadingStart(Context);
231 }
232 else if (CallType == ELevelStreamingEffectCallType::End)
233 {
234 Loading->OnLoadingEnd(Context);
235 }
236
237 return;
238 }
239
240 case ELevelStreamingPhase::PostLoad:
241 {
242 ILevelPostLoadInterface* PostLoad = Cast<ILevelPostLoadInterface>(this);
243
244 if (PostLoad == nullptr)
245 {
246 return;
247 }
248
249 if (CallType == ELevelStreamingEffectCallType::Start)
250 {
251 PostLoad->OnPostLoadStart(Context);
252 }
253 else if (CallType == ELevelStreamingEffectCallType::End)
254 {
255 PostLoad->OnPostLoadEnd(Context);
256 }
257
258 return;
259 }
260
261 case ELevelStreamingPhase::None:
262 {
263 LastExecutionResult = ELevelStreamingEffectResult::Failed;
264 LOG_ERROR(LogCKLevel, "%s 은 '%s' 을 지원하지 않습니다. ", NAMEOF(ULevelStreamingEffect), *GetName());
265 return;
266 }
267 }
268}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:40
#define NAMEOF(Type)
Definition CK_UE.h:30
Definition LevelLoadingInterface.h:23
virtual void OnLoadingStart(const FLevelStreamingContext Context)=0
virtual void OnLoadingEnd(const FLevelStreamingContext Context)=0
Definition LevelPostLoadInterface.h:23
virtual void OnPostLoadStart(const FLevelStreamingContext Context)=0
virtual void OnPostLoadEnd(const FLevelStreamingContext Context)=0
Definition LevelPreLoadInterface.h:23
virtual void OnPreLoadEnd(const FLevelStreamingContext Context)=0
virtual void OnPreLoadStart(const FLevelStreamingContext Context)=0
Definition LevelStreamingEffect.h:121
ELevelStreamingEffectResult LastExecutionResult
Definition LevelStreamingEffect.h:157
이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ ExecuteUpdate()

void ULevelStreamingEffect::ExecuteUpdate ( ELevelStreamingPhase  Phase,
const FLevelStreamingContext Context 
)
virtual
139{
140 switch (Phase)
141 {
142 case ELevelStreamingPhase::PreLoad:
143 {
144 if (ILevelPreLoadInterface* PreLoad = Cast<ILevelPreLoadInterface>(this))
145 {
146 LastExecutionResult = PreLoad->OnPreLoadUpdate(Context);
147 }
148 else
149 {
150 LastExecutionResult = ELevelStreamingEffectResult::Completed;
151 }
152
153 return;
154 }
155
156 case ELevelStreamingPhase::DuringLoad:
157 {
158 if (ILevelLoadingInterface* LevelLoading = Cast<ILevelLoadingInterface>(this))
159 {
160 LastExecutionResult = LevelLoading->OnLoadingUpdate(Context);
161 }
162 else
163 {
164 LastExecutionResult = ELevelStreamingEffectResult::Completed;
165 }
166
167 return;
168 }
169
170 case ELevelStreamingPhase::PostLoad:
171 {
172 if (ILevelPostLoadInterface* PostLoad = Cast<ILevelPostLoadInterface>(this))
173 {
174 LastExecutionResult = PostLoad->OnPostLoadUpdate(Context);
175 }
176 else
177 {
178 LastExecutionResult = ELevelStreamingEffectResult::Completed;
179 }
180
181 return;
182 }
183
184 case ELevelStreamingPhase::None:
185 {
186 LastExecutionResult = ELevelStreamingEffectResult::Failed;
187 LOG_ERROR(LogCKLevel, "%s 은 '%s' 을 지원하지 않습니다. ", NAMEOF(ULevelStreamingEffect), *GetName());
188 return;
189 }
190 }
191}
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ GetLastExecutionResult()

FORCEINLINE ELevelStreamingEffectResult ULevelStreamingEffect::GetLastExecutionResult ( ) const
inline
142 {
143 return LastExecutionResult;
144 }
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ InitEffect()

virtual void ULevelStreamingEffect::InitEffect ( )
inlinevirtual
126{ }

◆ IsSkipThisEffect()

FORCEINLINE bool ULevelStreamingEffect::IsSkipThisEffect ( ) const
inline
147 {
148 return bSkipThisEffect;
149 }
bool bSkipThisEffect
Definition LevelStreamingEffect.h:154

◆ OnCompletedEffectsByPhase()

virtual void ULevelStreamingEffect::OnCompletedEffectsByPhase ( const ELevelStreamingPhase  CompletedPhase)
inlinevirtual
130{ }

멤버 데이터 문서화

◆ bSkipThisEffect

bool ULevelStreamingEffect::bSkipThisEffect = false
protected

◆ LastExecutionResult

ELevelStreamingEffectResult ULevelStreamingEffect::LastExecutionResult = ELevelStreamingEffectResult::None
protected

이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: