declare function for perm variables

This commit is contained in:
redlock 2011-03-10 14:40:35 +01:00
parent d69b3be7bd
commit c48f3f2fcf

View File

@ -8,7 +8,16 @@ sin = math.sin
deg = math.deg deg = math.deg
rad = math.rad rad = math.rad
State = State or {}
function declare(t)
for i,v in pairs(t) do
if not State[i] then
State[i] = v
_G[i] = State[i]
end
end
end
require "LICK/lib/color" require "LICK/lib/color"
module(...,package.seeall) module(...,package.seeall)