3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/sound/LoopSoundStage.h"
7#include "mc/deps/core/string/HashedString.h"
8#include "mc/deps/ecs/WeakEntityRef.h"
9#include "mc/platform/brstd/function_ref.h"
10#include "mc/world/actor/player/PlayerListener.h"
11#include "mc/world/level/biome/BiomeIdType.h"
25 using PlaySoundFunc = ::brstd::function_ref<void(::HashedString
const&, ::Vec3
const&)>;
27 using LightThresholdFunc = ::brstd::function_ref<bool(::BrightnessPair, ::BlockPos
const&, ::BrightnessPair)>;
32 ::ll::TypedStorage<4, 4, ::LoopSoundStage> mLoopSoundStage;
33 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mLocalUser;
34 ::ll::TypedStorage<8, 8, ::SoundMapping const&> mSoundMap;
35 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mNextSoundChangeTime;
36 ::ll::TypedStorage<4, 4, int> mDelayUntilNextMoodSound;
37 ::ll::TypedStorage<2, 2, ::BiomeIdType> mTargetLoopBiomeId;
38 ::ll::TypedStorage<8, 48, ::HashedString> mTargetAmbientLoopSound;
39 ::ll::TypedStorage<2, 2, ::BiomeIdType> mCurrentLoopBiomeId;
40 ::ll::TypedStorage<8, 48, ::HashedString> mCurrentAmbientLoopSound;
41 ::ll::TypedStorage<8, 8, uint64> mCurrentLoop;
42 ::ll::TypedStorage<8, 8, uint64> mPreviousLoop;
43 ::ll::TypedStorage<4, 4, float> mCurrentVolume;
44 ::ll::TypedStorage<4, 4, float> mCurrentPitch;
49 AmbientSoundController& operator=(AmbientSoundController
const&);
50 AmbientSoundController(AmbientSoundController
const&);
51 AmbientSoundController();
56 virtual ~AmbientSoundController() =
default;
58 virtual void onWillChangeDimension(::Player& player) ;
60 virtual void onDimensionChanged(::Player& player) ;
62 virtual void onPlayerDestruction(::Player& player) ;
Definition AmbientSoundController.h:5
MCAPI void $onDimensionChanged(::Player &player)
MCAPI void _tryPlayAdditionSounds(::Vec3 const &listenerPos, ::brstd::function_ref< void(::HashedString const &, ::Vec3 const &)> const &playSoundFunc)
MCAPI void $onWillChangeDimension(::Player &player)
MCAPI void $onPlayerDestruction(::Player &player)
MCAPI void _tryPlayLoopSounds(::Vec3 const &listenerPos)
MCAPI void _stopLoopSound(bool hard)
MCAPI void _startLoopSound()
MCAPI AmbientSoundController(::WeakEntityRef localUser, ::SoundMapping const &soundMap)
MCAPI void _tryPlayMoodSound(::Vec3 const &listenerPos, ::brstd::function_ref< void(::HashedString const &, ::Vec3 const &)> const &playSoundFunc, ::brstd::function_ref< bool(::BrightnessPair, ::BlockPos const &, ::BrightnessPair)> lightThresholdFunc)
MCAPI void _addDelayOrTransitioningToNewStage()
MCAPI void * $ctor(::WeakEntityRef localUser, ::SoundMapping const &soundMap)
Definition HashedString.h:5
Definition PlayerListener.h:5
Definition SoundMapping.h:5
Definition WeakEntityRef.h:14
Definition function_ref.h:60
Definition BrightnessPair.h:8