Updated Signals (markdown)

Florian Nücke 2014-03-14 01:52:21 -07:00
parent c1418616ab
commit 71e6faf9bc

@ -1,6 +1,6 @@
Signals are messages sent to a computer from some external source and can be used for many purposes. They always have at least a name, and may have any number of (simple) parameters. Note that computers may also queue signals on themselves.
Signals can be consumed using `[[computer.pullSignal()|API/Computer]]` or its preferred wrapper, `[[event.pull()|API/Event]]`.
Signals can be consumed using [[computer.pullSignal()|API/Computer]] or its preferred wrapper, [[event.pull()|API/Event]]. The latter is preferred because unwanted signals and the requested signal itself are also distributed as events, which is used by a couple of system functions, such as primary component tracking.
The following lists all signals triggered by components and the built-in libraries. They are listed in the following format: `name(arg: type, ...)`, meaning you would pull them like `local name, arg, ... = event.pull()`. For example, to pull a modem message:
```lua