CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
BGSOpenCloseForm.h
Go to the documentation of this file.
1#pragma once
2
3namespace RE
4{
5 class Actor;
6 class TESObjectREFR;
7
9 {
10 public:
11 inline static constexpr auto RTTI = RTTI_BGSOpenCloseForm;
12
13 enum class OPEN_STATE
14 {
15 kNone = 0,
16 kOpen = 1,
17 kOpening = 2,
18 kClosed = 3,
19 kClosing = 4
20 };
21
22 virtual ~BGSOpenCloseForm(); // 00
23
24 // add
25 virtual void HandleOpen(TESObjectREFR* a_target, TESObjectREFR* a_activator); // 01 - { return; }
26 virtual void HandleClose(TESObjectREFR* a_target, TESObjectREFR* a_activator); // 02 - { return; }
27 virtual void Unk_03(void); // 03 - { return 0; }
28
29 [[nodiscard]] static OPEN_STATE GetOpenState(const TESObjectREFR* a_ref);
30 static void SetOpenState(TESObjectREFR* a_ref, bool a_open, bool a_snap);
31 };
32 static_assert(sizeof(BGSOpenCloseForm) == 0x8);
33}
Definition: BGSOpenCloseForm.h:9
static OPEN_STATE GetOpenState(const TESObjectREFR *a_ref)
virtual void HandleClose(TESObjectREFR *a_target, TESObjectREFR *a_activator)
virtual void Unk_03(void)
OPEN_STATE
Definition: BGSOpenCloseForm.h:14
virtual void HandleOpen(TESObjectREFR *a_target, TESObjectREFR *a_activator)
static void SetOpenState(TESObjectREFR *a_ref, bool a_open, bool a_snap)
virtual ~BGSOpenCloseForm()
static constexpr auto RTTI
Definition: BGSOpenCloseForm.h:11
Definition: TESObjectREFR.h:105
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BGSOpenCloseForm
Definition: Offsets_RTTI.h:1353