Skip to content

Commit

Permalink
Added RESULT_ALLOW, RESULT_DENY, and RESULT_DEFAULT globals for hooks…
Browse files Browse the repository at this point in the history
… that use them

Added missing command arguments to command.run hook
Added player.opencontainer hook (Player, Bool)
Added player.pickupxp hook (Player, Entity)
Enabled entity.update hook
Enabled entity.remove hook
Added missing hook documentation for Wiki
Small cleanups
  • Loading branch information
bkacjios committed Jan 26, 2016
1 parent e461091 commit 9d162ce
Show file tree
Hide file tree
Showing 5 changed files with 299 additions and 71 deletions.
7 changes: 6 additions & 1 deletion java2wiki.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ function grabdoc(fileName)
table.insert(fmt, string.format(fmt_header, func, arg))
end
if (alias) then table.insert(fmt, string.format(fmt_alias, alias)) end
table.insert(fmt, string.format(fmt_return, ret))
if (info) then table.insert(fmt, string.format(fmt_info, info)) end
table.insert(fmt, string.format(fmt_return, ret))
--if (... == true) then table.insert(fmt, string.format(fmt_derive, name)) end
table.insert(tbl, {alias = alias, func = func, fmt = table.concat(fmt, "\n")})
end
Expand Down Expand Up @@ -95,6 +95,11 @@ function java2wiki(out, space, str, append)
end
end

-- Hooks

java2wiki("Hooks", "Shared", "LuaEventManager")
java2wiki("Hooks", "Client", "LuaEventManagerClient", true)

-- Library

java2wiki("Globals", "Shared", "library/LuaGlobals")
Expand Down
Loading

0 comments on commit 9d162ce

Please sign in to comment.