From 1b0b97caf1316715e1b9502aba93fc642fdb4d8f Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 24 Feb 2021 13:13:28 -0500 Subject: Added running sound for vine ladders --- src/step_type.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/step_type.h') 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 { unknown, paved, carpet, - weak_wood + weak_wood, + ladder_vine }; inline StepType stepTypeFromString(std::string_view str) { @@ -31,6 +32,7 @@ inline StepType stepTypeFromString(std::string_view str) { if (str == "paved") return StepType::paved; if (str == "carpet") return StepType::carpet; if (str == "weak_wood") return StepType::weak_wood; + if (str == "ladder_vine") return StepType::ladder_vine; return StepType::none; } @@ -47,6 +49,7 @@ inline std::string_view runningSfxForStepType(StepType step) { case StepType::paved: return "../res/sfx/running_paved.wav"; case StepType::carpet: return "../res/sfx/running_carpet.wav"; case StepType::weak_wood: return "../res/sfx/running_weak_wood.wav"; + case StepType::ladder_vine: return "../res/sfx/running_ladder_vine.wav"; case StepType::none: throw std::invalid_argument("No running sfx for none step type"); } } -- cgit 1.4.1