#include "../../../../client.h"
#include "../../../cl_localentity.h"
#include "../../../../cl_inventory.h"
#include "e_event_invadd.h"
Go to the source code of this file.
Functions | |
static void | CL_NetReceiveItem (struct dbuffer *buf, item_t *item, containerIndex_t *container, int *x, int *y) |
void | CL_InvAdd (const eventRegister_t *self, struct dbuffer *msg) |
Definition in file e_event_invadd.c.
void CL_InvAdd | ( | const eventRegister_t * | self, | |
struct dbuffer * | msg | |||
) |
Definition at line 58 of file e_event_invadd.c.
References inventoryInterface_s::AddToInventory, item_s::amount, CL_NetReceiveItem(), cls, Com_Error(), csi, ERR_DROP, ET_ACTOR, ET_ACTOR2x2, ET_ITEM, le_s::extension, le_s::headgear, le_s::i, client_static_s::i, objDef_s::id, csi_s::idExtension, csi_s::idFloor, csi_s::idHeadgear, csi_s::idLeft, csi_s::idRight, objDef_s::idx, INV_INVENTORY_BYTES, INVDEF, LE_Get(), LE_IsItem, LE_PlaceItem(), LE_SetThink(), le_s::left, LET_StartIdle(), NET_ReadShort(), qfalse, le_s::removeNextFrame, le_s::right, item_s::t, and le_s::type.
static void CL_NetReceiveItem | ( | struct dbuffer * | buf, | |
item_t * | item, | |||
containerIndex_t * | container, | |||
int * | x, | |||
int * | y | |||
) | [static] |
Definition at line 36 of file e_event_invadd.c.
References item_s::a, item_s::amount, CL_GetEvent(), Com_Error(), ERR_DROP, EV_INV_TRANSFER, eventRegister_s::formatString, INVSH_GetItemByIDX(), item_s::m, m, NET_ReadFormat(), NONE_AMMO, item_s::rotated, and item_s::t.
Referenced by CL_InvAdd().