CommonLibSSE NG
BGSMusicPaletteTrack.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BGSMusicTrack.h"
4 #include "RE/B/BSTArray.h"
5 
6 namespace RE
7 {
9  {
10  public:
11  inline static constexpr auto RTTI = RTTI_BGSMusicPaletteTrack;
12 
13  ~BGSMusicPaletteTrack() override; // 00
14 
15  // override (BGSMusicTrack)
16  void DoUpdate() override; // 01
17  void DoPlay() override; // 02
18  void DoPause() override; // 03
19  void DoFinish(bool a_arg1, float a_arg2) override; // 04
20  float GetDurationImpl() const override; // 05 - { return duration; }
21  TrackType GetType() const override; // 06 - "BGSMusicPaletteTrack"
22  void InitItem(TESForm* a_form) override; // 0B
23  void Load(TESFile* a_mod) override; // 0C
24 
25  // members
26  BSTArray<BSIMusicTrack*> layers[3]; // 20 - SNAM - tracks are split based on null entries on the record
27  std::int32_t playingIndexes[3]; // 68
28  float duration; // 74 - FLTV
29  float fadeOutTime; // 78 - DNAM
30  std::uint32_t pad7C; // 7C
31  std::uint64_t playTime; // 80
32  std::uint64_t pauseTime; // 88
33  };
34  static_assert(sizeof(BGSMusicPaletteTrack) == 0x90);
35 }
Definition: BGSMusicPaletteTrack.h:9
void DoUpdate() override
void Load(TESFile *a_mod) override
std::uint32_t pad7C
Definition: BGSMusicPaletteTrack.h:30
std::int32_t playingIndexes[3]
Definition: BGSMusicPaletteTrack.h:27
float duration
Definition: BGSMusicPaletteTrack.h:28
float GetDurationImpl() const override
TrackType GetType() const override
void DoPlay() override
void InitItem(TESForm *a_form) override
float fadeOutTime
Definition: BGSMusicPaletteTrack.h:29
static constexpr auto RTTI
Definition: BGSMusicPaletteTrack.h:11
BSTArray< BSIMusicTrack * > layers[3]
Definition: BGSMusicPaletteTrack.h:26
~BGSMusicPaletteTrack() override
std::uint64_t pauseTime
Definition: BGSMusicPaletteTrack.h:32
void DoFinish(bool a_arg1, float a_arg2) override
void DoPause() override
std::uint64_t playTime
Definition: BGSMusicPaletteTrack.h:31
Definition: BGSMusicTrack.h:12
TrackType
Definition: BSIMusicTrack.h:11
Definition: BSTArray.h:377
Definition: TESFile.h:17
Definition: TESForm.h:36
Definition: AbsorbEffect.h:6
constexpr REL::VariantID RTTI_BGSMusicPaletteTrack(685260, 393035, 0x1ee2748)