LeviLamina
Loading...
Searching...
No Matches
CustomMusic.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/sound/Music.h"
7#include "mc/sound/MusicRepeatMode.h"
8
9class CustomMusic : public ::Music {
10public:
11 // CustomMusic inner types declare
12 // clang-format off
13 struct QueuedMusicItem;
14 // clang-format on
15
16 // CustomMusic inner types define
17 struct QueuedMusicItem {
18 public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 32, ::std::string> mEventName;
22 ::ll::TypedStorage<4, 4, float> mVolume;
23 ::ll::TypedStorage<4, 4, float> mFadeoutSeconds;
24 ::ll::TypedStorage<1, 1, ::MusicRepeatMode> mPlayMode;
25 // NOLINTEND
26 };
27
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<1, 1, ::MusicRepeatMode> mCurrentPlayMode;
32 ::ll::
33 TypedStorage<8, 40, ::std::queue<::CustomMusic::QueuedMusicItem, ::std::deque<::CustomMusic::QueuedMusicItem>>>
34 mMusicQueue;
35 ::ll::TypedStorage<1, 1, bool> _mIsActive;
36 // NOLINTEND
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual ~CustomMusic() /*override*/;
42
43 virtual bool hasTracks() const /*override*/;
44
45 virtual void nextTrack() /*override*/;
46
47 virtual void setActive(bool active) /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI void addQueuedMusic(
54 ::std::string const& eventName,
55 float volume,
56 float fadeoutSeconds,
57 ::MusicRepeatMode playMode,
58 bool treatFadeAsDelay
59 );
60
61 MCAPI void clearQueuedMusic();
62 // NOLINTEND
63
64public:
65 // destructor thunk
66 // NOLINTBEGIN
67 MCAPI void $dtor();
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73 MCAPI bool $hasTracks() const;
74
75 MCAPI void $nextTrack();
76
77 MCAPI void $setActive(bool active);
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85};
Definition CustomMusic.h:5
static MCAPI void ** $vftable()
Definition Music.h:5
Definition CustomMusic.h:13