diff options
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 | } |