LeviLamina
Loading...
Searching...
No Matches
Audio.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Editor::Settings { struct AudioProps; }
8namespace cereal { struct ReflectionCtx; }
9// clang-format on
10
11namespace Editor::Settings {
12
13class Audio {
14public:
15 // member variables
16 // NOLINTBEGIN
19 // NOLINTEND
20
21public:
22 // prevent constructor by default
23 Audio& operator=(Audio const&);
24 Audio(Audio const&);
25 Audio();
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCNAPI explicit Audio(::std::function<void(::Editor::Settings::AudioProps const&)> callback);
31
32 MCNAPI bool getAreSoundsMuted() const;
33
34 MCNAPI bool getIsMusicMuted() const;
35
36#ifdef LL_PLAT_C
37 MCNAPI ::Editor::Settings::AudioProps const& getProperties() const;
38#endif
39
40 MCNAPI void setAreSoundsMuted(bool newIsMuted);
41
42 MCNAPI void setIsMusicMuted(bool newIsMuted);
43
44 MCNAPI void updateSettings(::Editor::Settings::AudioProps const& props, bool notifyUpdate);
45
46 MCNAPI ~Audio();
47 // NOLINTEND
48
49public:
50 // static functions
51 // NOLINTBEGIN
52 MCNAPI static void bindType(::cereal::ReflectionCtx& ctx);
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCNAPI void* $ctor(::std::function<void(::Editor::Settings::AudioProps const&)> callback);
59 // NOLINTEND
60
61public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCNAPI void $dtor();
65 // NOLINTEND
66};
67
68} // namespace Editor::Settings
MCAPI bool getAreSoundsMuted() const
MCAPI void setIsMusicMuted(bool newIsMuted)
MCAPI void * $ctor(::std::function< void(::Editor::Settings::AudioProps const &)> callback)
MCAPI Audio(::std::function< void(::Editor::Settings::AudioProps const &)> callback)
MCAPI void updateSettings(::Editor::Settings::AudioProps const &props, bool notifyUpdate)
static MCAPI void bindType(::cereal::ReflectionCtx &ctx)
MCAPI bool getIsMusicMuted() const
MCAPI void setAreSoundsMuted(bool newIsMuted)
Definition AudioProps.h:7
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14