Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local digTunnel = require("digTunnel")
- local digSquare = require("digSquare")
- local dioAPI = require("dioAPI")
- local MainInput = "start"
- while (mainInput ~= "exit") do
- if (mainInput == "start") then
- --ToDo
- end
- print("Olá, bóra?")
- mainInput = read()
- if (mainInput == "help") then
- print("Eis as opções atualmente implementadas")
- print("digTunnel -> Inicia a função de cavar")
- print("dioAPI -> Funções básicas de mobilidade")
- elseif (mainInput == "digTunnel") then
- digTunnel.digIt()
- elseif (mainInput == "digSquare") then
- digSquare.digSquare()
- -- THIS SHITSHOW HAS TO BE DONE ANYWHERE ELSE
- elseif (mainInput == "dioAPI") then
- local funcINput = "start"
- while (funcInput ~= "exit") do
- term.clear()
- term.setCursorPos(1,1)
- print("Qual função?")
- funcInput = read()
- if (funcInput == "gu") then
- print("Quantidade?")
- local qtd = tonumber(read())
- dioAPI.gu(qtd)
- elseif (funcINput == "gd") then
- print("Quantidade?")
- local qtd = tonumber(read())
- dioAPI.gd(qtd)
- elseif (funcInput == "ta") then
- dioAPI.ta()
- elseif (funcInput == "tl") then
- dioAPI.tl()
- elseif (funcInput == "tr") then
- dioAPI.tr()
- elseif (funcInput == "refuel") then
- print("Quantidade?")
- local qtd = tonumber(read())
- dioAPI.refuel(qtd)
- elseif (funcInput == "power") then
- dioAPI.power()
- elseif (funcInput == "w") then
- print("Quantidade?")
- local qtd = tonumber(read())
- dioAPI.w(qtd)
- elseif (funcInput == "a") then
- dioAPI.tl()
- elseif (funcInput == "s") then
- dioAPI.tr()
- elseif (funcINput == "d") then
- dioAPI.ta()
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment