changes
This commit is contained in:
20
luprex/core/lua/uglyglobals.lua
Normal file
20
luprex/core/lua/uglyglobals.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
makeclass('ug')
|
||||
|
||||
function ug.the()
|
||||
return tangible.scan('globals',0,0,0,true)[1]
|
||||
end
|
||||
|
||||
lis=tangible.scan('globals',0,0,0,true)
|
||||
if #lis==0 then
|
||||
local ugid=tangible.build{class='ug',x=0,y=0,z=0,plane='globals',graphic='box'}
|
||||
print("The global table is "..tangible.id(ugid))
|
||||
end
|
||||
|
||||
function ug.set(var,val)
|
||||
ug.the()[var]=val
|
||||
end
|
||||
|
||||
function ug.get(var)
|
||||
return ug.the()[var]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user