mirror of
https://github.com/usysrc/LICK.git
synced 2024-11-24 16:44:21 +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
|
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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user