Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ScriptSoundDefinition.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/string/HashedString.h"
7#include "mc/deps/script_core/lifetime_registry/scripting/StrongTypedObjectHandle.h"
8#include "mc/scripting/modules/minecraft/sound/ScriptSoundDefinitionDurationInfo.h"
9#include "mc/scripting/modules/minecraft/sound/ScriptSoundDefinitionMusicInfo.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace Scripting { class WeakLifetimeScope; }
14namespace Scripting { struct ClassBinding; }
15namespace ServerSoundRuntime { struct Definition; }
16// clang-format on
17
18namespace ScriptModuleMinecraft {
19
20class ScriptSoundDefinition {
21public:
22 // ScriptSoundDefinition inner types declare
23 // clang-format off
24 struct Key;
25 // clang-format on
26
27 // ScriptSoundDefinition inner types define
28 struct Key {
29 public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 48, ::HashedString> mId;
33 // NOLINTEND
34
35 public:
36 // member functions
37 // NOLINTBEGIN
38 MCNAPI ~Key();
39 // NOLINTEND
40
41 public:
42 // destructor thunk
43 // NOLINTBEGIN
44 MCNAPI void $dtor();
45 // NOLINTEND
46 };
47
48public:
49 // member variables
50 // NOLINTBEGIN
51 ::ll::TypedStorage<8, 32, ::std::string> mSoundEventId;
52 ::ll::TypedStorage<4, 8, ::std::optional<::ScriptModuleMinecraft::ScriptSoundDefinitionDurationInfo>> mDurationInfo;
53 ::ll::TypedStorage<8, 152, ::std::optional<::ScriptModuleMinecraft::ScriptSoundDefinitionMusicInfo>> mMusicInfo;
54 ::ll::TypedStorage<8, 72, ::std::optional<::std::unordered_map<::std::string, ::std::vector<::std::string>>>> mTags;
55 // NOLINTEND
56
57public:
58 // prevent constructor by default
59 ScriptSoundDefinition& operator=(ScriptSoundDefinition const&);
60 ScriptSoundDefinition();
61
62public:
63 // member functions
64 // NOLINTBEGIN
66
68 // NOLINTEND
69
70public:
71 // static functions
72 // NOLINTBEGIN
73 MCNAPI static ::Scripting::ClassBinding bind();
74
75 MCNAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptSoundDefinition>
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
83 // NOLINTEND
84
85public:
86 // destructor thunk
87 // NOLINTBEGIN
88 MCNAPI void $dtor();
89 // NOLINTEND
90};
91
92} // namespace ScriptModuleMinecraft
Definition ScriptSoundDefinition.h:20
static MCAPI ::Scripting::ClassBinding bind()
static MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptSoundDefinition > getOrCreateHandle(::Scripting::WeakLifetimeScope const &scope, ::ServerSoundRuntime::Definition const &definition)
MCAPI ScriptSoundDefinition(::ScriptModuleMinecraft::ScriptSoundDefinition const &)
MCAPI void * $ctor(::ScriptModuleMinecraft::ScriptSoundDefinition const &)
Definition WeakLifetimeScope.h:12
Definition ScriptSoundDefinition.h:28
Definition ClassBinding.h:10
Definition Definition.h:7