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,32 @@
#pragma once
#include "RE/C/CHANGE_TYPES.h"
#include "RE/E/ENCOUNTER_ZONE_DATA.h"
#include "RE/E/ENCOUNTER_ZONE_GAME_DATA.h"
#include "RE/T/TESForm.h"
namespace RE
{
class __declspec(novtable) BGSEncounterZone :
public TESForm // 00
{
public:
static constexpr auto RTTI{ RTTI::BGSEncounterZone };
static constexpr auto VTABLE{ VTABLE::BGSEncounterZone };
static constexpr auto FORM_ID{ ENUM_FORM_ID::kECZN };
[[nodiscard]] bool NeverResets() const noexcept { return data.flags.all(ENCOUNTER_ZONE_DATA::FLAG::kNeverReset); }
[[nodiscard]] bool IsWorkshop() const noexcept { return data.flags.all(ENCOUNTER_ZONE_DATA::FLAG::kWorkshopZone); }
void SetDetachTime(std::uint32_t a_time)
{
gameData.detachTime = a_time;
AddChange(CHANGE_TYPE::kEncounterZoneGameData);
}
// members
ENCOUNTER_ZONE_DATA data; // 20
ENCOUNTER_ZONE_GAME_DATA gameData; // 38
};
static_assert(sizeof(BGSEncounterZone) == 0x48);
}