RedCore
Loading...
Searching...
No Matches
StaticInitEvent.h
Go to the documentation of this file.
1
#
pragma
once
2
3
#
include
<
red
/
event_sys
/
EventBase
.
h
>
4
#
include
<
red
/
event_sys
/
EventDelegator
.
h
>
5
#
include
<
actor
/
ActorBase
.
h
>
6
7
namespace
red
{
8
9
/**
10
* @brief Event fired after static initializers have ran for the game. This is helpful when accessing .bss variables which are not initialized during mod init.
11
*/
12
class
StaticInitEvent
:
public
EventBase
<
StaticInitEvent
> {
13
public
:
14
using
Listener
=
EventBase
<
StaticInitEvent
>::
BasicListener
;
15
16
public
:
17
static
void
subscribe
(EventDelegator<StaticInitEvent>::Listener& listener);
18
static
void
emit
();
19
20
private
:
21
[[
nodiscard
]]
22
static
Delegator& getDelegator();
23
};
24
25
}
red::StaticInitEvent
Event fired after static initializers have ran for the game. This is helpful when accessing ....
Definition
StaticInitEvent.h:12
red::StaticInitEvent::subscribe
static void subscribe(EventDelegator< StaticInitEvent >::Listener &listener)
red::StaticInitEvent::emit
static void emit()
red
Definition
ActorDonutBlock.h:5
include
red
event
StaticInitEvent.h
Generated by
1.14.0