Files
Commonwealth-Online-Public/plugin/lib/commonlibf4/include/RE/C/CellAttachDetachEventSource.h
T
2026-05-30 18:33:24 +12:00

28 lines
726 B
C++

#pragma once
#include "RE/B/BSTEvent.h"
#include "RE/B/BSTSingleton.h"
#include "RE/C/CellAttachDetachEvent.h"
namespace RE
{
namespace CellAttachDetachEventSource
{
class CellAttachDetachEventSourceSingleton :
public BSTSingletonImplicit<CellAttachDetachEventSourceSingleton>
{
public:
[[nodiscard]] static CellAttachDetachEventSourceSingleton& GetSingleton()
{
using func_t = decltype(&CellAttachDetachEventSourceSingleton::GetSingleton);
static REL::Relocation<func_t> func{ ID::CellAttachDetachEvent::GetEventSource };
return func();
}
// members
BSTEventSource<CellAttachDetachEvent> source; // 00
};
static_assert(sizeof(CellAttachDetachEventSourceSingleton) == 0x58);
}
}