proxy apis over wireless

This commit is contained in:
kepler155c
2017-10-24 23:01:59 -04:00
parent 77107e1d57
commit 9939c75fc3
6 changed files with 156 additions and 225 deletions

24
apis/inventoryAdapter.lua Normal file
View File

@@ -0,0 +1,24 @@
local ChestAdapter = require('chestAdapter')
local ChestAdapter18 = require('chestAdapter18')
local MEAdapter = require('meAdapter')
local Adapter = { }
function Adapter.wrap(args)
local adapter = ChestAdapter18(args)
if adapter:isValid() then
return adapter
end
adapter = MEAdapter(args)
if adapter:isValid() then
return adapter
end
adapter = ChestAdapter(args)
if adapter:isValid() then
return adapter
end
end
return Adapter