20 lines
541 B
Lua
20 lines
541 B
Lua
local TestingController = require("controller.testing_controller")
|
|
local VolumeExcavationController = require("controller.volume_excavation_controller")
|
|
|
|
|
|
local controllers = {
|
|
TestingController:Create(),
|
|
VolumeExcavationController:Create(),
|
|
}
|
|
|
|
print("Multiple controllers are available:")
|
|
print("1: Testing Mode")
|
|
print("2: Volume Excavation")
|
|
|
|
local choice = 0
|
|
while choice < 1 or choice > #controllers do
|
|
print("Choose a controller by entering its number:")
|
|
choice = tonumber(io.read()) or 0
|
|
end
|
|
|
|
controllers[choice]:Run() |