mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
9d9217da2c
- 对旁观和重连进行优化,减轻服务器CPU负担 - 加强Lua与C++交互能力,现在可以直接传const QVariant &参数 - 借助上一条,删除了客户端侧代码绝大多数冗余的json.encode/JSON.parse - 微调swig代码减少生成量,将int映射到lua integer而不是number
45 lines
838 B
Lua
45 lines
838 B
Lua
-- SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
---@meta
|
|
|
|
-- Note: these files are not used by FreeKill.
|
|
-- Just for convenience when using sumneko.lua
|
|
|
|
---@alias null nil
|
|
---@alias bool boolean | nil
|
|
---@alias int integer
|
|
|
|
---@class fk
|
|
---FreeKill's lua API
|
|
fk = {}
|
|
|
|
---@class MarkEnum
|
|
---Special marks
|
|
MarkEnum = {}
|
|
|
|
---@class fk.SPlayerList
|
|
SPlayerList = {}
|
|
|
|
--- * get microsecond from Epoch
|
|
---@return integer microsecond
|
|
function fk:GetMicroSecond()end
|
|
|
|
function fk.QmlBackend_pwd()end
|
|
|
|
---@return string[]
|
|
function fk.QmlBackend_ls(filename)end
|
|
function fk.QmlBackend_cd(dir)end
|
|
|
|
---@return boolean
|
|
function fk.QmlBackend_exists(file)end
|
|
|
|
---@return boolean
|
|
function fk.QmlBackend_isDir(file)end
|
|
|
|
function fk.qCritical(msg) end
|
|
function fk.qInfo(msg) end
|
|
function fk.qDebug(msg) end
|
|
function fk.qWarning(msg) end
|
|
|
|
fk.FK_VER = '0.0.0'
|