mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 19:58:13 +08:00
9ac89caa1f
* android: dont copy RSA key and test.lua(generated by fkp) * remove debug code * ai think * fixbug: 100% cpu per thread * init ai * fix bug, next step is to remove all feasible * remame vscode -> lsp * add some lsp comment * rewrite feasible * Random AI * fixbug: chooseplayer * liuli * move checkNoHuman to waitForAiReply * prototype for cardLimitation skill * add Exppattern:Parse to static.lua * remove unnecessary static
47 lines
833 B
Lua
47 lines
833 B
Lua
---@meta
|
|
|
|
---@class class
|
|
---@field static any
|
|
--- middleclass
|
|
class = {}
|
|
|
|
---@param class class|Object
|
|
---@return boolean
|
|
function class:isSubclassOf(class) end
|
|
|
|
---@class Object
|
|
---@field class class
|
|
Object = { static = {} }
|
|
|
|
---@generic T
|
|
---@param self T
|
|
function Object:initialize(...) end
|
|
|
|
---@generic T
|
|
---@param self T
|
|
---@return T
|
|
function Object:new(...)end
|
|
|
|
---@param name string
|
|
function Object:subclass(name)end
|
|
|
|
---@param class class|Object
|
|
---@return boolean
|
|
function Object:isInstanceOf(class) end
|
|
|
|
---@param class class
|
|
---@return boolean
|
|
function Object:isSubclassOf(class) end
|
|
|
|
---@class json
|
|
json = {}
|
|
|
|
--- convert obj to JSON string
|
|
---@return string json
|
|
function json.encode(obj)end
|
|
|
|
--- convert JSON string to lua types
|
|
---@param str string @ JSON string to decode
|
|
---@return any
|
|
function json.decode(str)end
|