diff --git a/server/autotest/testtask.lua b/server/autotest/testtask.lua new file mode 100644 index 00000000..2cc9e170 --- /dev/null +++ b/server/autotest/testtask.lua @@ -0,0 +1,14 @@ +-- 测试任务 +local log_debug = logger.debug +local log_err = logger.err + +local TestTask = singleton() +local prop = property(TestTask) +prop:reader("id", nil) + +function TestTask:__init() + +end + +quanta.testtask = TestTask() +return TestTask diff --git a/server/autotest/testtask_mgr.lua b/server/autotest/testtask_mgr.lua new file mode 100644 index 00000000..22e7877f --- /dev/null +++ b/server/autotest/testtask_mgr.lua @@ -0,0 +1,14 @@ +-- 任务管理 +local log_debug = logger.debug +local log_err = logger.err + +local TestTaskMgr = singleton() +local prop = property(TestTaskMgr) +prop:reader("id", nil) + +function TestTaskMgr:__init() + +end + +quanta.testtask_mgr = TestTaskMgr() +return TestTaskMgr