Created
July 17, 2018 20:57
-
-
Save MEXAHOTABOP/378721123f4d4646b5f991f1456e7ad9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local scan = require("scan") | |
local comp = require("component") | |
local serialization = require("serialization") | |
local tun = comp.tunnel | |
function main() | |
local scan_array = scan.scan(-8,-8,-8,16,16,16,3,2.5,3.5,false) | |
local prepared_array = serialization.serialize(scan_array) | |
if #prepared_array > tun.maxPacketSize() then | |
print("#prepared_array > tun.maxPacketSize() NIY") | |
os.exit() | |
end | |
tun.send("ore_scan",prepared_array) | |
comp.computer.beep() | |
end | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment