Planeshift
psInventoryCacheServer Class Reference

The psInventoryCacheServer class implements the inventory cache on the server. More...

#include <psinventorycachesvr.h>

Public Member Functions

bool ClearAllSlots (void)
 Clears all slot modified flags. More...
 
bool ClearSlot (INVENTORY_SLOT_NUMBER slot)
 Clears flag that bulk slot has modified. More...
 
bool HasSlotModified (INVENTORY_SLOT_NUMBER slot)
 Checks if a bulk slot's contents has changed. More...
 
 psInventoryCacheServer ()
 
bool SetSlotModified (INVENTORY_SLOT_NUMBER slot)
 Flags that a bulk slot's contents has changed. More...
 
 ~psInventoryCacheServer ()
 
- Public Member Functions inherited from psCache
CACHE_STATUS GetCacheStatus (void)
 Return cache status. More...
 
 psCache ()
 
void SetCacheStatus (CACHE_STATUS newStatus)
 Set cache status. More...
 
 ~psCache ()
 

Additional Inherited Members

- Public Types inherited from psCache
enum  CACHE_STATUS { INVALID, VALID }
 
- Protected Attributes inherited from psCache
CACHE_STATUS cacheStatus
 

Detailed Description

The psInventoryCacheServer class implements the inventory cache on the server.

Definition at line 43 of file psinventorycachesvr.h.

Constructor & Destructor Documentation

psInventoryCacheServer::psInventoryCacheServer ( )
psInventoryCacheServer::~psInventoryCacheServer ( )

Member Function Documentation

bool psInventoryCacheServer::ClearAllSlots ( void  )

Clears all slot modified flags.

Returns
bool Success flag.
bool psInventoryCacheServer::ClearSlot ( INVENTORY_SLOT_NUMBER  slot)

Clears flag that bulk slot has modified.

Parameters
slotslot number
Returns
bool Slot has been flagged successfully.
bool psInventoryCacheServer::HasSlotModified ( INVENTORY_SLOT_NUMBER  slot)

Checks if a bulk slot's contents has changed.

Parameters
slotslot number
Returns
bool bulk slot status.
bool psInventoryCacheServer::SetSlotModified ( INVENTORY_SLOT_NUMBER  slot)

Flags that a bulk slot's contents has changed.

Parameters
slotslot number
Returns
bool Slot has been flagged successfully.

The documentation for this class was generated from the following file: