CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
AudioListener.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
11
15
16namespace CeresEngine {
17
22 struct CE_SCRIPT_EXPORT() AudioListenerComponent final : public Component<AudioListenerComponent> {
23 struct Accessor;
24
27 double volume = 1.0;
28 };
29
31 using Component<AudioListenerComponent>::Accessor::Accessor;
32
33 public:
36 void mute() noexcept;
37
38 public:
40 [[nodiscard]] CE_SCRIPT_EXPORT()
41 double getVolume() const noexcept;
42
45 void setVolume(double volume) noexcept;
46 };
47
53
54} // namespace CeresEngine
55
#define CE_EXTERN_COMPONENT(T)
Definition Component.hpp:600
#define CE_SCRIPT_EXPORT(...)
The CE_SCRIPT_EXPORT macro marks a class or method as exportable and available in scripting environme...
Definition Macros.hpp:247
A type-safe entity type.
Definition Entity.hpp:538
Definition Application.hpp:19
Definition AudioListener.hpp:30
A component that represents a listener that hears audio sources.
Definition AudioListener.hpp:22
Components serve as the base for data storage for an entity.
Definition Component.hpp:68
Definition SceneObject.hpp:23