-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assorted minor fixes (clang-format.sh shebang, parse national foci sc…
…ripts, factor song chance, update openvic-dataloader)
- Loading branch information
Showing
11 changed files
with
38 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule openvic-dataloader
updated
5 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
}; | ||
} | ||
} |