LeviLamina
Loading...
Searching...
No Matches
SoundEventRequest.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
8#include "mc/deps/shared_types/legacy/actor/ActorLocation.h"
9
10// auto generated forward declare list
11// clang-format off
12class Block;
16struct ActorUniqueID;
17// clang-format on
18
19struct SoundEventRequest {
20public:
21 // SoundEventRequest inner types declare
22 // clang-format off
23 struct ActorLocationData;
24 struct PlainData;
25 struct SoundData;
27 // clang-format on
28
29 // SoundEventRequest inner types define
30 struct ActorLocationData {
31 public:
32 // member variables
33 // NOLINTBEGIN
36 // NOLINTEND
37
38 public:
39 // prevent constructor by default
40 ActorLocationData& operator=(ActorLocationData const&);
41 ActorLocationData(ActorLocationData const&);
42 ActorLocationData();
43 };
44
45 struct PlainData {
46 public:
47 // member variables
48 // NOLINTBEGIN
55 // NOLINTEND
56
57 public:
58 // prevent constructor by default
59 PlainData& operator=(PlainData const&);
60 PlainData(PlainData const&);
61 PlainData();
62 };
63
64 struct SoundData {
65 public:
66 // member variables
67 // NOLINTBEGIN
70 // NOLINTEND
71
72 public:
73 // prevent constructor by default
74 SoundData& operator=(SoundData const&);
75 SoundData(SoundData const&);
76 SoundData();
77 };
78
79 struct SynchronizedPlainData {
80 public:
81 // member variables
82 // NOLINTBEGIN
89 // NOLINTEND
90
91 public:
92 // prevent constructor by default
93 SynchronizedPlainData& operator=(SynchronizedPlainData const&);
94 SynchronizedPlainData(SynchronizedPlainData const&);
95 SynchronizedPlainData();
96 };
97
98 using PositionVariant = ::std::variant<::Vec3, ::SoundEventRequest::ActorLocationData>;
99
100 using SoundDataVariant = ::std::variant<
104
105public:
106 // member variables
107 // NOLINTBEGIN
108 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mEvent;
109 ::ll::TypedStorage<
110 8,
111 208,
112 ::std::variant<
116 mData;
117 ::ll::TypedStorage<4, 16, ::std::variant<::Vec3, ::SoundEventRequest::ActorLocationData>> mPosition;
118 // NOLINTEND
119
120public:
121 // prevent constructor by default
122 SoundEventRequest& operator=(SoundEventRequest const&);
123 SoundEventRequest(SoundEventRequest const&);
124 SoundEventRequest();
125
126public:
127 // member functions
128 // NOLINTBEGIN
129 MCAPI SoundEventRequest(::SoundEventRequest&&);
130 // NOLINTEND
131
132public:
133 // static functions
134 // NOLINTBEGIN
135 MCAPI static ::std::optional<::SoundEventRequest> tryPlayPredictiveSynchronizedSound(
136 ::ActorDataFlagComponent const& actorFlags,
137 ::ActorDefinitionIdentifier const& identifier,
138 ::ActorUniqueID actorId,
139 ::DimensionType dimension,
140 ::SharedTypes::Legacy::LevelSoundEvent type,
141 ::Vec3 const& pos,
142 int data,
143 bool isGlobal
144 );
145
146 MCAPI static ::std::optional<::SoundEventRequest> tryPlayPredictiveSynchronizedSound(
147 ::ActorDataFlagComponent const& actorFlags,
148 ::ActorDefinitionIdentifier const& identifier,
149 ::ActorUniqueID actorId,
150 ::DimensionType dimension,
151 ::SharedTypes::Legacy::LevelSoundEvent type,
152 ::StrictEntityContext const& entity,
153 ::SharedTypes::Legacy::ActorLocation location,
154 int data,
155 bool isGlobal
156 );
157
158 MCAPI static ::std::optional<::SoundEventRequest> tryPlaySound(
159 ::ActorDataFlagComponent const& actorData,
160 ::SharedTypes::Legacy::LevelSoundEvent type,
161 ::StrictEntityContext const& entity,
162 ::SharedTypes::Legacy::ActorLocation location,
163 float volume,
164 float pitch
165 );
166
167 MCAPI static ::std::optional<::SoundEventRequest> tryPlaySound(
168 ::ActorDataFlagComponent const& actorFlags,
169 ::ActorDefinitionIdentifier const& identifier,
170 ::ActorUniqueID actorId,
171 ::DimensionType dimension,
172 ::SharedTypes::Legacy::LevelSoundEvent type,
173 ::StrictEntityContext const& entity,
174 ::SharedTypes::Legacy::ActorLocation location,
175 ::Block const& block
176 );
177
178 MCAPI static ::std::optional<::SoundEventRequest> tryPlaySound(
179 ::ActorDataFlagComponent const& actorFlags,
180 ::ActorDefinitionIdentifier const& identifier,
181 ::ActorUniqueID actorId,
182 ::DimensionType dimension,
183 ::SharedTypes::Legacy::LevelSoundEvent type,
184 ::StrictEntityContext const& entity,
185 ::SharedTypes::Legacy::ActorLocation location,
186 int data
187 );
188 // NOLINTEND
189
190public:
191 // constructor thunks
192 // NOLINTBEGIN
193 MCAPI void* $ctor(::SoundEventRequest&&);
194 // NOLINTEND
195};
Definition Block.h:69
Definition StrictEntityContext.h:14
Definition Vec3.h:10
Definition ActorDataFlagComponent.h:10
Definition ActorDefinitionIdentifier.h:15
Definition ActorUniqueID.h:10
Definition SoundEventRequest.h:30
Definition SoundEventRequest.h:45
Definition SoundEventRequest.h:64
Definition SoundEventRequest.h:79
Definition Alias.h:14