mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Separate jobs from workers.
This commit is contained in:
parent
97fe1101e3
commit
31af9efe94
@ -42,6 +42,7 @@ add_library(SqModule MODULE
|
||||
Library/IO.cpp Library/IO.hpp
|
||||
Library/IO/File.cpp Library/IO/File.hpp
|
||||
Library/IO/INI.cpp Library/IO/INI.hpp
|
||||
Library/Job.cpp Library/Job.hpp
|
||||
Library/MMDB.cpp Library/MMDB.hpp
|
||||
Library/Numeric.cpp Library/Numeric.hpp
|
||||
Library/Numeric/LongInt.cpp Library/Numeric/LongInt.hpp
|
||||
|
15
module/Library/Job.cpp
Normal file
15
module/Library/Job.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
#include "Library/Job.hpp"
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
namespace SqMod {
|
||||
|
||||
// ================================================================================================
|
||||
void Register_Job(HSQUIRRELVM vm)
|
||||
{
|
||||
Table jbns(vm);
|
||||
|
||||
RootTable(vm).Bind(_SC("SqJob"), jbns);
|
||||
}
|
||||
|
||||
} // Namespace:: SqMod
|
11
module/Library/Job.hpp
Normal file
11
module/Library/Job.hpp
Normal file
@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
#include "Base/Shared.hpp"
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
namespace SqMod {
|
||||
|
||||
|
||||
|
||||
} // Namespace:: SqMod
|
@ -34,6 +34,7 @@ extern void Register_CVehicle(HSQUIRRELVM vm);
|
||||
extern void Register_Chrono(HSQUIRRELVM vm);
|
||||
extern void Register_Crypt(HSQUIRRELVM vm);
|
||||
extern void Register_IO(HSQUIRRELVM vm);
|
||||
extern void Register_Job(HSQUIRRELVM vm);
|
||||
extern void Register_MMDB(HSQUIRRELVM vm);
|
||||
#ifdef SQ_ENABLE_MYSQL
|
||||
extern void Register_MySQL(HSQUIRRELVM vm);
|
||||
@ -89,6 +90,7 @@ bool RegisterAPI(HSQUIRRELVM vm)
|
||||
Register_Chrono(vm);
|
||||
Register_Crypt(vm);
|
||||
Register_IO(vm);
|
||||
Register_Job(vm);
|
||||
Register_MMDB(vm);
|
||||
#ifdef SQ_ENABLE_MYSQL
|
||||
Register_MySQL(vm);
|
||||
|
Loading…
Reference in New Issue
Block a user