CommonLibSSE NG
Loading...
Searching...
No Matches
BGSAddToPlayerInventoryEvent.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace RE
6{
7 class BGSLocation;
8 class TESForm;
9
10 enum class AQUIRE_TYPE
11 {
12 kNone = 0,
13 kSteal = 1,
14 kBuy = 2,
15 kPickPocket = 3,
16 kPickup = 4,
17 kContainer = 5,
18 kDeadBody = 6
19 };
20
22 {
23 public:
24 [[nodiscard]] static std::uint32_t& GetIndex()
25 {
26 REL::Relocation<std::uint32_t*> index{ RELOCATION_ID(508412, 380074) };
27 return *index;
28 }
29
30 // members
33 BGSLocation* location{ nullptr }; // 0x08
34 TESForm* itemBase{ nullptr }; // 0x10
36 };
37 static_assert(sizeof(BGSAddToPlayerInventoryEvent) == 0x20);
38}
#define RELOCATION_ID(a_se, a_ae)
Definition PCH.h:794
Definition BGSAddToPlayerInventoryEvent.h:22
BGSLocation * location
Definition BGSAddToPlayerInventoryEvent.h:33
stl::enumeration< AQUIRE_TYPE, std::uint32_t > acquireType
Definition BGSAddToPlayerInventoryEvent.h:35
ObjectRefHandle ownerRef
Definition BGSAddToPlayerInventoryEvent.h:31
static std::uint32_t & GetIndex()
Definition BGSAddToPlayerInventoryEvent.h:24
TESForm * itemBase
Definition BGSAddToPlayerInventoryEvent.h:34
ObjectRefHandle containerRef
Definition BGSAddToPlayerInventoryEvent.h:32
Definition BGSLocation.h:68
Definition TESForm.h:35
Definition Relocation.h:1638
Definition PCH.h:223
Definition AbsorbEffect.h:6
AQUIRE_TYPE
Definition BGSAddToPlayerInventoryEvent.h:11