about summary refs log tree commit diff stats
path: root/data/maps/the_parthenon/rooms/Main Area.txtpb
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-07 17:18:47 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-07 17:18:47 -0400
commitc0c5431800d0306d01814e9902566c9b4fc9220b (patch)
tree50d206c31bb7f535c3f2ca0b8d0f735c5a61f9a5 /data/maps/the_parthenon/rooms/Main Area.txtpb
parentc9da387ede51f207825b63d9f13036a7b661d4b3 (diff)
downloadlingo2-archipelago-c0c5431800d0306d01814e9902566c9b4fc9220b.tar.gz
lingo2-archipelago-c0c5431800d0306d01814e9902566c9b4fc9220b.tar.bz2
lingo2-archipelago-c0c5431800d0306d01814e9902566c9b4fc9220b.zip
Assign AP IDs to doors and panels proto
Diffstat (limited to 'data/maps/the_parthenon/rooms/Main Area.txtpb')
0 files changed, 0 insertions, 0 deletions
} /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#ifndef STEP_TYPE_H_38251870
#define STEP_TYPE_H_38251870

#include <string_view>
#include <stdexcept>

enum class StepType {
  none,
  wood,
  land_light,
  land,
  sand,
  water,
  mechanical,
  grass,
  unknown,
  paved,
  carpet,
  weak_wood
};

inline StepType stepTypeFromString(std::string_view str) {
  if (str == "wood") return StepType::wood;
  if (str == "land_light") return StepType::land_light;
  if (str == "land") return StepType::land;
  if (str == "sand") return StepType::sand;
  if (str == "water") return StepType::water;
  if (str == "mechanical") return StepType::mechanical;
  if (str == "grass") return StepType::grass;
  if (str == "unknown") return StepType::unknown;
  if (str == "paved") return StepType::paved;
  if (str == "carpet") return StepType::carpet;
  if (str == "weak_wood") return StepType::weak_wood;
  return StepType::none;
}

inline std::string_view runningSfxForStepType(StepType step) {
  switch (step) {
    case StepType::wood: return "../res/sfx/running_wood.wav";
    case StepType::land_light: return "../res/sfx/running_land_light.wav";
    case StepType::land: return "../res/sfx/running_land.wav";
    case StepType::sand: return "../res/sfx/running_sand.wav";
    case StepType::water: return "../res/sfx/running_water.wav";
    case StepType::mechanical: return "../res/sfx/running_mechanical.wav";
    case StepType::grass: return "../res/sfx/running_grass.wav";
    case StepType::unknown: return "../res/sfx/running_unknown.wav";
    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::none: throw std::invalid_argument("No running sfx for none step type");
  }
}

#endif /* end of include guard: STEP_TYPE_H_38251870 */