Переходим на MineOS Standalone #1

This commit is contained in:
Igor Timofeev
2019-01-19 11:31:04 +03:00
parent 86678610ff
commit b8bc282b94
491 changed files with 15872 additions and 28167 deletions

13
Libraries/Component.lua Normal file
View File

@@ -0,0 +1,13 @@
function component.get(type)
local address = component.list(type)()
if address then
return component.proxy(address)
end
return nil, "component with type \"" .. type .. "\" doesn't exists"
end
function component.isAvailable(type)
return component.list(type)() and true or false
end