diff options
| author | Alexander Gavrilov | 2012-08-24 18:26:18 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-08-24 18:26:18 +0400 |
| commit | 8359e80b233675ee347ff1ac8ec7d37430d52a7a (patch) | |
| tree | c9d6876ef0fb50ffd3e27d793ac505d63f401ed9 /library/include | |
| parent | d52c54cc762e4f525b4d1f3c339e9cf5a1230ee7 (diff) | |
| download | dfhack-8359e80b233675ee347ff1ac8ec7d37430d52a7a.tar.gz dfhack-8359e80b233675ee347ff1ac8ec7d37430d52a7a.tar.bz2 dfhack-8359e80b233675ee347ff1ac8ec7d37430d52a7a.tar.xz | |
Expose a few API functions to lua, and implement a room browser overlay.
Diffstat (limited to 'library/include')
| -rw-r--r-- | library/include/modules/Buildings.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/include/modules/Buildings.h b/library/include/modules/Buildings.h index 6e0a2205..639df686 100644 --- a/library/include/modules/Buildings.h +++ b/library/include/modules/Buildings.h @@ -93,6 +93,11 @@ DFHACK_EXPORT bool Read (const uint32_t index, t_building & building); DFHACK_EXPORT bool ReadCustomWorkshopTypes(std::map <uint32_t, std::string> & btypes); /** + * Sets the owner unit for the building. + */ +DFHACK_EXPORT bool setOwner(df::building *building, df::unit *owner); + +/** * Find the building located at the specified tile. * Does not work on civzones. */ |
