2022-03-30 08:33:56 +00:00
|
|
|
---@meta
|
|
|
|
|
2022-03-31 05:29:23 +00:00
|
|
|
---@class fk.Server
|
2022-03-30 08:33:56 +00:00
|
|
|
FServer = {}
|
|
|
|
|
2022-03-31 05:29:23 +00:00
|
|
|
---@type fk.Server
|
|
|
|
fk.ServerInstance = {}
|
2022-03-30 08:33:56 +00:00
|
|
|
|
2022-03-31 05:29:23 +00:00
|
|
|
---@class fk.Room
|
2022-03-30 08:33:56 +00:00
|
|
|
--- Room (C++)
|
|
|
|
FRoom = {}
|
|
|
|
|
2022-03-31 05:29:23 +00:00
|
|
|
---@param owner fk.ServerPlayer
|
2022-03-30 08:33:56 +00:00
|
|
|
---@param name string
|
2022-04-01 12:51:01 +00:00
|
|
|
---@param capacity integer
|
2022-03-30 08:33:56 +00:00
|
|
|
function FServer:createRoom(owner,name,capacity)end
|
|
|
|
|
2022-04-01 12:51:01 +00:00
|
|
|
---@param id integer
|
2022-03-31 05:29:23 +00:00
|
|
|
---@return fk.Room room
|
2022-03-30 08:33:56 +00:00
|
|
|
function FServer:findRoom(id)end
|
|
|
|
|
2022-04-01 12:51:01 +00:00
|
|
|
---@return fk.Room room
|
|
|
|
function FServer:lobby()end
|
|
|
|
|
|
|
|
---@param id integer
|
2022-03-31 05:29:23 +00:00
|
|
|
---@return fk.ServerPlayer player
|
2022-03-30 08:33:56 +00:00
|
|
|
function FServer:findPlayer(id)end
|
|
|
|
|
2022-03-31 05:29:23 +00:00
|
|
|
---@return fk.SQLite3 db
|
2022-03-30 08:33:56 +00:00
|
|
|
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
|