Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ServerAudioContentRegistry.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
8// auto generated forward declare list
9// clang-format off
13namespace Audio { class IAudioContentVerifier; }
14namespace cereal { struct ReflectionCtx; }
15// clang-format on
16
17class ServerAudioContentRegistry {
18public:
19 // ServerAudioContentRegistry inner types declare
20 // clang-format off
22 // clang-format on
23
24 // ServerAudioContentRegistry inner types define
25 enum class RegisterResult : int {
26 Success = 0,
27 VerificationFailed = 1,
28 UnsupportedSchema = 2,
29 InvalidServerDefinition = 3,
30 ConflictingContent = 4,
31 };
32
33 struct RegisteredAudioContent {
34 public:
35 // member variables
36 // NOLINTBEGIN
41 // NOLINTEND
42
43 public:
44 // prevent constructor by default
45 RegisteredAudioContent& operator=(RegisteredAudioContent const&);
46 RegisteredAudioContent(RegisteredAudioContent const&);
47 RegisteredAudioContent();
48
49 public:
50 // member functions
51 // NOLINTBEGIN
53 // NOLINTEND
54
55 public:
56 // destructor thunk
57 // NOLINTBEGIN
58 MCNAPI void $dtor();
59 // NOLINTEND
60 };
61
62public:
63 // member variables
64 // NOLINTBEGIN
69 // NOLINTEND
70
71public:
72 // prevent constructor by default
73 ServerAudioContentRegistry& operator=(ServerAudioContentRegistry const&);
74 ServerAudioContentRegistry(ServerAudioContentRegistry const&);
75 ServerAudioContentRegistry();
76
77public:
78 // member functions
79 // NOLINTBEGIN
81 ::Bedrock::NotNullNonOwnerPtr<::ServerSoundDefinitionRegistry> const& serverSoundDefinitionRegistry
82 );
83
84 MCNAPI bool
85 _removeAudioContentOwner(::ServerSoundDefinitionPlayer const& owner, ::std::string const& audioContentId);
86
87 MCNAPI ::ServerAudioContentRegistry::RegisterResult registerAudioContent(
90 ::AudioContentRegistration audioContentRegistration,
91 ::Audio::IAudioContentVerifier const& verifier
92 );
93
95 // NOLINTEND
96
97public:
98 // constructor thunks
99 // NOLINTBEGIN
100 MCNAPI void*
101 $ctor(::Bedrock::NotNullNonOwnerPtr<::ServerSoundDefinitionRegistry> const& serverSoundDefinitionRegistry);
102 // NOLINTEND
103};
Definition IAudioContentVerifier.h:17
MCAPI::ServerAudioContentRegistry::RegisterResult registerAudioContent(::cereal::ReflectionCtx const &ctx, ::ServerSoundDefinitionPlayer const &owner, ::AudioContentRegistration audioContentRegistration, ::Audio::IAudioContentVerifier const &verifier)
MCAPI void * $ctor(::Bedrock::NotNullNonOwnerPtr<::ServerSoundDefinitionRegistry > const &serverSoundDefinitionRegistry)
MCAPI bool _removeAudioContentOwner(::ServerSoundDefinitionPlayer const &owner, ::std::string const &audioContentId)
MCAPI void removeDefinitionsForOwner(::ServerSoundDefinitionPlayer const &owner)
MCAPI ServerAudioContentRegistry(::Bedrock::NotNullNonOwnerPtr<::ServerSoundDefinitionRegistry > const &serverSoundDefinitionRegistry)
Definition ServerSoundDefinitionRegistry.h:18
Definition AudioContentRegistration.h:5
Definition ServerAudioContentRegistry.h:33
Definition ServerSoundDefinitionPlayer.h:5
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14