#include "q_shared.h"
Go to the source code of this file.
Data Structures | |
struct | inventoryImport_s |
struct | inventoryInterface_s |
Typedefs | |
typedef struct inventoryImport_s | inventoryImport_t |
typedef struct inventoryInterface_s | inventoryInterface_t |
Functions | |
void | INV_InitInventory (const char *name, inventoryInterface_t *ii, csi_t *csi, const inventoryImport_t *iimport) |
Initializes the inventory definition by linking the ->next pointers properly. | |
void | INV_DestroyInventory (inventoryInterface_t *ii) |
typedef struct inventoryImport_s inventoryImport_t |
typedef struct inventoryInterface_s inventoryInterface_t |
void INV_DestroyInventory | ( | inventoryInterface_t * | ii | ) |
Definition at line 961 of file inventory.c.
References inventoryImport_s::FreeAll, and inventoryInterface_s::import.
Referenced by GAME_SetMode(), GAME_Spawn(), and ResetInventoryList().
void INV_InitInventory | ( | const char * | name, | |
inventoryInterface_t * | interface, | |||
csi_t * | csi, | |||
const inventoryImport_t * | import | |||
) |
Initializes the inventory definition by linking the ->next pointers properly.
[in] | name | The name that is shown in the output |
[in,out] | invList | Pointer to invList_t definition being initialized. |
[in] | length | The size of the invList array. |
[out] | interface | The inventory interface pointer which should be initialized in this function. |
Definition at line 937 of file inventory.c.
References inventoryInterface_s::AddToInventory, inventoryInterface_s::cacheItem, inventoryInterface_s::csi, inventoryInterface_s::DestroyInventory, inventoryInterface_s::EmptyContainer, inventoryInterface_s::EquipActor, inventoryInterface_s::EquipActorMelee, inventoryInterface_s::EquipActorRobot, inventoryInterface_s::GetUsedSlots, I_AddToInventory(), I_DestroyInventory(), I_EmptyContainer(), I_EquipActor(), I_EquipActorMelee(), I_EquipActorRobot(), I_GetUsedSlots(), I_MoveInInventory(), I_RemoveFromInventory(), I_TryAddToInventory(), inventoryInterface_s::import, inventoryInterface_s::invList, inventoryInterface_s::MoveInInventory, inventoryInterface_s::name, NONE_AMMO, inventoryInterface_s::RemoveFromInventory, and inventoryInterface_s::TryAddToInventory.
Referenced by G_Init(), GAME_SetMode(), GAME_Spawn(), and ResetInventoryList().