mmm
This commit is contained in:
parent
5422d52065
commit
4f2631b349
24 changed files with 414 additions and 5665 deletions
30
computer/5/thief
Normal file
30
computer/5/thief
Normal file
|
@ -0,0 +1,30 @@
|
|||
W = window.create(term.native(),3,3,39,13)
|
||||
function thiefmirror()
|
||||
while true do
|
||||
id,mess = rednet.receive()
|
||||
if id == 3 then
|
||||
W[mess[1]](unpack(mess[2]))
|
||||
end
|
||||
end
|
||||
end
|
||||
function eventmirror()
|
||||
while true do
|
||||
event = {os.pullEventRaw()}
|
||||
if event[1] == "rednet_message" then
|
||||
|
||||
elseif event[1] == "modem_message" then
|
||||
|
||||
else
|
||||
rednet.send(
|
||||
3,
|
||||
event,
|
||||
"pocketevent"
|
||||
)
|
||||
--print(event)
|
||||
end
|
||||
end
|
||||
end
|
||||
parallel.waitForAll(
|
||||
thiefmirror,
|
||||
eventmirror
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue