diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-01-03 10:42:31 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-01-03 10:42:31 +0100 |
| commit | 5c1c1f18b0e2cebaae277c15c66c8dcc7b209ecd (patch) | |
| tree | af69e65ea71854fe4b2cf2096b59a8812ddb4cd0 /mumlib/src | |
| parent | be7748be2f1e9d1e88ebd093da9eec16d1ad4049 (diff) | |
| download | mum-5c1c1f18b0e2cebaae277c15c66c8dcc7b209ecd.tar.gz | |
load sound effects by file name
Diffstat (limited to 'mumlib/src')
| -rw-r--r-- | mumlib/src/config.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mumlib/src/config.rs b/mumlib/src/config.rs index 5987ab9..0a43253 100644 --- a/mumlib/src/config.rs +++ b/mumlib/src/config.rs @@ -47,9 +47,16 @@ impl Config { } #[derive(Clone, Debug, Default, Deserialize, Serialize)] +pub struct SoundEffect { + pub event: String, + pub file: String, +} + +#[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct AudioConfig { pub input_volume: Option<f32>, pub output_volume: Option<f32>, + pub sound_effects: Option<Vec<SoundEffect>>, } #[derive(Clone, Debug, Deserialize, Serialize)] |
