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

Function dInven_Add

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

////////////////////////////////////////////////////////////// adds a type/id item to the inventory (returns true on success)

Source from the content-addressed store, hash-verified

239///////////////////////////////////////////////////////////////////
240// adds a type/id item to the inventory (returns true on success)
241bool dInven_Add(Inventory *inven, int type, int id, object *parent, int aux_type, int aux_id, int flags,
242 char *description) {
243 return inven->Add(type, id, parent, aux_type, aux_id, flags, description);
244}
245
246// adds an object to the inventory (marked by it's objhandle)
247bool dInven_AddObject(Inventory *inven, int object_handle, int flags, char *description) {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected