mirror of
https://github.com/AR2000AR/openComputers_codes.git
synced 2025-09-08 06:31:14 +02:00
27 lines
1.1 KiB
Lua
27 lines
1.1 KiB
Lua
---@meta
|
|
|
|
---@class ComponentTunnel : Component
|
|
local tunnel = {}
|
|
|
|
---Sends the specified data to the card this one is linked to.
|
|
---@param ... string|number|boolean data
|
|
function tunnel.send(...) end
|
|
|
|
---Gets the maximum packet size (config setting).
|
|
---@return number
|
|
function tunnel.maxPacketSize() end
|
|
|
|
---Gets the tunnel address of the link card. This is also available in linkChannel using an inventory controller and getting the stack from an inventory slot.
|
|
---@return string
|
|
function tunnel.getChannel() end
|
|
|
|
---Gets the current wake-up message. When the network card detects the wake message (a string in the first argument of a network packet), on any port and the machine is off, the machine is started. This is the same functionality also provided by robots, cases, servers, drones, and tablets.
|
|
---@return string
|
|
function tunnel.getWakeMessage() end
|
|
|
|
---Sets the wake-up message to the specified string. The message matching can be fuzzy (default is false). A fuzzy match ignores additional trailing arguments in the network packet.
|
|
---@param message string
|
|
---@param fuzzy boolean
|
|
---@return string
|
|
function tunnel.setWakeMessage(message, fuzzy) end
|