CommonLibVR
BGSAddToPlayerInventoryEvent.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSPointerHandle.h"
4 
5 namespace 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  private:
37  KEEP_FOR_RE()
38  };
39  static_assert(sizeof(BGSAddToPlayerInventoryEvent) == 0x20);
40 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
#define RELOCATION_ID(SE, AE)
Definition: PCH.h:702
Definition: Relocation.h:210
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:40
Definition: AbsorbEffect.h:6
AQUIRE_TYPE
Definition: BGSAddToPlayerInventoryEvent.h:11
@ kNone