docs: add plugin setup guide

This commit is contained in:
2026-05-30 18:33:24 +12:00
parent f3db41c402
commit b61043a3fe
1776 changed files with 122386 additions and 2 deletions
@@ -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);
}
};
}