25 #include "../../../../client.h" 26 #include "../../../cl_actor.h" 27 #include "../../../cl_localentity.h" 54 NET_ReadFormat(msg, self->formatString, &number, &container, &x, &y);
78 Com_Error(
ERR_DROP,
"CL_InvDel: No item was removed from container %i", container);
Item * getItemAtPos(const invDef_t *container, const int x, const int y) const
Searches if there is an item at location (x,y) in a container.
void CL_InvDel(const eventRegister_t *self, dbuffer *msg)
CL_ParseEvent timers and vars.
void NET_ReadFormat(dbuffer *buf, const char *format,...)
The user-friendly version of NET_ReadFormat that reads variable arguments from a buffer according to ...
void LE_PlaceItem(le_t *le)
void Com_Error(int code, const char *fmt,...)
void Cmd_ExecuteString(const char *text,...)
A complete command line has been parsed, so try to execute it.
Struct that defines one particular event with all its callbacks and data.
item instance data, with linked list capability
le_t * LE_Get(int entnum)
Searches all local entities for the one with the searched entnum.
#define INVDEF(containerID)
int CL_InvDelTime(const struct eventRegister_s *self, dbuffer *msg, eventTiming_t *eventTiming)
Decides if following events should be delayed.
void LE_SetThink(le_t *le, localEntityThinkFunc_t think)
void LET_StartIdle(le_t *le)
Change the animation of an actor to the idle animation (which can be panic, dead or stand) ...
bool removeFromInventory(Inventory *const inv, const invDef_t *container, Item *fItem) __attribute__((warn_unused_result))