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

Function InvAddTypeID

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

Inventory AddItemTypeID wrapper

Source from the content-addressed store, hash-verified

70
71// Inventory AddItemTypeID wrapper
72bool InvAddTypeID(int playernum, int type, int id, int aux_type, int aux_id, int flags, const char *description) {
73 ASSERT((playernum >= 0) && (playernum < MAX_PLAYERS));
74
75 return Players[playernum].inventory.Add(type, id, &Objects[Players[playernum].objnum], aux_type, aux_id, flags, description);
76}
77
78// Inventory Remove wrapper
79bool InvRemove(int playernum, int type, int id) {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected