FreeKill/lua/vscode/lib.lua
Notify-ctrl 4e25c032e6
Skill (#9)
* TriggerSkill

* update type comment

* events of phases

* lua annotation

* change style of enums

* clear lua stack

* multi lua_State at server side

* disable addPlayer when room is full or started

* logic:trigger

Co-authored-by: Notify-ctrl <notify-ctrl@qq.com>
2022-04-01 20:51:01 +08:00

47 lines
822 B
Lua

---@meta
---@class class
---@field static any
--- middleclass
class = {}
---@param class class
---@return boolean
function class:isSubclassOf(class) end
---@class Object
---@field class class
Object = {}
---@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
---@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 table|number|string
function json.decode(str)end