FreeKill/lua/lsp/player.lua
notify 9d9217da2c
Cppdev (#350)
- 对旁观和重连进行优化,减轻服务器CPU负担
- 加强Lua与C++交互能力,现在可以直接传const QVariant &参数
- 借助上一条,删除了客户端侧代码绝大多数冗余的json.encode/JSON.parse
- 微调swig代码减少生成量,将int映射到lua integer而不是number
2024-04-19 20:53:19 +08:00

26 lines
592 B
Lua

-- SPDX-License-Identifier: GPL-3.0-or-later
---@meta
---@class fk.Player
FPlayer = {}
function FPlayer:getId()end
function FPlayer:getScreenName()end
function FPlayer:getAvatar()end
---@class fk.ServerPlayer : fk.Player
FServerPlayer = {}
function FServerPlayer:doRequest(command,jsonData,timeout)end
function FServerPlayer:waitForReply(timeout)end
function FServerPlayer:doNotify(command,jsonData)end
function FServerPlayer:setBusy(_) end
function FServerPlayer:isBusy(_) end
function FServerPlayer:setThinking(_) end
function FServerPlayer:getState() end
---@type any
fk.Self = nil