|
9 | 9 | ---@field findPenPitAt function |
10 | 10 | dfhack.buildings = {} |
11 | 11 |
|
12 | | ----@param building building |
13 | | ----@param type general_ref_type |
14 | | ----@return general_ref |
| 12 | +---@param building df.building |
| 13 | +---@param type df.general_ref_type |
| 14 | +---@return df.general_ref |
15 | 15 | function dfhack.buildings.getGeneralRef(building, type) end |
16 | 16 |
|
17 | | ----@param building building |
18 | | ----@param type specific_ref_type |
19 | | ----@return specific_ref |
| 17 | +---@param building df.building |
| 18 | +---@param type df.specific_ref_type |
| 19 | +---@return df.specific_ref |
20 | 20 | function dfhack.buildings.getSpecificRef(building, type) end |
21 | 21 |
|
22 | | ----@param bld building_civzonest |
23 | | ----@param unit unit |
| 22 | +---@param bld df.building_civzonest |
| 23 | +---@param unit df.unit |
24 | 24 | ---@return boolean |
25 | 25 | function dfhack.buildings.setOwner(bld, unit) end |
26 | 26 |
|
27 | | ----@param pos coord |
28 | | ----@param type building_type |
| 27 | +---@param pos df.coord |
| 28 | +---@param type df.building_type |
29 | 29 | ---@param subtype integer |
30 | 30 | ---@param custom integer |
31 | | ----@return building |
| 31 | +---@return df.building |
32 | 32 | function dfhack.buildings.allocInstance(pos, type, subtype, custom) end |
33 | 33 |
|
34 | | ----@param pos coord |
35 | | ----@param size coord2d |
36 | | ----@param ext building_extents |
| 34 | +---@param pos df.coord |
| 35 | +---@param size df.coord2d |
| 36 | +---@param ext df.building_extents |
37 | 37 | ---@param createext boolean|nil |
38 | 38 | ---@param allowoccupied boolean|nil |
39 | 39 | ---@param allowwall boolean|nil |
40 | 40 | ---@param allowflow boolean|nil |
41 | 41 | ---@return boolean |
42 | 42 | function dfhack.buildings.checkFreeTiles(pos, size, ext, createext, allowoccupied, allowwall, allowflow) end |
43 | 43 |
|
44 | | ----@param ext building_extents |
| 44 | +---@param ext df.building_extents |
45 | 45 | ---@param defval integer |
46 | 46 | ---@return integer |
47 | 47 | function dfhack.buildings.countExtentTiles(ext, defval) end |
48 | 48 |
|
49 | | ----@param pos coord |
50 | | ----@param size coord2d |
| 49 | +---@param pos df.coord |
| 50 | +---@param size df.coord2d |
51 | 51 | ---@return boolean |
52 | 52 | function dfhack.buildings.hasSupport(pos, size) end |
53 | 53 |
|
54 | | ----@param bld building |
| 54 | +---@param bld df.building |
55 | 55 | ---@return boolean |
56 | 56 | function dfhack.buildings.constructAbstract(bld) end |
57 | 57 |
|
58 | | ----@param bld building |
59 | | ----@param items DFVector<item> |
| 58 | +---@param bld df.building |
| 59 | +---@param items df.DFVector<item> |
60 | 60 | ---@return boolean |
61 | 61 | function dfhack.buildings.constructWithItems(bld, items) end |
62 | 62 |
|
63 | | ----@param bld building |
64 | | ----@param items DFVector<job_item> |
| 63 | +---@param bld df.building |
| 64 | +---@param items df.DFVector<job_item> |
65 | 65 | ---@return boolean |
66 | 66 | function dfhack.buildings.constructWithFilters(bld, items) end |
67 | 67 |
|
68 | | ----@param bld building |
| 68 | +---@param bld df.building |
69 | 69 | ---@return boolean |
70 | 70 | function dfhack.buildings.deconstruct(bld) end |
71 | 71 |
|
72 | | ----@param bld building |
| 72 | +---@param bld df.building |
73 | 73 | ---@return nil |
74 | 74 | function dfhack.buildings.notifyCivzoneModified(bld) end |
75 | 75 |
|
76 | | ----@param bld building |
| 76 | +---@param bld df.building |
77 | 77 | ---@return boolean |
78 | 78 | function dfhack.buildings.markedForRemoval(bld) end |
79 | 79 |
|
80 | | ----@param building building |
81 | | ----@param unit unit |
| 80 | +---@param building df.building |
| 81 | +---@param unit df.unit |
82 | 82 | ---@return string |
83 | 83 | function dfhack.buildings.getRoomDescription(building, unit) end |
84 | 84 |
|
85 | | ----@param building building |
| 85 | +---@param building df.building |
86 | 86 | ---@return boolean |
87 | 87 | function dfhack.buildings.isActivityZone(building) end |
88 | 88 |
|
89 | | ----@param building building |
| 89 | +---@param building df.building |
90 | 90 | ---@return boolean |
91 | 91 | function dfhack.buildings.isPenPasture(building) end |
92 | 92 |
|
93 | | ----@param building building |
| 93 | +---@param building df.building |
94 | 94 | ---@return boolean |
95 | 95 | function dfhack.buildings.isPitPond(building) end |
96 | 96 |
|
97 | | ----@param building building |
| 97 | +---@param building df.building |
98 | 98 | ---@return boolean |
99 | 99 | function dfhack.buildings.isActive(building) end |
100 | 100 |
|
101 | | ----@param bld building |
| 101 | +---@param bld df.building |
102 | 102 | ---@return nil |
103 | 103 | function dfhack.buildings.completeBuild(bld) end |
104 | 104 |
|
0 commit comments