docs: add plugin setup guide
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
#pragma once
|
||||
|
||||
#include "RE/B/BSFixedString.h"
|
||||
#include "RE/B/BSScript_TypeInfo.h"
|
||||
#include "RE/B/BSTTuple.h"
|
||||
|
||||
namespace RE
|
||||
{
|
||||
namespace BSScript
|
||||
{
|
||||
namespace Internal
|
||||
{
|
||||
class VDescTable
|
||||
{
|
||||
public:
|
||||
using value_type = BSTTuple<BSFixedString, TypeInfo>;
|
||||
using size_type = std::uint16_t;
|
||||
|
||||
VDescTable(size_type a_params, size_type a_locals) :
|
||||
paramCount(a_params),
|
||||
totalEntries(a_params + a_locals)
|
||||
{
|
||||
const auto total = paramCount + totalEntries;
|
||||
if (total > 0) {
|
||||
entries = new value_type[total];
|
||||
}
|
||||
}
|
||||
|
||||
~VDescTable() { delete[] entries; }
|
||||
|
||||
// members
|
||||
value_type* entries{ nullptr }; // 00
|
||||
size_type paramCount{ 0 }; // 08
|
||||
size_type totalEntries{ 0 }; // 0A
|
||||
};
|
||||
static_assert(sizeof(VDescTable) == 0x10);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user