docs: add plugin setup guide
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
#pragma once
|
||||
|
||||
#include "RE/B/BSTEvent.h"
|
||||
#include "RE/B/BSTSingleton.h"
|
||||
|
||||
namespace RE
|
||||
{
|
||||
class ApplyColorUpdateEvent;
|
||||
class DoBeforeNewOrLoadCompletedEvent;
|
||||
class QueueSurvivalBumpDownMessage;
|
||||
class RevertPlayerCharacterEvent;
|
||||
class SaveLoadMessageTypeEvent;
|
||||
|
||||
class __declspec(novtable) GameUIModel :
|
||||
public BSTSingletonSDM<GameUIModel>,
|
||||
public BSTEventSink<ApplyColorUpdateEvent>,
|
||||
public BSTEventSink<RevertPlayerCharacterEvent>,
|
||||
public BSTEventSink<DoBeforeNewOrLoadCompletedEvent>,
|
||||
public BSTEventSink<SaveLoadMessageTypeEvent>,
|
||||
public BSTEventSink<QueueSurvivalBumpDownMessage>
|
||||
{
|
||||
public:
|
||||
static constexpr auto RTTI{ RTTI::GameUIModel };
|
||||
static constexpr auto VTABLE{ VTABLE::GameUIModel };
|
||||
|
||||
[[nodiscard]] static GameUIModel* GetSingleton()
|
||||
{
|
||||
static REL::Relocation<GameUIModel**> singleton{ ID::GameUIModel::Singleton };
|
||||
return *singleton;
|
||||
}
|
||||
|
||||
void SetGameColors()
|
||||
{
|
||||
using func_t = decltype(&GameUIModel::SetGameColors);
|
||||
static REL::Relocation<func_t> func{ ID::GameUIModel::SetGameColors };
|
||||
return func(this);
|
||||
}
|
||||
|
||||
void UpdateDataModels()
|
||||
{
|
||||
using func_t = decltype(&GameUIModel::UpdateDataModels);
|
||||
static REL::Relocation<func_t> func{ ID::GameUIModel::UpdateDataModels };
|
||||
return func(this);
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user