mirror of
https://github.com/S4mpsa/InfOS.git
synced 2025-08-03 09:56:01 -04:00
28 lines
597 B
Lua
Executable File
28 lines
597 B
Lua
Executable File
-- Import section
|
|
Parser = require("utils.parser")
|
|
Inherits = require("utils.inherits")
|
|
SingleBlock = require("data.datasource.single-block")
|
|
local mock = require("data.mock.mock-miner")
|
|
--
|
|
|
|
local Miner =
|
|
Inherits(
|
|
SingleBlock,
|
|
{
|
|
mock = mock,
|
|
name = "MultiBlock"
|
|
}
|
|
)
|
|
|
|
function Miner:getName()
|
|
local sensorInformation = self:getSensorInformation()
|
|
return Parser.parseName(sensorInformation[1])
|
|
end
|
|
|
|
function Miner:getWorkArea()
|
|
local sensorInformation = self:getSensorInformation()
|
|
return Parser.parseWorkArea(sensorInformation[2])
|
|
end
|
|
|
|
return Miner
|