aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/misc/SoundEffect.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-08-14 00:22:01 +0200
committer GitHub <noreply@github.com>2024-08-14 00:22:01 +0200
commit53bf0ac14be0fd7a049306d6e20c01030916fdc6 (patch)
treeb85022a240a4a24c0ee0fd44cd59ff6bc112c18f /src/openvic-simulation/misc/SoundEffect.hpp
parent9f9c5844bfedc5e366a35cdba386027fb9f3a14a (diff)
parent7e05aaccf0e13299702ddeed17661831c3ddc692 (diff)
Merge pull request #185 from OpenVicProject/assorted-fixes
Assorted minor fixes (clang-format.sh shebang, parse national foci sc…
Diffstat (limited to 'src/openvic-simulation/misc/SoundEffect.hpp')
-rw-r--r--src/openvic-simulation/misc/SoundEffect.hpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/openvic-simulation/misc/SoundEffect.hpp b/src/openvic-simulation/misc/SoundEffect.hpp
index 7f18dce..35d05dc 100644
--- a/src/openvic-simulation/misc/SoundEffect.hpp
+++ b/src/openvic-simulation/misc/SoundEffect.hpp
@@ -1,29 +1,31 @@
#pragma once
-#include <openvic-simulation/types/fixed_point/FixedPoint.hpp>
-#include <openvic-simulation/types/IdentifierRegistry.hpp>
+#include "openvic-simulation/types/fixed_point/FixedPoint.hpp"
+#include "openvic-simulation/types/IdentifierRegistry.hpp"
namespace OpenVic {
/*For interface/Sound.sfx */
struct SoundEffectManager;
+
struct SoundEffect : HasIdentifier {
- private:
friend struct SoundEffectManager;
+
+ private:
std::string PROPERTY(file);
fixed_point_t PROPERTY(volume);
+
SoundEffect(std::string_view new_identifier, std::string_view new_file, fixed_point_t new_volume);
-
+
public:
SoundEffect(SoundEffect&&) = default;
};
-
+
struct SoundEffectManager {
-
private:
- IdentifierRegistry<SoundEffect> IDENTIFIER_REGISTRY(sound_effect);
+ IdentifierRegistry<SoundEffect> IDENTIFIER_REGISTRY(sound_effect);
bool _load_sound_define(std::string_view sfx_identifier, ast::NodeCPtr root);
public:
bool load_sound_defines_file(ast::NodeCPtr root);
};
-} \ No newline at end of file
+}