diff --git a/src/core/modulemanager.cpp b/src/core/modulemanager.cpp index e596a62..a1c9c7a 100644 --- a/src/core/modulemanager.cpp +++ b/src/core/modulemanager.cpp @@ -26,6 +26,8 @@ #include "module/file.h" #include "module/sys.h" #include "module/timer.h" +#include "module/process.h" +#include "module/ini.h" module_manager::module_manager() { } @@ -129,6 +131,8 @@ void module_manager::load_core(sol::state* lua) module::file::regist(lua); module::sys::regist(lua); module::timer::regist(lua); + module::ini::regist(lua); + module::process::regist(lua); global::getInstance()->regist_lua(lua); diff --git a/src/module/timer.h b/src/module/timer.h index 3ee579c..ee82a4a 100644 --- a/src/module/timer.h +++ b/src/module/timer.h @@ -26,8 +26,20 @@ namespace module public: timer(); ~timer(); - + /// + /// 增加 + /// + /// + /// + /// + /// + /// + /// static std::string add(const std::string& name,const std::string& filepath,const std::string& funname,int msec,bool loop); + /// + /// 移除 + /// + /// static void remove(const std::string& name);