LeviLamina
Loading...
Searching...
No Matches
LevelSoundManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/deps/core/utility/pub_sub/Connector.h"
8#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
9#include "mc/world/level/ILevelSoundManagerConnector.h"
10
11// auto generated forward declare list
12// clang-format off
13class IDimension;
15class Player;
17class Vec3;
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 LevelSoundManager& operator=(LevelSoundManager const&);
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 // vIndex: 1
47 virtual ::Bedrock::PubSub::Connector<void(
48 ::SharedTypes::Legacy::LevelSoundEvent,
49 ::Vec3 const&,
50 int,
52 bool,
53 bool
54 )>&
55 getOnLevelSoundEventConnector() /*override*/;
56
57 // vIndex: 2
58 virtual ::Bedrock::PubSub::Connector<void(::std::string const&, ::Vec3 const&, float, float)>&
59 getOnLevelSoundEventWithVolumeAndPitchConnector() /*override*/;
60
61 // vIndex: 3
62 virtual ::Bedrock::PubSub::Connector<void(::std::string const&)>& getOnStopLevelSoundEventConnector() /*override*/;
63
64 // vIndex: 4
65 virtual ::Bedrock::PubSub::Connector<void()>& getOnStopAllLevelSoundsEventConnector() /*override*/;
66
67 // vIndex: 5
68 virtual ::Bedrock::PubSub::Connector<void()>& getOnStopMusicEventConnector() /*override*/;
69
70 // vIndex: 0
71 virtual ~LevelSoundManager() /*override*/;
72 // NOLINTEND
73
74public:
75 // member functions
76 // NOLINTBEGIN
78 ::Bedrock::NotNullNonOwnerPtr<::SoundPlayerInterface> const& soundPlayer,
79 bool isClientSide,
80 ::Bedrock::NotNullNonOwnerPtr<::LevelEventCoordinator> levelEventCoordinator,
81 bool isServerAuthSoundEnabled
82 );
83
84 MCAPI void broadcastSoundEvent(
85 ::IDimension& dimension,
86 ::SharedTypes::Legacy::LevelSoundEvent type,
87 ::Vec3 const& pos,
88 int data,
89 ::ActorDefinitionIdentifier const& identifier,
90 bool isBabyMob,
91 bool isGlobal,
92 ::Player* primaryLocalPlayer
93 );
94
95 MCAPI void playPredictiveSynchronizedSound(
96 ::IDimension& dimension,
97 ::SharedTypes::Legacy::LevelSoundEvent type,
98 ::Vec3 const& pos,
99 ::Player* targetPlayer,
100 int data,
101 ::ActorDefinitionIdentifier const& entityType,
102 bool isBabyMob,
103 bool isGlobal
104 );
105
106 MCAPI void playSound(
107 ::SharedTypes::Legacy::LevelSoundEvent type,
108 ::Vec3 const& pos,
109 int data,
110 ::ActorDefinitionIdentifier const& entityType,
111 bool isBabyMob,
112 bool isGlobal
113 );
114 // NOLINTEND
115
116public:
117 // constructor thunks
118 // NOLINTBEGIN
119 MCAPI void* $ctor(
120 ::Bedrock::NotNullNonOwnerPtr<::SoundPlayerInterface> const& soundPlayer,
121 bool isClientSide,
122 ::Bedrock::NotNullNonOwnerPtr<::LevelEventCoordinator> levelEventCoordinator,
123 bool isServerAuthSoundEnabled
124 );
125 // NOLINTEND
126
127public:
128 // destructor thunk
129 // NOLINTBEGIN
130 MCAPI void $dtor();
131 // NOLINTEND
132
133public:
134 // virtual function thunks
135 // NOLINTBEGIN
136 MCFOLD ::Bedrock::PubSub::Connector<void(
137 ::SharedTypes::Legacy::LevelSoundEvent,
138 ::Vec3 const&,
139 int,
141 bool,
142 bool
143 )>&
144 $getOnLevelSoundEventConnector();
145
146 MCAPI ::Bedrock::PubSub::Connector<void(::std::string const&, ::Vec3 const&, float, float)>&
147 $getOnLevelSoundEventWithVolumeAndPitchConnector();
148
149 MCAPI ::Bedrock::PubSub::Connector<void(::std::string const&)>& $getOnStopLevelSoundEventConnector();
150
151 MCFOLD ::Bedrock::PubSub::Connector<void()>& $getOnStopAllLevelSoundsEventConnector();
152
153 MCAPI ::Bedrock::PubSub::Connector<void()>& $getOnStopMusicEventConnector();
154 // NOLINTEND
155
156public:
157 // vftables
158 // NOLINTBEGIN
159 MCAPI static void** $vftable();
160 // NOLINTEND
161};
Definition IDimension.h:23
Definition ILevelSoundManagerConnector.h:16
Definition LevelEventCoordinator.h:25
Definition LevelSoundManager.h:21
Definition Player.h:119
Definition SoundPlayerInterface.h:20
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:13
Definition Alias.h:14