31 lines
688 B
C++
31 lines
688 B
C++
#pragma once
|
|
|
|
#include "RE/B/BSTEvent.h"
|
|
|
|
namespace RE
|
|
{
|
|
class PerkPointIncreaseEvent
|
|
{
|
|
private:
|
|
using EventSource_t = BSTGlobalEvent::EventSource<PerkPointIncreaseEvent>;
|
|
|
|
public:
|
|
PerkPointIncreaseEvent(std::uint8_t a_perkCount) :
|
|
perkCount(a_perkCount)
|
|
{}
|
|
|
|
[[nodiscard]] static EventSource_t* GetEventSource()
|
|
{
|
|
static REL::Relocation<EventSource_t**> singleton{ ID::PerkPointIncreaseEvent::GetEventSource };
|
|
if (!*singleton) {
|
|
*singleton = new EventSource_t(&BSTGlobalEvent::GetSingleton()->eventSourceSDMKiller);
|
|
}
|
|
return *singleton;
|
|
}
|
|
|
|
// members
|
|
std::uint8_t perkCount{ 0 }; // 00
|
|
};
|
|
static_assert(sizeof(PerkPointIncreaseEvent) == 0x1);
|
|
}
|