v1.2.26
Documentation for the Unreal C++ Plugin
Loading...
Searching...
No Matches
EventLogService.cpp
Go to the documentation of this file.
1
// Copyright(c) Pixo Group. All Rights Reserved.
2
3
#include "
EventSystem/EventLogService.h
"
4
5
6
bool
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
16
void
EventContainer::Swap
()
17
{
18
FirstBufferInUse
= !
FirstBufferInUse
;
19
20
for
(
UBaseEvent
* PendingEvent :
GetBuffer
())
21
{
22
PendingEvent->Unlock();
23
PendingEvent =
nullptr
;
24
}
25
GetBuffer
().Empty();
26
}
27
28
EventContainer
&
EventLogService::Events
()
29
{
30
static
EventContainer
Implementation
;
31
return
Implementation
;
32
}
EventLogService.h
EventContainer
Definition
EventLogService.h:8
EventContainer::FirstBufferInUse
bool FirstBufferInUse
Definition
EventLogService.h:47
EventContainer::GetAll
bool GetAll(TArray< UBaseEvent * > &OutEvents)
Definition
EventLogService.cpp:6
EventContainer::Swap
void Swap()
Definition
EventLogService.cpp:16
EventContainer::GetBuffer
FORCEINLINE TArray< UBaseEvent * > & GetBuffer()
Definition
EventLogService.h:36
EventContainer::Size
FORCEINLINE int32 Size()
Definition
EventLogService.h:23
EventLogService::Events
static EventContainer & Events()
Definition
EventLogService.cpp:28
EventLogService::NewEvent
static FUNCTION_NON_NULL_RETURN_START TEventType * NewEvent(APlayerController *Executor=nullptr) FUNCTION_NON_NULL_RETURN_END
Creates a new event of the specified type.
Definition
EventLogService.h:78
UBaseEvent
The UBaseEvent class serves as the base class for all events for our event-managers system....
Definition
BaseEvent.h:83
PixoCore
Source
PixoCore
Private
EventSystem
EventLogService.cpp
Generated
Wed Oct 9 2024 19:40:16
by Doxygen version
1.10.0