A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
EventLogService.cpp
Go to the documentation of this file.
1// Copyright(c) Pixo Group. All Rights Reserved.
2
4
5
6bool EventContainer::GetAll(TArray<UBaseEvent*>& OutEvents)
7{
8 OutEvents.Reset(Size());
9 OutEvents.Append(GetBuffer());
10
11 Swap();
12
13 return OutEvents.Num() > 0;
14}
15
17{
19
20 for (UBaseEvent* PendingEvent : GetBuffer())
21 {
22 PendingEvent->Unlock();
23 PendingEvent = nullptr;
24 }
25 GetBuffer().Empty();
26}
27
29{
30 static EventContainer Implementation;
31 return Implementation;
32}
bool GetAll(TArray< UBaseEvent * > &OutEvents)
FORCEINLINE TArray< UBaseEvent * > & GetBuffer()
FORCEINLINE int32 Size()
static EventContainer & Events()
The UBaseEvent class serves as the base class for all events for our event-managers system....
Definition BaseEvent.h:83