[Commands] Cleanup #setlanguage Command. (#1705)

* [Commands] Cleanup #setlanguage Command.
- Cleanup message and lofic.
- Add GetLanguageName() helper and GetLanguageMap() for future use.

* Optimize GetLanguageName().
This commit is contained in:
Kinglykrab
2021-11-10 21:20:51 -05:00
committed by GitHub
parent b17c24d2df
commit aac0dd2993
3 changed files with 99 additions and 53 deletions
+3
View File
@@ -223,6 +223,9 @@ namespace EQ
const char *GetStanceName(StanceType stance_type);
int ConvertStanceTypeToIndex(StanceType stance_type);
extern const std::map<int, std::string>& GetLanguageMap();
std::string GetLanguageName(int language_id);
const int STANCE_TYPE_FIRST = stancePassive;
const int STANCE_TYPE_LAST = stanceBurnAE;
const int STANCE_TYPE_COUNT = stanceBurnAE;