move envutils2 into utilities.lua
This commit is contained in:
@@ -255,6 +255,21 @@ File = {
|
||||
end
|
||||
}
|
||||
|
||||
envTable = GAMESTATE:Env()
|
||||
|
||||
-- setenv(name,value)
|
||||
-- Sets aside an entry for <name> and puts <value> into it.
|
||||
-- Use a table as <value> to store multiple values
|
||||
function setenv(name,value)
|
||||
envTable[name] = value
|
||||
end
|
||||
|
||||
-- getenv(name)
|
||||
-- This will return whatever value is at envTable[name].
|
||||
function getenv(name)
|
||||
return envTable[name]
|
||||
end
|
||||
|
||||
-- (c) 2005-2011 Glenn Maynard, Chris Danford, SSC
|
||||
-- All rights reserved.
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user