diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-24 13:13:28 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2021-02-24 16:00:53 -0500 |
commit | 1b0b97caf1316715e1b9502aba93fc642fdb4d8f (patch) | |
tree | f64de88b959f1b0c3b8b5491b3954d4e0c7375ae /src | |
parent | 2183e0b2a0a5bd9a3e15957b2ca27588574a169e (diff) | |
download | tanetane-1b0b97caf1316715e1b9502aba93fc642fdb4d8f.tar.gz tanetane-1b0b97caf1316715e1b9502aba93fc642fdb4d8f.tar.bz2 tanetane-1b0b97caf1316715e1b9502aba93fc642fdb4d8f.zip |
Added running sound for vine ladders
Diffstat (limited to 'src')
-rw-r--r-- | src/step_type.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/step_type.h b/src/step_type.h index a961a8f..0cbdad0 100644 --- a/src/step_type.h +++ b/src/step_type.h | |||
@@ -16,7 +16,8 @@ enum class StepType { | |||
16 | unknown, | 16 | unknown, |
17 | paved, | 17 | paved, |
18 | carpet, | 18 | carpet, |
19 | weak_wood | 19 | weak_wood, |
20 | ladder_vine | ||
20 | }; | 21 | }; |
21 | 22 | ||
22 | inline StepType stepTypeFromString(std::string_view str) { | 23 | inline StepType stepTypeFromString(std::string_view str) { |
@@ -31,6 +32,7 @@ inline StepType stepTypeFromString(std::string_view str) { | |||
31 | if (str == "paved") return StepType::paved; | 32 | if (str == "paved") return StepType::paved; |
32 | if (str == "carpet") return StepType::carpet; | 33 | if (str == "carpet") return StepType::carpet; |
33 | if (str == "weak_wood") return StepType::weak_wood; | 34 | if (str == "weak_wood") return StepType::weak_wood; |
35 | if (str == "ladder_vine") return StepType::ladder_vine; | ||
34 | return StepType::none; | 36 | return StepType::none; |
35 | } | 37 | } |
36 | 38 | ||
@@ -47,6 +49,7 @@ inline std::string_view runningSfxForStepType(StepType step) { | |||
47 | case StepType::paved: return "../res/sfx/running_paved.wav"; | 49 | case StepType::paved: return "../res/sfx/running_paved.wav"; |
48 | case StepType::carpet: return "../res/sfx/running_carpet.wav"; | 50 | case StepType::carpet: return "../res/sfx/running_carpet.wav"; |
49 | case StepType::weak_wood: return "../res/sfx/running_weak_wood.wav"; | 51 | case StepType::weak_wood: return "../res/sfx/running_weak_wood.wav"; |
52 | case StepType::ladder_vine: return "../res/sfx/running_ladder_vine.wav"; | ||
50 | case StepType::none: throw std::invalid_argument("No running sfx for none step type"); | 53 | case StepType::none: throw std::invalid_argument("No running sfx for none step type"); |
51 | } | 54 | } |
52 | } | 55 | } |