LeviLamina
Loading...
Searching...
No Matches
ServerSoundInstance.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 ServerSoundRuntime { struct Definition; }
14// clang-format on
15
16class ServerSoundInstance {
17public:
18 // member variables
19 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 ServerSoundInstance& operator=(ServerSoundInstance const&);
32 ServerSoundInstance(ServerSoundInstance const&);
33 ServerSoundInstance();
34
35public:
36 // member functions
37 // NOLINTBEGIN
41 ::std::string soundEventId,
43 int loopCount,
44 ::std::optional<::NetworkIdentifierWithSubId> recipient
45 );
46
47 MCNAPI float getPlaybackPosition(::std::chrono::steady_clock::time_point now) const;
48
49 MCNAPI ::ServerSoundInstance& operator=(::ServerSoundInstance&& other);
50
51 MCNAPI void pause();
52
53 MCNAPI void resume();
54
55 MCNAPI void seekTo(float seconds);
56
57 MCNAPI void setPitch(float pitch);
58
59 MCNAPI void setVolume(float volume);
60
61 MCNAPI void stop();
62
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCNAPI void* $ctor(
72 ::std::string soundEventId,
74 int loopCount,
75 ::std::optional<::NetworkIdentifierWithSubId> recipient
76 );
77 // NOLINTEND
78
79public:
80 // destructor thunk
81 // NOLINTBEGIN
82 MCNAPI void $dtor();
83 // NOLINTEND
84};
Definition NonOwnerPointer.h:9
Definition ServerSoundHandle.h:5
Definition ServerSoundInstanceManager.h:19
MCAPI void seekTo(float seconds)
MCAPI ~ServerSoundInstance()
MCAPI void setPitch(float pitch)
MCAPI void stop()
MCAPI void resume()
MCAPI void setVolume(float volume)
MCAPI void * $ctor(::ServerSoundHandle handle, ::ServerSoundInstanceManager &manager, ::std::string soundEventId, ::Bedrock::NonOwnerPointer<::ServerSoundRuntime::Definition const > definition, int loopCount, ::std::optional<::NetworkIdentifierWithSubId > recipient)
MCAPI ServerSoundInstance(::ServerSoundHandle handle, ::ServerSoundInstanceManager &manager, ::std::string soundEventId, ::Bedrock::NonOwnerPointer<::ServerSoundRuntime::Definition const > definition, int loopCount, ::std::optional<::NetworkIdentifierWithSubId > recipient)
MCAPI float getPlaybackPosition(::std::chrono::steady_clock::time_point now) const
MCAPI::ServerSoundInstance & operator=(::ServerSoundInstance &&other)
MCAPI void $dtor()
MCAPI void pause()
Definition NetworkIdentifierWithSubId.h:10
Definition Definition.h:7
Definition Alias.h:14