48 lines
1.1 KiB
Lua
48 lines
1.1 KiB
Lua
|
---@meta
|
||
|
|
||
|
---@class freekill.Server
|
||
|
FServer = {}
|
||
|
|
||
|
---@type freekill.Server
|
||
|
freekill.ServerInstance = {}
|
||
|
|
||
|
---@class freekill.Room
|
||
|
--- Room (C++)
|
||
|
FRoom = {}
|
||
|
|
||
|
---@param owner freekill.ServerPlayer
|
||
|
---@param name string
|
||
|
---@param capacity number
|
||
|
function FServer:createRoom(owner,name,capacity)end
|
||
|
|
||
|
---@param id number
|
||
|
---@return freekill.Room room
|
||
|
function FServer:findRoom(id)end
|
||
|
|
||
|
---@param id number
|
||
|
---@return freekill.ServerPlayer player
|
||
|
function FServer:findPlayer(id)end
|
||
|
|
||
|
---@return freekill.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
|