summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-07-30 16:07:40 +0200
committerAlexander Harkness <bearbin@gmail.com>2013-07-30 16:07:40 +0200
commit624c0a7554c7c6393284e7ef939414e882250675 (patch)
treeea237076c5a951e030fa12bd18f8156f961b1a3a
parentMoved the dumpAPI function to a new plugin. (diff)
downloadcuberite-624c0a7554c7c6393284e7ef939414e882250675.tar
cuberite-624c0a7554c7c6393284e7ef939414e882250675.tar.gz
cuberite-624c0a7554c7c6393284e7ef939414e882250675.tar.bz2
cuberite-624c0a7554c7c6393284e7ef939414e882250675.tar.lz
cuberite-624c0a7554c7c6393284e7ef939414e882250675.tar.xz
cuberite-624c0a7554c7c6393284e7ef939414e882250675.tar.zst
cuberite-624c0a7554c7c6393284e7ef939414e882250675.zip
-rw-r--r--MCServer/Plugins/Debuggers/Debuggers.lua55
1 files changed, 0 insertions, 55 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua
index 53b192656..b090ea55c 100644
--- a/MCServer/Plugins/Debuggers/Debuggers.lua
+++ b/MCServer/Plugins/Debuggers/Debuggers.lua
@@ -1,16 +1,9 @@
-- Global variables
PLUGIN = {}; -- Reference to own plugin object
-ShouldDumpFunctions = true; -- If set to true, all available functions are written to the API.txt file upon plugin initialization
-
g_DropSpensersToActivate = {}; -- A list of dispensers and droppers (as {World, X, Y Z} quadruplets) that are to be activated every tick
-
g_HungerReportTick = 10;
-
-
-
-
function Initialize(Plugin)
PLUGIN = Plugin
@@ -41,12 +34,6 @@ function Initialize(Plugin)
LOG("Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())
- -- dump all available API functions and objects:
- if (ShouldDumpFunctions) then
- DumpAPI();
- end
-
-
-- TestBlockAreas();
-- TestSQLiteBindings();
-- TestExpatBindings();
@@ -54,48 +41,6 @@ function Initialize(Plugin)
return true
end;
-
-
-
-
-function DumpAPI()
- LOG("Dumping all available functions to API.txt...");
- function dump (prefix, a, Output)
- for i, v in pairs (a) do
- if (type(v) == "table") then
- if (GetChar(i, 1) ~= ".") then
- if (v == _G) then
- LOG(prefix .. i .. " == _G, CYCLE, ignoring");
- elseif (v == _G.package) then
- LOG(prefix .. i .. " == _G.package, ignoring");
- else
- dump(prefix .. i .. ".", v, Output)
- end
- end
- elseif (type(v) == "function") then
- if (string.sub(i, 1, 2) ~= "__") then
- table.insert(Output, prefix .. i .. "()");
- end
- end
- end
- end
-
- local Output = {};
- dump("", _G, Output);
-
- table.sort(Output);
- local f = io.open("API.txt", "w");
- for i, n in ipairs(Output) do
- f:write(n, "\n");
- end
- f:close();
- LOG("API.txt written.");
-end
-
-
-
-
-
function TestBlockAreas()
LOG("Testing block areas...");