docs: add plugin setup guide
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include "RE/B/BSResource_FileID.h"
|
||||
|
||||
namespace RE::BSResource
|
||||
{
|
||||
class ID :
|
||||
public FileID // 0
|
||||
{
|
||||
public:
|
||||
ID() = default;
|
||||
ID(const ID&) noexcept = default;
|
||||
|
||||
ID(const char* a_path) noexcept
|
||||
{
|
||||
GenerateFromPath(a_path);
|
||||
}
|
||||
|
||||
[[nodiscard]] bool operator==(const ID&) const noexcept = default;
|
||||
|
||||
void GenerateFromPath(const char* a_path)
|
||||
{
|
||||
using func_t = decltype(&ID::GenerateFromPath);
|
||||
static REL::Relocation<func_t> func{ RE::ID::BSResource::ID::GenerateFromPath };
|
||||
return func(this, a_path);
|
||||
}
|
||||
|
||||
// members
|
||||
std::uint32_t dir{ 0 }; // 8
|
||||
};
|
||||
static_assert(sizeof(ID) == 0xC);
|
||||
}
|
||||
Reference in New Issue
Block a user