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