File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 33
44--- @class dfhack.buildings
55--- @field containsTile function
6+ --- @field setSize function
7+ --- @field getStockpileContents function
8+ --- @field getCageOccupants function
69dfhack .buildings = {}
710
811--- @param pos df.coord
Original file line number Diff line number Diff line change 22--- @meta
33
44--- @class dfhack.screen
5+ --- @field raise function
6+ --- @field hideGuard function
7+ --- @field show function
8+ --- @field dismiss function
9+ --- @field isDismissed function
510--- @field _doSimulateInput function
611dfhack .screen = {}
712
Original file line number Diff line number Diff line change @@ -55,11 +55,16 @@ def parse_cpp_modules(entry_point)
5555 module_declaration = file [ /^static.*#{ module_name } _module\[ \] [\s \S ]+?};/ ]
5656 function_declaration = file [ /^static.*#{ module_name } _funcs\[ \] [\s \S ]+?};/ ]
5757
58- # Functions with signatures that are unlikely to be easily parsed.
58+ # Functions with signatures that I currently don't understand well
59+ # enough to parse.
5960 module_declaration &.scan ( /(?:WRAP_VERSION_FUNC|WRAPN)\( ([^)]+)\) / ) do |match |
6061 function_name = match [ 0 ] . split ( ', ' ) [ 0 ]
6162 output << "---@field #{ function_name } function\n "
6263 end
64+ function_declaration &.scan ( /(?:CWRAP)\( ([^)]+)\) / ) do |match |
65+ function_name = match [ 0 ] . split ( ', ' ) [ 0 ]
66+ output << "---@field #{ function_name } function\n "
67+ end
6368
6469 # Functions that manipulate lua_state (usually?)
6570 function_declaration &.scan ( /^\s +\{ ([^}]+)}/ ) do
You can’t perform that action at this time.
0 commit comments