mirror of
https://github.com/usysrc/LICK.git
synced 2024-12-11 06:54:25 +00:00
declare function for perm variables
This commit is contained in:
parent
d69b3be7bd
commit
c48f3f2fcf
@ -8,7 +8,16 @@ sin = math.sin
|
||||
deg = math.deg
|
||||
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"
|
||||
module(...,package.seeall)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user