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