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

Function dInven_Remove

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

removes an item from the inventory (reduces it's count by one...if there is no more, then it goes bye-bye) to remove an object that was added via objhandle, then pass the objhandle in the 'type' parameter, and don't pass in an id.

Source from the content-addressed store, hash-verified

257// to remove an object that was added via objhandle, then pass the objhandle
258// in the 'type' parameter, and don't pass in an id.
259bool dInven_Remove(Inventory *inven, int type, int id) { return inven->Remove(type, id); }
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); }

Callers

nothing calls this directly

Calls 1

RemoveMethod · 0.80

Tested by

no test coverage detected