mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-25 16:43:05 +00:00
Starbeamrainbowlabs
b816133716
This rovides an abstraction to fetch a worldedit command's definition, regardless of where it was registered. We would normally expect all commands to be registered in wea_c.registered_commands, but before we only do a one-off pass to import commands from worldedit should a new mod we aren't aware of register a command with worldedit and get loaded after us, we won't detect it - hencee the need for this function.
18 lines
876 B
Lua
18 lines
876 B
Lua
-- ██████ ██████ ██████ ███████
|
|
-- ██ ██ ██ ██ ██ ██
|
|
-- ██ ██ ██ ██ ██ ███████
|
|
-- ██ ██ ██ ██ ██ ██
|
|
-- ██████ ██████ ██████ ███████
|
|
|
|
-- This directory contains support for the doc mod:
|
|
-- https://content.minetest.net/packages/Wuzzy/doc/
|
|
-- API docs: https://repo.or.cz/minetest_doc.git/blob/HEAD:/API.md
|
|
|
|
-- The strategy here is not to have duplicate content, but to pull data from
|
|
-- existing sources.
|
|
-- Long-form article descriptions: Chat-Command-Reference.md
|
|
-- Short descriptions: Undecided, but maybe from the registered command definition?
|
|
|
|
worldeditadditions.doc = {}
|
|
|
|
dofile(worldeditadditions_commands.modpath.."/doc/parse_reference.lua")
|