MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / dInven_Use

Function dInven_Use

Descent3/DllWrappers.cpp:262–262  ·  view source on GitHub ↗

uses an item in the inventory (also reduces its count by one...if there is no more, then it goes bye-bye)

Source from the content-addressed store, hash-verified

260
261// uses an item in the inventory (also reduces its count by one...if there is no more, then it goes bye-bye)
262bool dInven_Use(Inventory *inven, int type, int id, object *parent) { return inven->Use(type, id, parent); }
263
264// uses an item in the inventory (given it's objhandle).
265bool dInven_UseObjHandle(Inventory *inven, int objhandle, object *parent) { return inven->Use(objhandle, parent); }

Callers

nothing calls this directly

Calls 1

UseMethod · 0.80

Tested by

no test coverage detected