mirror of
https://github.com/AntumMT/mod-wdata.git
synced 2024-07-04 15:05:19 +02:00
Update LuaDoc
This commit is contained in:
parent
f75f9ac4a4
commit
f9e169b945
19
api.lua
19
api.lua
@ -1,11 +1,16 @@
|
||||
|
||||
--- wconfig API
|
||||
--
|
||||
-- @module api.lua
|
||||
|
||||
|
||||
-- store formatted world path
|
||||
local world_path = core.get_worldpath():gsub("\\", "/")
|
||||
|
||||
--- Retrieves directory path where file is located.
|
||||
--
|
||||
-- @local
|
||||
-- @get_dir
|
||||
-- @function get_dir
|
||||
-- @tparam string fpath Full path to file.
|
||||
-- @treturn string Full path to directory.
|
||||
local function get_dir(fpath)
|
||||
@ -80,10 +85,20 @@ function wconfig.write(fname, data, styled)
|
||||
end
|
||||
|
||||
|
||||
-- aliases
|
||||
--- Aliases
|
||||
--
|
||||
-- @section aliases
|
||||
|
||||
--- Alias of `wconfig.read`.
|
||||
--
|
||||
-- @falias minetest.read_world_config
|
||||
if not core.read_world_config then
|
||||
core.read_world_config = wconfig.read
|
||||
end
|
||||
|
||||
--- Alias of `wconfig.write`.
|
||||
--
|
||||
-- @falias minetest.write_world_config
|
||||
if not core.write_world_config then
|
||||
core.write_world_config = wconfig.write
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user