mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
4e25c032e6
* 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>
51 lines
1.2 KiB
Lua
51 lines
1.2 KiB
Lua
---@meta
|
|
|
|
---@class fk.Server
|
|
FServer = {}
|
|
|
|
---@type fk.Server
|
|
fk.ServerInstance = {}
|
|
|
|
---@class fk.Room
|
|
--- Room (C++)
|
|
FRoom = {}
|
|
|
|
---@param owner fk.ServerPlayer
|
|
---@param name string
|
|
---@param capacity integer
|
|
function FServer:createRoom(owner,name,capacity)end
|
|
|
|
---@param id integer
|
|
---@return fk.Room room
|
|
function FServer:findRoom(id)end
|
|
|
|
---@return fk.Room room
|
|
function FServer:lobby()end
|
|
|
|
---@param id integer
|
|
---@return fk.ServerPlayer player
|
|
function FServer:findPlayer(id)end
|
|
|
|
---@return fk.SQLite3 db
|
|
function FServer:getDatabase()end
|
|
|
|
function FRoom:getServer()end
|
|
function FRoom:getId()end
|
|
function FRoom:isLobby()end
|
|
function FRoom:getName()end
|
|
function FRoom:setName(name)end
|
|
function FRoom:getCapacity()end
|
|
function FRoom:setCapacity(capacity)end
|
|
function FRoom:isFull()end
|
|
function FRoom:isAbandoned()end
|
|
function FRoom:addPlayer(player)end
|
|
function FRoom:removePlayer(player)end
|
|
function FRoom:getOwner()end
|
|
function FRoom:setOwner(owner)end
|
|
function FRoom:getPlayers()end
|
|
function FRoom:findPlayer(id)end
|
|
function FRoom:getTimeout()end
|
|
function FRoom:isStarted()end
|
|
function FRoom:doBroadcastNotify(targets,command,jsonData)end
|
|
function FRoom:gameOver()end
|