cli.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef CLI_HPP
  4. #define CLI_HPP
  5. #include "cbasetypes.hpp"
  6. #include "timer.hpp"
  7. #define MAX_CONSOLE_IN 200 //max is map...
  8. #define MIN_CONSOLE_IN 4 //min is help
  9. //map
  10. extern const char* MAP_CONF_NAME;
  11. extern const char* INTER_CONF_NAME;
  12. extern const char* LOG_CONF_NAME;
  13. extern const char* BATTLE_CONF_FILENAME;
  14. extern const char* ATCOMMAND_CONF_FILENAME;
  15. extern const char* SCRIPT_CONF_NAME;
  16. extern const char* GRF_PATH_FILENAME;
  17. //char
  18. extern const char* CHAR_CONF_NAME;
  19. extern const char* SQL_CONF_NAME;
  20. //login
  21. extern const char* LOGIN_CONF_NAME;
  22. //common
  23. extern const char* LAN_CONF_NAME; //char-login
  24. extern const char* MSG_CONF_NAME_EN; //all
  25. extern void display_helpscreen(bool exit);
  26. bool cli_hasevent();
  27. void display_versionscreen(bool do_exit);
  28. bool opt_has_next_value(const char* option, int i, int argc);
  29. int cli_get_options(int argc, char ** argv);
  30. TIMER_FUNC(parse_console_timer);
  31. extern int parse_console(const char* buf); //particular for each serv
  32. #endif /* CLI_HPP */