增加功能
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -26,8 +26,20 @@ namespace module
|
||||
public:
|
||||
timer();
|
||||
~timer();
|
||||
|
||||
/// <summary>
|
||||
/// 增加
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="filepath"></param>
|
||||
/// <param name="funname"></param>
|
||||
/// <param name="msec"></param>
|
||||
/// <param name="loop"></param>
|
||||
/// <returns></returns>
|
||||
static std::string add(const std::string& name,const std::string& filepath,const std::string& funname,int msec,bool loop);
|
||||
/// <summary>
|
||||
/// 移除
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
static void remove(const std::string& name);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user