new documentation and some fixes in code
This commit is contained in:
36
docs/lua/Client.lua
Normal file
36
docs/lua/Client.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
-- luacheck: ignore 111
|
||||
|
||||
--[[--
|
||||
Barotrauma Character class with some additional functions and fields
|
||||
|
||||
Barotrauma source code: [Client.cs](https://github.com/evilfactory/Barotrauma-lua-attempt/blob/master/Barotrauma/BarotraumaShared/SharedSource/Networking/Client.cs)
|
||||
]]
|
||||
-- @code Client
|
||||
|
||||
local myClient = {}
|
||||
|
||||
--- Sets the client character.
|
||||
-- @realm server
|
||||
function myClient.SetClientCharacter(character) end
|
||||
|
||||
--- Kick a client.
|
||||
-- @realm server
|
||||
function myClient.Kick(reason) end
|
||||
|
||||
--- Ban a client.
|
||||
-- @realm server
|
||||
function myClient.Ban(reason, range, seconds) end
|
||||
|
||||
--- Checks permissions, Client.Permissions.
|
||||
-- @realm server
|
||||
function myClient.CheckPermission(permissions) end
|
||||
|
||||
--- Unban a client.
|
||||
-- @realm server
|
||||
function Unban(player, endpoint) end
|
||||
|
||||
|
||||
--- List of all connected clients.
|
||||
-- @treturn table
|
||||
-- @realm shared
|
||||
ClientList = {}
|
||||
Reference in New Issue
Block a user