code documentation tweaks

This commit is contained in:
VorTechnix 2024-10-10 09:21:34 -07:00
parent 8ab8bf2ed9
commit f2a6b5531a
No known key found for this signature in database
GPG key ID: 091E91A69545D5BA
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,4 @@
---@diagnostic disable-next-line: lowercase-global
worldeditadditions_tools = {
player_data = {},
registered_tools = {},

View file

@ -27,7 +27,13 @@ end
--- Registers a new WorldEditAdditions tool.
-- @param tool string The name of the tool to register.
-- @param tool string The name of the tool to register (sans the ":worldeditadditions:" prefix).
--[[
=== WARNING ===
":worldeditadditions:" will be prepended to the `tool` param so
calling `register_tool(":worldeditadditions:<toolname>", def_table)`
may cause errors.
--]]
-- @param options table A table of options for the tool:
-- - `description` (string) A description of the tool.
-- - `inventory_image` (string) The path to the image for the tool.