CommonLibSSE NG
BGSCreatedObjectManager.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSAtomic.h"
4 #include "RE/B/BSTArray.h"
5 #include "RE/B/BSTHashMap.h"
6 #include "RE/B/BSTSingleton.h"
7 #include "RE/E/Effect.h"
8 
9 namespace RE
10 {
11  class MagicItem;
12  class EnchantmentItem;
13 
14  class BGSCreatedObjectManager : public BSTSingletonSDM<BGSCreatedObjectManager>
15  {
16  public:
18  {
20  volatile std::uint32_t refCount; // 08
21  std::uint32_t pad0C; // 0C
22  };
23  static_assert(sizeof(CreatedMagicItemData) == 0x10);
24 
26 
29 
30  // members
31  std::uint8_t pad01; // 01
32  std::uint16_t pad02; // 02
33  std::uint32_t pad04; // 03
39  mutable BSSpinLock lock; // C8
40  };
41  static_assert(sizeof(BGSCreatedObjectManager) == 0xD0);
42 }
Definition: BGSCreatedObjectManager.h:15
std::uint16_t pad02
Definition: BGSCreatedObjectManager.h:32
static BGSCreatedObjectManager * GetSingleton()
EnchantmentItem * AddWeaponEnchantment(BSTArray< Effect > &a_effects)
BSTArray< CreatedMagicItemData > weaponEnchantments
Definition: BGSCreatedObjectManager.h:34
BSSpinLock lock
Definition: BGSCreatedObjectManager.h:39
EnchantmentItem * AddArmorEnchantment(BSTArray< Effect > &a_effects)
std::uint32_t pad04
Definition: BGSCreatedObjectManager.h:33
BSTSet< MagicItem * > queuedDeletes
Definition: BGSCreatedObjectManager.h:38
BSTArray< CreatedMagicItemData > armorEnchantments
Definition: BGSCreatedObjectManager.h:35
std::uint8_t pad01
Definition: BGSCreatedObjectManager.h:31
BSTHashMap< std::uint32_t, CreatedMagicItemData > poisons
Definition: BGSCreatedObjectManager.h:37
BSTHashMap< std::uint32_t, CreatedMagicItemData > potions
Definition: BGSCreatedObjectManager.h:36
Definition: BSAtomic.h:51
Definition: BSTArray.h:377
Definition: BSTHashMap.h:21
Definition: EnchantmentItem.h:10
Definition: MagicItem.h:30
Definition: AbsorbEffect.h:6
Definition: BGSCreatedObjectManager.h:18
volatile std::uint32_t refCount
Definition: BGSCreatedObjectManager.h:20
MagicItem * magicItem
Definition: BGSCreatedObjectManager.h:19
std::uint32_t pad0C
Definition: BGSCreatedObjectManager.h:21
Definition: BSTSingleton.h:50