diff options
| author | Alexander Gavrilov | 2012-09-14 18:49:02 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-09-14 18:49:02 +0400 |
| commit | 24772f4dbcfcfbf0ac3d29f72d3bda19566d8530 (patch) | |
| tree | e31e06906af5a071525f69165567ea3fe232c24f /library/include | |
| parent | 68bfc63b7d0804ac5229623480e47f297783f502 (diff) | |
| download | dfhack-24772f4dbcfcfbf0ac3d29f72d3bda19566d8530.tar.gz dfhack-24772f4dbcfcfbf0ac3d29f72d3bda19566d8530.tar.bz2 dfhack-24772f4dbcfcfbf0ac3d29f72d3bda19566d8530.tar.xz | |
Add an api function for destroying items.
Diffstat (limited to 'library/include')
| -rw-r--r-- | library/include/modules/Items.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/include/modules/Items.h b/library/include/modules/Items.h index 7493d22f..81c8e128 100644 --- a/library/include/modules/Items.h +++ b/library/include/modules/Items.h @@ -157,6 +157,9 @@ DFHACK_EXPORT bool moveToBuilding(MapExtras::MapCache &mc, df::item *item, df::b DFHACK_EXPORT bool moveToInventory(MapExtras::MapCache &mc, df::item *item, df::unit *unit, df::unit_inventory_item::T_mode mode = df::unit_inventory_item::Carried, int body_part = -1); +/// Makes the item removed and marked for garbage collection +DFHACK_EXPORT bool remove(MapExtras::MapCache &mc, df::item *item, bool no_uncat = false); + /// Detaches the items from its current location and turns it into a projectile DFHACK_EXPORT df::proj_itemst *makeProjectile(MapExtras::MapCache &mc, df::item *item); } |
