2023-04-09 13:35:35 +08:00
|
|
|
-- SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2022-03-30 16:33:56 +08:00
|
|
|
---@meta
|
|
|
|
|
|
|
|
-- Note: these files are not used by FreeKill.
|
|
|
|
-- Just for convenience when using sumneko.lua
|
|
|
|
|
2023-06-23 22:18:11 +08:00
|
|
|
---@alias null nil
|
|
|
|
|
2022-03-31 13:29:23 +08:00
|
|
|
---@class fk
|
2022-03-30 16:33:56 +08:00
|
|
|
---FreeKill's lua API
|
2022-03-31 13:29:23 +08:00
|
|
|
fk = {}
|
2022-03-30 16:33:56 +08:00
|
|
|
|
2023-05-13 14:20:34 +08:00
|
|
|
---@class MarkEnum
|
|
|
|
---Special marks
|
|
|
|
MarkEnum = {}
|
|
|
|
|
2022-03-31 13:29:23 +08:00
|
|
|
---@class fk.SPlayerList
|
2022-03-30 16:33:56 +08:00
|
|
|
SPlayerList = {}
|
|
|
|
|
|
|
|
--- * get microsecond from Epoch
|
2022-04-01 20:51:01 +08:00
|
|
|
---@return integer microsecond
|
2022-03-31 13:29:23 +08:00
|
|
|
function fk:GetMicroSecond()end
|
2022-03-30 16:33:56 +08:00
|
|
|
|
|
|
|
--- construct a QList<ServerPlayer *>.
|
2022-03-31 13:29:23 +08:00
|
|
|
---@return fk.SPlayerList
|
|
|
|
function fk:SPlayerList()end
|
2022-03-30 16:33:56 +08:00
|
|
|
|
2022-03-31 13:29:23 +08:00
|
|
|
function fk.QmlBackend_pwd()end
|
2023-02-26 15:01:14 +08:00
|
|
|
|
|
|
|
---@return string[]
|
2022-03-31 13:29:23 +08:00
|
|
|
function fk.QmlBackend_ls(filename)end
|
|
|
|
function fk.QmlBackend_cd(dir)end
|
2023-02-26 15:01:14 +08:00
|
|
|
|
|
|
|
---@return boolean
|
2022-03-31 13:29:23 +08:00
|
|
|
function fk.QmlBackend_exists(file)end
|
2023-02-26 15:01:14 +08:00
|
|
|
|
|
|
|
---@return boolean
|
2022-03-31 13:29:23 +08:00
|
|
|
function fk.QmlBackend_isDir(file)end
|
2023-06-23 22:18:11 +08:00
|
|
|
|
|
|
|
function fk.qCritical(msg) end
|
|
|
|
function fk.qInfo(msg) end
|
|
|
|
function fk.qDebug(msg) end
|
|
|
|
function fk.qWarning(msg) end
|