Skip to content

Instantly share code, notes, and snippets.

@TheBuzzSaw
Created August 8, 2011 15:47
Show Gist options
  • Save TheBuzzSaw/1132004 to your computer and use it in GitHub Desktop.
Save TheBuzzSaw/1132004 to your computer and use it in GitHub Desktop.
new API layout
-- DO NOT ALTER THIS FILE. IF YOU DO, AUSTRALIA WILL BE SWALLOWED UP BY A
-- VOLCANO, AND YOU WILL HAVE BAD KARMA FOR LIFE. OH, AND THE GAME WILL BREAK.
arg = nil
debug.debug = nil
debug.getfenv = getfenv
debug.getregistry = nil
dofile = nil
io = { write = wcLog }
loadfile = nil
os.execute = nil
os.getenv = nil
os.remove = nil
os.rename = nil
os.tmpname = nil
package.loaded.io = io
package.loaded.package = nil
package = nil
require = nil
wcOnSecond = function()
-- currently, it does nothing
end
wcOnPulse = function()
-- currently, it does nothing
end
wcOnClick = function(player, x, y, z)
wcLog("player " .. player .. " clicked at " .. x .. ", " .. y .. ", " .. z)
end
wcSetPlayer(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment