We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The switch case in Skill.cpp is gross.
The text was updated successfully, but these errors were encountered:
Ok. Any alternative suggestions?
Sorry, something went wrong.
Just a normal switch case without any bizarre syntax changes.
It's pretty standard to write a switch like this for a function that has a 1:1 relationship between its single parameter and its return value.
For me it's a lot more readable to inline it than to break stuff out:
switch (type) { case SKILL_MELEE: return "melee"; case SKILL_BASH: return "bashing_weapons"; }
is far nicer & more readable than
switch (type) { case SKILL_MELEE: return "melee"; break; case SKILL_BASH: return "bashing_weapons"; break; }
in my opinion.
No branches or pull requests
The switch case in Skill.cpp is gross.
The text was updated successfully, but these errors were encountered: