Skip to content
Snippets Groups Projects
Commit f0ae08ad authored by LJ Sonic's avatar LJ Sonic
Browse files

Fix mobjs.iterate() and sector_t.ffloors()

parent 9f5b25a3
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,10 @@ local lpeg = require 'lpeg' ...@@ -6,6 +6,10 @@ local lpeg = require 'lpeg'
local err = util.printerr local err = util.printerr
local manualFieldTypes = {
['sector_t.ffloors'] = 'fun(): fun(): ffloor_t',
}
local descriptions = { local descriptions = {
mobj_t = [[ mobj_t = [[
This userdata type represents an Object. In the examples below, mobj is used as the name of the mobj_t variable. An access to a variable var of mobj_t is written as mobj.var. This userdata type represents an Object. In the examples below, mobj is used as the name of the mobj_t variable. An access to a variable var of mobj_t is written as mobj.var.
...@@ -89,7 +93,7 @@ local function extractUserdataFields(t, userdataName) ...@@ -89,7 +93,7 @@ local function extractUserdataFields(t, userdataName)
local name = extractFieldName(row.cells[1]) local name = extractFieldName(row.cells[1])
local fieldType = extractFieldType(row.cells[2]) local fieldType = manualFieldTypes[userdataName .. '.' .. name] or extractFieldType(row.cells[2])
if fieldType then if fieldType then
local access = util.wikiToMarkdown(row.cells[3].content, 'Userdata_structures') local access = util.wikiToMarkdown(row.cells[3].content, 'Userdata_structures')
access = 'Accessibility:' .. (access:find('\n') and '\n' or ' ') .. access access = 'Accessibility:' .. (access:find('\n') and '\n' or ' ') .. access
......
...@@ -21,6 +21,7 @@ local manualReturnTypes = { ...@@ -21,6 +21,7 @@ local manualReturnTypes = {
freeslot = '---@return ... int', freeslot = '---@return ... int',
reserveLuabanks = '---@return UINT32[]', reserveLuabanks = '---@return UINT32[]',
['file_t:read'] = '---@return ... any', ['file_t:read'] = '---@return ... any',
['mobjs.iterate'] = '---@return fun(): mobj_t',
} }
local ignoredFunctions = util.arrayToSet{ local ignoredFunctions = util.arrayToSet{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment