docs: add plugin setup guide
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
#pragma once
|
||||
|
||||
#include "RE/B/BSResource_Location.h"
|
||||
#include "RE/B/BSSpinLock.h"
|
||||
#include "RE/B/BSTSingleton.h"
|
||||
|
||||
namespace RE::BSResource
|
||||
{
|
||||
class __declspec(novtable) GlobalLocations :
|
||||
public Location, // 00
|
||||
public BSTSingletonSDM<GlobalLocations> // 10
|
||||
{
|
||||
public:
|
||||
static constexpr auto RTTI{ RTTI::BSResource____GlobalLocations };
|
||||
static constexpr auto VTABLE{ VTABLE::BSResource____GlobalLocations };
|
||||
|
||||
class Entry
|
||||
{
|
||||
public:
|
||||
// members
|
||||
Entry* next; // 00
|
||||
Location* location; // 08
|
||||
std::uint32_t priority; // 10
|
||||
};
|
||||
static_assert(sizeof(Entry) == 0x18);
|
||||
|
||||
[[nodiscard]] static GlobalLocations* GetSingleton()
|
||||
{
|
||||
static REL::Relocation<GlobalLocations**> singleton{ RE::ID::BSResource_GlobalLocations::Singleton };
|
||||
return *singleton;
|
||||
}
|
||||
|
||||
// members
|
||||
BSSpinLock lock; // 14
|
||||
Entry* head; // 20
|
||||
Entry* pendingMount; // 28
|
||||
Entry* free; // 30
|
||||
};
|
||||
static_assert(sizeof(GlobalLocations) == 0x38);
|
||||
}
|
||||
Reference in New Issue
Block a user