Add createObject()
This commit is contained in:
@@ -70,6 +70,18 @@ local getVariable = function(name)
|
|||||||
return variables[name]
|
return variables[name]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local getObjects = function()
|
||||||
|
return moddedObjects
|
||||||
|
end
|
||||||
|
|
||||||
|
local getObject = function(id)
|
||||||
|
return getObjects()[id]
|
||||||
|
end
|
||||||
|
|
||||||
|
local createObject = function(objectName, id, basalt)
|
||||||
|
return getObject(objectName)(id, basalt)
|
||||||
|
end
|
||||||
|
|
||||||
local bInstance = {
|
local bInstance = {
|
||||||
getDynamicValueEventSetting = function()
|
getDynamicValueEventSetting = function()
|
||||||
return basalt.dynamicValueEvents
|
return basalt.dynamicValueEvents
|
||||||
@@ -127,14 +139,12 @@ local bInstance = {
|
|||||||
stop = stop,
|
stop = stop,
|
||||||
debug = basalt.debug,
|
debug = basalt.debug,
|
||||||
log = basalt.log,
|
log = basalt.log,
|
||||||
|
|
||||||
|
getObjects = getObjects,
|
||||||
|
|
||||||
getObjects = function()
|
getObject = getObject,
|
||||||
return moddedObjects
|
|
||||||
end,
|
|
||||||
|
|
||||||
getObject = function(id)
|
createObject = createObject,
|
||||||
return moddedObjects[id]
|
|
||||||
end,
|
|
||||||
|
|
||||||
getDirectory = function()
|
getDirectory = function()
|
||||||
return projectDirectory
|
return projectDirectory
|
||||||
|
|||||||
Reference in New Issue
Block a user