From 6169348dee58e149e961123695629a96fac6ee24 Mon Sep 17 00:00:00 2001 From: xx Date: Tue, 4 Jun 2024 17:07:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/modulemanager.cpp | 4 ++++ src/module/timer.h | 14 +++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) 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);