30 lines
668 B
C++
30 lines
668 B
C++
#pragma once
|
|
|
|
#include "RE/B/BSTEvent.h"
|
|
|
|
namespace RE
|
|
{
|
|
class CanDisplayNextHUDMessage :
|
|
public BSTValueEvent<bool>
|
|
{
|
|
private:
|
|
using EventSource_t = BSTGlobalEvent::EventSource<CanDisplayNextHUDMessage>;
|
|
|
|
public:
|
|
CanDisplayNextHUDMessage(bool a_value)
|
|
{
|
|
optionalValue = a_value;
|
|
}
|
|
|
|
[[nodiscard]] static EventSource_t* GetEventSource()
|
|
{
|
|
static REL::Relocation<EventSource_t**> singleton{ ID::CanDisplayNextHUDMessage::GetEventSource };
|
|
if (!*singleton) {
|
|
*singleton = new EventSource_t(&BSTGlobalEvent::GetSingleton()->eventSourceSDMKiller);
|
|
}
|
|
return *singleton;
|
|
}
|
|
};
|
|
static_assert(sizeof(CanDisplayNextHUDMessage) == 0x2);
|
|
}
|