CommonLibSSE (powerof3)
BSMusicManager.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSTArray.h"
4 #include "RE/B/BSTEvent.h"
5 #include "RE/B/BSTSingleton.h"
6 
7 namespace RE
8 {
9  class BSIMusicType;
10  struct BSMusicEvent;
11 
13  public BSTSingletonSDM<BSMusicManager>, // 00
14  public BSTEventSink<BSMusicEvent> // 08
15  {
16  public:
17  inline static constexpr auto RTTI = RTTI_BSMusicManager;
18  inline static constexpr auto VTABLE = VTABLE_BSMusicManager;
19 
20  ~BSMusicManager() override; // 00
21 
22  // override (BSTEventSink<BSMusicEvent>)
23  BSEventNotifyControl ProcessEvent(const BSMusicEvent* a_event, BSTEventSource<BSMusicEvent>* a_eventSource) override; // 01
24 
25  [[nodiscard]] static BSMusicManager* GetSingleton()
26  {
27  static REL::Relocation<BSMusicManager**> singleton{ RELOCATION_ID(514738, 400896) };
28  return *singleton;
29  }
30 
31  // members
34  std::uint32_t unk30; // 30
35  std::uint32_t pad34; // 34
36  };
37  static_assert(sizeof(BSMusicManager) == 0x38);
38 }
#define RELOCATION_ID(SE, AE)
Definition: PCH.h:505
Definition: Relocation.h:210
Definition: BSIMusicType.h:11
Definition: BSMusicManager.h:15
BSTArray< BSIMusicType * > musicQueue
Definition: BSMusicManager.h:32
std::uint32_t unk30
Definition: BSMusicManager.h:34
BSEventNotifyControl ProcessEvent(const BSMusicEvent *a_event, BSTEventSource< BSMusicEvent > *a_eventSource) override
static constexpr auto RTTI
Definition: BSMusicManager.h:17
std::uint32_t pad34
Definition: BSMusicManager.h:35
~BSMusicManager() override
static constexpr auto VTABLE
Definition: BSMusicManager.h:18
BSIMusicType * current
Definition: BSMusicManager.h:33
static BSMusicManager * GetSingleton()
Definition: BSMusicManager.h:25
Definition: BSTArray.h:378
Definition: BSTEvent.h:143
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BSMusicManager(static_cast< std::uint64_t >(691078))
constexpr std::array< REL::ID, 1 > VTABLE_BSMusicManager
Definition: Offsets_VTABLE.h:9262
BSEventNotifyControl
Definition: BSTEvent.h:12
Definition: BSMusicEvent.h:8
Definition: BSTSingleton.h:50