engine/commands/equipment/source/EquipmentKeyboardCommandMap.cpp
// Settings currently does nothing here.
Settings currently does nothing here.
Settings currently does nothing here .
void EquipmentKeyboardCommandMap::initialize_command_mapping(const Settings& settings)
{
  command_mapping.clear();
  string esc_str;
  esc_str = NC_ESCAPE_KEY;
  command_mapping = KeyboardCommandMappingMap{ {"a", EquipmentCommandKeys::WEAR_OR_REMOVE_HEAD},
                        {"A", EquipmentCommandKeys::CODEX},
                        {"b", EquipmentCommandKeys::WEAR_OR_REMOVE_NECK},
                        {"B", EquipmentCommandKeys::CODEX},
                        {"c", EquipmentCommandKeys::WEAR_OR_REMOVE_RIGHT_FINGER},
                        {"C", EquipmentCommandKeys::CODEX},
                        {"d", EquipmentCommandKeys::WEAR_OR_REMOVE_LEFT_FINGER},
                        {"D", EquipmentCommandKeys::CODEX},
                        {"e", EquipmentCommandKeys::WEAR_OR_REMOVE_WIELDED},
                        {"E", EquipmentCommandKeys::CODEX},
                        {"f", EquipmentCommandKeys::WEAR_OR_REMOVE_OFF_HAND},
                        {"F", EquipmentCommandKeys::CODEX},
                        {"g", EquipmentCommandKeys::WEAR_OR_REMOVE_BODY},
                        {"G", EquipmentCommandKeys::CODEX},
                        {"h", EquipmentCommandKeys::WEAR_OR_REMOVE_AROUND_BODY},
                        {"H", EquipmentCommandKeys::CODEX},
                        {"i", EquipmentCommandKeys::WEAR_OR_REMOVE_FEET},
                        {"I", EquipmentCommandKeys::CODEX},
                        {"j", EquipmentCommandKeys::WEAR_OR_REMOVE_RANGED},
                        {"J", EquipmentCommandKeys::CODEX},
                        {"k", EquipmentCommandKeys::WEAR_OR_REMOVE_AMMUNITION},
                        {"K", EquipmentCommandKeys::CODEX},
                        {"y", EquipmentCommandKeys::YOUR_ITEMS},
                        {"Y", EquipmentCommandKeys::YOUR_ITEMS},
                        {"z", EquipmentCommandKeys::EXIT_EQUIPMENT},
                        {"Z", EquipmentCommandKeys::EXIT_EQUIPMENT},
                        {esc_str, EquipmentCommandKeys::EXIT_EQUIPMENT}
                        };
}
void EquipmentKeyboardCommandMap :: initialize_command_mapping ( const Settings & settings ) { command_mapping . clear ( ) ; string esc_str ; esc_str = NC_ESCAPE_KEY ; command_mapping = KeyboardCommandMappingMap { { " " , EquipmentCommandKeys :: WEAR_OR_REMOVE_HEAD } , { " " , EquipmentCommandKeys :: CODEX } , { " " , EquipmentCommandKeys :: WEAR_OR_REMOVE_NECK } , { " " , EquipmentCommandKeys :: CODEX } , { " " , EquipmentCommandKeys :: WEAR_OR_REMOVE_RIGHT_FINGER } , { " " , EquipmentCommandKeys :: CODEX } , { " " , EquipmentCommandKeys :: WEAR_OR_REMOVE_LEFT_FINGER } , { " " , EquipmentCommandKeys :: CODEX } , { " " , EquipmentCommandKeys :: WEAR_OR_REMOVE_WIELDED } , { " " , EquipmentCommandKeys :: CODEX } , { " " , EquipmentCommandKeys :: WEAR_OR_REMOVE_OFF_HAND } , { " " , EquipmentCommandKeys :: CODEX } , { " " , EquipmentCommandKeys :: WEAR_OR_REMOVE_BODY } , { " " , EquipmentCommandKeys :: CODEX } , { " " , EquipmentCommandKeys :: WEAR_OR_REMOVE_AROUND_BODY } , { " " , EquipmentCommandKeys :: CODEX } , { " " , EquipmentCommandKeys :: WEAR_OR_REMOVE_FEET } , { " " , EquipmentCommandKeys :: CODEX } , { " " , EquipmentCommandKeys :: WEAR_OR_REMOVE_RANGED } , { " " , EquipmentCommandKeys :: CODEX } , { " " , EquipmentCommandKeys :: WEAR_OR_REMOVE_AMMUNITION } , { " " , EquipmentCommandKeys :: CODEX } , { " " , EquipmentCommandKeys :: YOUR_ITEMS } , { " " , EquipmentCommandKeys :: YOUR_ITEMS } , { " " , EquipmentCommandKeys :: EXIT_EQUIPMENT } , { " " , EquipmentCommandKeys :: EXIT_EQUIPMENT } , { esc_str , EquipmentCommandKeys :: EXIT_EQUIPMENT } } ; }
Settings currently does nothing here.
Settings currently does nothing here .