Add example docs for LDoc

This commit is contained in:
Insality
2019-09-25 20:40:41 +03:00
parent 4d424a34c2
commit b72e7451e1
14 changed files with 92 additions and 35 deletions

View File

@@ -1,7 +1,10 @@
--- Druid settings file
-- @module settings
local M = {}
-- TODO: to JSON?
M.is_debug = false
M.button = {
IS_HOVER = true,
IS_HOLD = true,
@@ -33,13 +36,13 @@ M.scroll = {
}
function M.get_text(name)
-- override to get text for localized text
return "locales not inited"
-- override to get text for localized text
return "[Druid]: locales not inited"
end
function M.play_sound(name)
-- override to play sound with name
-- override to play sound with name
end
@@ -50,4 +53,4 @@ function M.log(...)
end
return M
return M