This repository has been archived by the owner on May 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ILLibs.h
97 lines (87 loc) · 4.15 KB
/
ILLibs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#pragma once
#include <QString>
#include <QStringList>
#include <QSet>
#include "Lua/lua.hpp"
#include <QCoreApplication>
#include <QMutex>
#include <QTime>
class ILLibs
{
static std::function<void(QString&)> console_mesFunction;
static std::function<void(QString&)> console_errFunction;
static std::function<void()> console_clsFunction;
static std::function<bool(QString&)> thread_finFunction;
static std::function<QStringList()> thread_lstFunction;
static std::function<bool(QString&)> thread_creFunction;
static std::function<bool(QString&)> thread_rmvFunction;
static std::function<bool(QString&)> thread_chkFunction;
static std::function<bool(QString&)> thread_desFunction;
static std::function<bool(QString&, QString&)> thread_runFunction;
static std::function<bool(QString&, QString&)> thread_execFunction;
static std::function<void()> thread_fluFunction;
static std::function<void* (QString&, QString&, size_t)> share_creFunction;
static std::function<bool(QString&, QString&)> share_finFunction;
static std::function<bool(QString&, QString&)> share_rmvFunction;
static std::function<size_t(QString&, QString&)> share_sizFunction;
static std::function<void* (QString&, QString&)> share_getFunction;
static std::function<bool(QString&)> share_cleFunction;
static std::function<QStringList(QString&)> share_lstFunction;
static std::function<void(QString&)> share_lckFunction;
static std::function<void(QString&)> share_ulkFunction;
public:
static void reg_mesFunctions(
std::function<void(QString&)> console_mesFunction,
std::function<void(QString&)> console_errFunction,
std::function<void()> cconsole_lsFunction
);
static void reg_thrFunctions(
std::function<bool(QString&)> thread_finFunction,
std::function<QStringList()> thread_lstFunction,
std::function<bool(QString&)> thread_creFunction,
std::function<bool(QString&)> thread_rmvFunction,
std::function<bool(QString&)> thread_chkFunction,
std::function<bool(QString&)> thread_desFunction,
std::function<bool(QString&, QString&)> thread_runFunction,
std::function<bool(QString&, QString&)> thread_execFunction,
std::function<void()> thread_fluFunction
);
static void reg_shrFunctions(
std::function<void* (QString&, QString&, size_t)> share_creFunction,
std::function<bool(QString&, QString&)> share_finFunction,
std::function<bool(QString&, QString&)> share_rmvFunction,
std::function<size_t(QString&, QString&)> share_sizFunction,
std::function<void* (QString&, QString&)> share_getFunction,
std::function<bool(QString&)> share_cleFunction,
std::function<QStringList(QString&)> share_lstFunction,
std::function<void(QString&)> share_lckFunction,
std::function<void(QString&)> share_ulkFunction
);
static int infinity_runtime_scriptPath(lua_State* state);
static int infinity_runtime_scriptDir(lua_State* state);
static int infinity_runtime_appPath(lua_State* state);
static int infinity_runtime_appDir(lua_State* state);
static int infinity_runtime_msleep(lua_State* state);
static int infinity_console_println(lua_State* state);
static int infinity_console_error(lua_State* state);
static int infinity_console_cls(lua_State* state);
static int infinity_thread_current(lua_State* state);
static int infinity_thread_find(lua_State* state);
static int infinity_thread_list(lua_State* state);
static int infinity_thread_create(lua_State* state);
static int infinity_thread_remove(lua_State* state);
static int infinity_thread_check(lua_State* state);
static int infinity_thread_destory(lua_State* state);
static int infinity_thread_run(lua_State* state);
static int infinity_thread_exec(lua_State* state);
static int infinity_thread_flush(lua_State* state);
static int infinity_thread_share_create(lua_State* state);
static int infinity_thread_share_find(lua_State* state);
static int infinity_thread_share_remove(lua_State* state);
static int infinity_thread_share_size(lua_State* state);
static int infinity_thread_share_get(lua_State* state);
static int infinity_thread_share_clear(lua_State* state);
static int infinity_thread_share_list(lua_State* state);
static int infinity_thread_share_lock(lua_State* state);
static int infinity_thread_share_unlock(lua_State* state);
};