sys.h 513 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "sol/sol.hpp"
  3. #include "core/define.h"
  4. namespace module
  5. {
  6. /// <summary>
  7. /// 系统
  8. /// </summary>
  9. class sys {
  10. public:
  11. static std::string current_dir();
  12. static void sleep_msec(uint32 msec);
  13. static int64 random(int64 min, int64 max);
  14. static std::string current_filepath();
  15. static std::string temp_path();
  16. static std::string desktop_path();
  17. static std::string currentuser_path();
  18. static sol::table mac(sol::this_state s);
  19. static void regist(sol::state* lua);
  20. };
  21. }