MCServer API - Index
++
The API reference is divided into the following sections:
+ +-
+
- Class index +
- Hooks +
- Extra pages +
+
Class index
+The following classes are available in the MCServer Lua scripting language:
+ +-
+]]);
for i, cls in ipairs(API) do
- f:write("
- " .. cls.Name .. " \n"); + f:write("
- " .. cls.Name .. " \n"); WriteHtmlClass(cls, API); end - f:write([[
Hooks
-A plugin can register to be called whenever an “interesting event” occurs. It does so by calling - cPluginManager's AddHook() function and implementing a callback - function to handle the event.
-A plugin can decide whether it will let the event pass through to the rest of the plugins, or hide it - from them. This is determined by the return value from the hook callback function. If the function returns - false or no value, the event is propagated further. If the function returns true, the processing is - stopped, no other plugin receives the notification (and possibly MCServer disables the default behavior - for the event). See each hook's details to see the exact behavior.
-Hook name | Called when |
---|
Hook name | +Called when | +
---|---|
" .. hook.Name .. " | (No documentation yet) |
" .. hook.Name .. " | \n(No documentation yet) | \n
" .. hook.Name .. " | " .. LinkifyString(hook.CalledWhen) .. " |
" .. hook.Name .. " | \n" .. LinkifyString(hook.CalledWhen) .. " | \n
Extra pages
-The following pages provide various extra information
-- ]]);
+ f:write([[
+
Extra pages
+ +The following pages provide various extra information
+ +-
+]]);
for i, extra in ipairs(g_APIDesc.ExtraPages) do
local SrcFileName = g_PluginFolder .. "/" .. extra.FileName;
if (cFile:Exists(SrcFileName)) then
@@ -262,14 +283,15 @@ function DumpAPIHtml()
cFile:Delete(DstFileName);
end
cFile:Copy(SrcFileName, DstFileName);
- f:write("
- " .. extra.Title .. " \n"); + f:write("
- " .. extra.Title .. " \n"); else - f:write("
- " .. extra.Title .. " (file is missing) \n"); + f:write("
- " .. extra.Title .. " (file is missing) \n"); end end - f:write([[