added feature for checking if a component is virtual, and updated apps argentum and boot to comply with Halyde v3
This commit is contained in:
+14
-1
@@ -19,7 +19,11 @@ function compLib.virtual.add(address, componentType, proxy)
|
||||
checkArg(2, componentType, "string")
|
||||
checkArg(3, proxy, "table")
|
||||
proxy["address"] = address
|
||||
componentlib.additions[address] = {["componentType"] = componentType, ["proxy"] = proxy}
|
||||
local proc
|
||||
if _PUBLIC.tsched then
|
||||
proc = _PUBLIC.tsched.getCurrentTask()
|
||||
end
|
||||
componentlib.additions[address] = {["componentType"] = componentType, ["proxy"] = proxy, ["proc"] = proc}
|
||||
if componentlib.removals[address] then
|
||||
componentlib.removals[address] = nil
|
||||
end
|
||||
@@ -34,6 +38,15 @@ function compLib.virtual.remove(address)
|
||||
end
|
||||
end
|
||||
|
||||
function compLib.virtual.check(address)
|
||||
checkArg(1, address, "string")
|
||||
if _G.componentlib.additions[address] then
|
||||
return true, _G.componentlib.additions[address].proc
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
function compLib.list(componentType)
|
||||
checkArg(1, componentType, "string", "nil")
|
||||
local componentList = table.copy(LLcomponent.list(componentType))
|
||||
|
||||
Reference in New Issue
Block a user