3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/controls/ComponentReceiveActionType.h"
7#include "mc/client/gui/controls/SoundEventConditions.h"
8#include "mc/client/gui/controls/UIComponent.h"
9#include "mc/client/gui/screens/ScreenEventType.h"
33 ::ll::TypedStorage<8, 32, ::std::string> mSoundName;
34 ::ll::TypedStorage<4, 4, float> mVolume;
35 ::ll::TypedStorage<4, 4, float> mPitch;
36 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mLastPlayTime;
37 ::ll::TypedStorage<8, 8, ::std::chrono::milliseconds> mMinTimeBetweenPlays;
38 ::ll::TypedStorage<4, 4, ::ScreenEventType> mScreenEventType;
39 ::ll::TypedStorage<4, 8, ::SoundEventConditions> mEventConditions;
46 ::ll::TypedStorage<8, 8, ::UISoundPlayer const*> mSoundPlayer;
47 ::ll::TypedStorage<4, 4, float> mVolume;
48 ::ll::TypedStorage<4, 4, float> mPitch;
49 ::ll::TypedStorage<8, 32, ::std::string> mSoundName;
50 ::ll::TypedStorage<8, 24, ::std::vector<::SoundComponent::SoundEventInfo>> mSoundEvents;
56 virtual ~SoundComponent() =
default;
58 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
60 virtual void reset() ;
62 virtual ::ComponentReceiveActionType receive(::ScreenEvent
const& screenEvent) ;
64 virtual ::ComponentReceiveActionType receive(
65 ::VisualTree& visualTree,
66 ::ScreenInputContext& context,
67 ::UIAnimationController& animationController,
68 ::ScreenEvent
const& screenEvent
75 MCAPI
void addSoundEvent(
76 ::std::string
const& soundName,
79 ::std::chrono::milliseconds minTimeBetweenPlays,
80 ::ScreenEventType screenEventType,
81 ::SoundEventConditions
const& screenEventConditions
88 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner)
const;
92 MCAPI ::ComponentReceiveActionType $receive(::ScreenEvent
const& screenEvent);
94 MCAPI ::ComponentReceiveActionType $receive(
95 ::VisualTree& visualTree,
96 ::ScreenInputContext& context,
97 ::UIAnimationController& animationController,
98 ::ScreenEvent
const& screenEvent
Definition ScreenInputContext.h:5
Definition SoundComponent.h:5
static MCAPI void ** $vftable()
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition UISoundPlayer.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5
Definition SoundComponent.h:13