Skip to content

Commit 5af5b11

Browse files
committed
Fix function signatures
1 parent ed1b6d8 commit 5af5b11

File tree

16 files changed

+331
-329
lines changed

16 files changed

+331
-329
lines changed

dist/library/modules/buildings.lua

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,99 @@
11
-- THIS FILE WAS GENERATED AUTOMATICALLY. DO NOT EDIT.
22
---@meta
33

4-
---@class buildings
4+
---@class buildings_module
55
dfhack.buildings = {}
66

77
---@param building building
88
---@param type general_ref_type
99
---@return general_ref
10-
function dfhack.buildings:getGeneralRef(building, type) end
10+
function dfhack.buildings.getGeneralRef(building, type) end
1111

1212
---@param building building
1313
---@param type specific_ref_type
1414
---@return specific_ref
15-
function dfhack.buildings:getSpecificRef(building, type) end
15+
function dfhack.buildings.getSpecificRef(building, type) end
1616

1717
---@param bld building_civzonest
1818
---@param unit unit
1919
---@return boolean
20-
function dfhack.buildings:setOwner(bld, unit) end
20+
function dfhack.buildings.setOwner(bld, unit) end
2121

2222
---@param pos coord
2323
---@param type building_type
2424
---@param subtype integer
2525
---@param custom integer
2626
---@return building
27-
function dfhack.buildings:allocInstance(pos, type, subtype, custom) end
27+
function dfhack.buildings.allocInstance(pos, type, subtype, custom) end
2828

2929
---@param pos coord
3030
---@param size coord2d
3131
---@param ext building_extents
32-
---@param createext boolean
33-
---@param allowoccupied boolean
34-
---@param allowwall boolean
35-
---@param allowflow boolean
32+
---@param createext boolean|nil
33+
---@param allowoccupied boolean|nil
34+
---@param allowwall boolean|nil
35+
---@param allowflow boolean|nil
3636
---@return boolean
37-
function dfhack.buildings:checkFreeTiles(pos, size, ext, createext, allowoccupied, allowwall, allowflow) end
37+
function dfhack.buildings.checkFreeTiles(pos, size, ext, createext, allowoccupied, allowwall, allowflow) end
3838

3939
---@param ext building_extents
4040
---@param defval integer
4141
---@return integer
42-
function dfhack.buildings:countExtentTiles(ext, defval) end
42+
function dfhack.buildings.countExtentTiles(ext, defval) end
4343

4444
---@param pos coord
4545
---@param size coord2d
4646
---@return boolean
47-
function dfhack.buildings:hasSupport(pos, size) end
47+
function dfhack.buildings.hasSupport(pos, size) end
4848

4949
---@param bld building
5050
---@return boolean
51-
function dfhack.buildings:constructAbstract(bld) end
51+
function dfhack.buildings.constructAbstract(bld) end
5252

5353
---@param bld building
5454
---@param items std::vector<item>
5555
---@return boolean
56-
function dfhack.buildings:constructWithItems(bld, items) end
56+
function dfhack.buildings.constructWithItems(bld, items) end
5757

5858
---@param bld building
5959
---@param items std::vector<job_item>
6060
---@return boolean
61-
function dfhack.buildings:constructWithFilters(bld, items) end
61+
function dfhack.buildings.constructWithFilters(bld, items) end
6262

6363
---@param bld building
6464
---@return boolean
65-
function dfhack.buildings:deconstruct(bld) end
65+
function dfhack.buildings.deconstruct(bld) end
6666

6767
---@param bld building
6868
---@return nil
69-
function dfhack.buildings:notifyCivzoneModified(bld) end
69+
function dfhack.buildings.notifyCivzoneModified(bld) end
7070

7171
---@param bld building
7272
---@return boolean
73-
function dfhack.buildings:markedForRemoval(bld) end
73+
function dfhack.buildings.markedForRemoval(bld) end
7474

7575
---@param building building
7676
---@param unit unit
7777
---@return string
78-
function dfhack.buildings:getRoomDescription(building, unit) end
78+
function dfhack.buildings.getRoomDescription(building, unit) end
7979

8080
---@param building building
8181
---@return boolean
82-
function dfhack.buildings:isActivityZone(building) end
82+
function dfhack.buildings.isActivityZone(building) end
8383

8484
---@param building building
8585
---@return boolean
86-
function dfhack.buildings:isPenPasture(building) end
86+
function dfhack.buildings.isPenPasture(building) end
8787

8888
---@param building building
8989
---@return boolean
90-
function dfhack.buildings:isPitPond(building) end
90+
function dfhack.buildings.isPitPond(building) end
9191

9292
---@param building building
9393
---@return boolean
94-
function dfhack.buildings:isActive(building) end
94+
function dfhack.buildings.isActive(building) end
9595

9696
---@param bld building
9797
---@return nil
98-
function dfhack.buildings:completeBuild(bld) end
98+
function dfhack.buildings.completeBuild(bld) end
9999

dist/library/modules/burrows.lua

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
-- THIS FILE WAS GENERATED AUTOMATICALLY. DO NOT EDIT.
22
---@meta
33

4-
---@class burrows
4+
---@class burrows_module
55
dfhack.burrows = {}
66

77
---@param name string
8-
---@param ignorefinalplus boolean
8+
---@param ignorefinalplus boolean|nil
99
---@return burrow
10-
function dfhack.burrows:findByName(name, ignorefinalplus) end
10+
function dfhack.burrows.findByName(name, ignorefinalplus) end
1111

1212
---@param burrow burrow
1313
---@return nil
14-
function dfhack.burrows:clearUnits(burrow) end
14+
function dfhack.burrows.clearUnits(burrow) end
1515

1616
---@param burrow burrow
1717
---@param unit unit
1818
---@return boolean
19-
function dfhack.burrows:isAssignedUnit(burrow, unit) end
19+
function dfhack.burrows.isAssignedUnit(burrow, unit) end
2020

2121
---@param burrow burrow
2222
---@param unit unit
23-
---@param enable boolean
23+
---@param enable boolean|nil
2424
---@return nil
25-
function dfhack.burrows:setAssignedUnit(burrow, unit, enable) end
25+
function dfhack.burrows.setAssignedUnit(burrow, unit, enable) end
2626

2727
---@param burrow burrow
2828
---@return nil
29-
function dfhack.burrows:clearTiles(burrow) end
29+
function dfhack.burrows.clearTiles(burrow) end
3030

31-
function dfhack.burrows:isAssignedTile() end
31+
function dfhack.burrows.isAssignedTile() end
3232

33-
function dfhack.burrows:setAssignedTile() end
33+
function dfhack.burrows.setAssignedTile() end
3434

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
-- THIS FILE WAS GENERATED AUTOMATICALLY. DO NOT EDIT.
22
---@meta
33

4-
---@class constructions
4+
---@class constructions_module
55
dfhack.constructions = {}
66

77
---@param pos coord
88
---@param type construction_type
99
---@param item item_type
1010
---@param matindex integer
1111
---@return boolean
12-
function dfhack.constructions:designateNew(pos, type, item, matindex) end
12+
function dfhack.constructions.designateNew(pos, type, item, matindex) end
1313

1414
---@param constr construction
1515
---@return boolean
16-
function dfhack.constructions:insert(constr) end
16+
function dfhack.constructions.insert(constr) end
1717

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
-- THIS FILE WAS GENERATED AUTOMATICALLY. DO NOT EDIT.
22
---@meta
33

4-
---@class designations
4+
---@class designations_module
55
dfhack.designations = {}
66

77
---@param plant plant
88
---@return boolean
9-
function dfhack.designations:markPlant(plant) end
9+
function dfhack.designations.markPlant(plant) end
1010

1111
---@param plant plant
1212
---@return boolean
13-
function dfhack.designations:unmarkPlant(plant) end
13+
function dfhack.designations.unmarkPlant(plant) end
1414

1515
---@param plant plant
1616
---@return boolean
17-
function dfhack.designations:canMarkPlant(plant) end
17+
function dfhack.designations.canMarkPlant(plant) end
1818

1919
---@param plant plant
2020
---@return boolean
21-
function dfhack.designations:canUnmarkPlant(plant) end
21+
function dfhack.designations.canUnmarkPlant(plant) end
2222

2323
---@param plant plant
2424
---@return boolean
25-
function dfhack.designations:isPlantMarked(plant) end
25+
function dfhack.designations.isPlantMarked(plant) end
2626

dist/library/modules/dfhack.lua

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
-- THIS FILE WAS GENERATED AUTOMATICALLY. DO NOT EDIT.
22
---@meta
33

4-
---@class dfhack
4+
---@class dfhack_module
55
dfhack = {}
66

7-
function dfhack:getOSType() end
7+
function dfhack.getOSType() end
88

9-
function dfhack:getArchitecture() end
9+
function dfhack.getArchitecture() end
1010

11-
function dfhack:getArchitectureName() end
11+
function dfhack.getArchitectureName() end
1212

13-
function dfhack:getDFVersion() end
13+
function dfhack.getDFVersion() end
1414

15-
function dfhack:getDFPath() end
15+
function dfhack.getDFPath() end
1616

17-
function dfhack:getTickCount() end
17+
function dfhack.getTickCount() end
1818

19-
function dfhack:getHackPath() end
19+
function dfhack.getHackPath() end
2020

21-
function dfhack:isWorldLoaded() end
21+
function dfhack.isWorldLoaded() end
2222

23-
function dfhack:isMapLoaded() end
23+
function dfhack.isMapLoaded() end
2424

25-
function dfhack:isSiteLoaded() end
25+
function dfhack.isSiteLoaded() end
2626

27-
function dfhack:TranslateName() end
27+
function dfhack.TranslateName() end
2828

29-
function dfhack:df2utf() end
29+
function dfhack.df2utf() end
3030

31-
function dfhack:utf2df() end
31+
function dfhack.utf2df() end
3232

33-
function dfhack:df2console() end
33+
function dfhack.df2console() end
3434

35-
function dfhack:upperCp437() end
35+
function dfhack.upperCp437() end
3636

37-
function dfhack:lowerCp437() end
37+
function dfhack.lowerCp437() end
3838

39-
function dfhack:toSearchNormalized() end
39+
function dfhack.toSearchNormalized() end
4040

41-
function dfhack:capitalizeStringWords() end
41+
function dfhack.capitalizeStringWords() end
4242

43-
function dfhack:addCommandToHistory() end
43+
function dfhack.addCommandToHistory() end
4444

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
-- THIS FILE WAS GENERATED AUTOMATICALLY. DO NOT EDIT.
22
---@meta
33

4-
---@class filesystem
4+
---@class filesystem_module
55
dfhack.filesystem = {}
66

77
---@return string
8-
function dfhack.filesystem:getcwd() end
8+
function dfhack.filesystem.getcwd() end
99

1010
---@return boolean
11-
function dfhack.filesystem:restore_cwd() end
11+
function dfhack.filesystem.restore_cwd() end
1212

1313
---@return string
14-
function dfhack.filesystem:get_initial_cwd() end
14+
function dfhack.filesystem.get_initial_cwd() end
1515

1616
---@param path string
1717
---@return boolean
18-
function dfhack.filesystem:chdir(path) end
18+
function dfhack.filesystem.chdir(path) end
1919

2020
---@param path string
2121
---@return boolean
22-
function dfhack.filesystem:mkdir(path) end
22+
function dfhack.filesystem.mkdir(path) end
2323

2424
---@param path string
2525
---@return boolean
26-
function dfhack.filesystem:mkdir_recursive(path) end
26+
function dfhack.filesystem.mkdir_recursive(path) end
2727

2828
---@param path string
2929
---@return boolean
30-
function dfhack.filesystem:rmdir(path) end
30+
function dfhack.filesystem.rmdir(path) end
3131

3232
---@param path string
3333
---@return boolean
34-
function dfhack.filesystem:exists(path) end
34+
function dfhack.filesystem.exists(path) end
3535

3636
---@param path string
3737
---@return boolean
38-
function dfhack.filesystem:isfile(path) end
38+
function dfhack.filesystem.isfile(path) end
3939

4040
---@param path string
4141
---@return boolean
42-
function dfhack.filesystem:isdir(path) end
42+
function dfhack.filesystem.isdir(path) end
4343

44-
function dfhack.filesystem:atime() end
44+
function dfhack.filesystem.atime() end
4545

46-
function dfhack.filesystem:ctime() end
46+
function dfhack.filesystem.ctime() end
4747

48-
function dfhack.filesystem:mtime() end
48+
function dfhack.filesystem.mtime() end
4949

0 commit comments

Comments
 (0)