26 lines
859 B
Lua
26 lines
859 B
Lua
---@meta
|
|
|
|
---@class client: gearsobject
|
|
client = {}
|
|
|
|
---Commands the character to say "Hello {name}"
|
|
---@param name string
|
|
function client.hello(name) end
|
|
|
|
--- Get the number of instances.
|
|
--- @return integer # The number of client objects alive.
|
|
function client.instances() end
|
|
--- Set a __index metamethod for all client instances.
|
|
--- @param cb function The meta-method
|
|
function client.set_index_miss_handler(cb) end
|
|
--- Set a __newindex metamethod for all client instances.
|
|
--- @param cb function The meta-method
|
|
function client.set_newindex_miss_handler(cb) end
|
|
|
|
--- Get all clients into a table.
|
|
---
|
|
--- @param screen? integer|screen A screen number to filter clients on.
|
|
--- @param stacked? boolean Return clients in stacking order? (ordered from
|
|
--- top to bottom).
|
|
--- @return table # A table with clients.
|
|
function client.get(screen, stacked) end
|