summaryrefslogtreecommitdiff
path: root/library/include
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-09-12 18:17:42 +0400
committerAlexander Gavrilov2012-09-12 18:17:42 +0400
commit7c71aeab5f44c7fce106a0efc07c1ea2860e4638 (patch)
treedb2c792ddd19b323c7a8156435f7c3daaea54a98 /library/include
parent448d7e3633efd5171feaa3c3a0cdc4afbfafe105 (diff)
downloaddfhack-7c71aeab5f44c7fce106a0efc07c1ea2860e4638.tar.gz
dfhack-7c71aeab5f44c7fce106a0efc07c1ea2860e4638.tar.bz2
dfhack-7c71aeab5f44c7fce106a0efc07c1ea2860e4638.tar.xz
Add function for making item projectiles.
Diffstat (limited to 'library/include')
-rw-r--r--library/include/modules/Items.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/include/modules/Items.h b/library/include/modules/Items.h
index 4236f068..7493d22f 100644
--- a/library/include/modules/Items.h
+++ b/library/include/modules/Items.h
@@ -44,6 +44,7 @@ distribution.
namespace df
{
struct itemdef;
+ struct proj_itemst;
}
namespace MapExtras {
@@ -155,5 +156,8 @@ DFHACK_EXPORT bool moveToContainer(MapExtras::MapCache &mc, df::item *item, df::
DFHACK_EXPORT bool moveToBuilding(MapExtras::MapCache &mc, df::item *item, df::building_actual *building,int16_t use_mode);
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);
+
+/// 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);
}
}