Planeshift
Public Member Functions | Public Attributes

psViewItemUpdate Class Reference

#include <messages.h>

List of all members.

Public Member Functions

 PSF_DECLARE_MSG_FACTORY ()
 psViewItemUpdate (MsgEntry *me, NetBase::AccessPointers *accessPointers)
 Crack out the details from the message.
 psViewItemUpdate (uint32_t to, EID containerID, uint32_t slotID, bool clearSlot, const char *itemName, const char *icon, const char *meshName, const char *materialName, uint32_t stackCount, EID ownerID, csStringSet *msgstrings)
 Constructs a message to go out to a client.
virtual csString ToString (NetBase::AccessPointers *accessPointers)
 Converts the message into human readable string.

Public Attributes

bool clearSlot
 indicates if the slot should be cleared
EID containerID
 The EID for the container we're updating.
csString icon
csString materialName
csString meshName
csString name
 Item info.
EID ownerID
int slotID
int stackCount

Detailed Description

Definition at line 4446 of file messages.h.


Constructor & Destructor Documentation

psViewItemUpdate::psViewItemUpdate ( uint32_t  to,
EID  containerID,
uint32_t  slotID,
bool  clearSlot,
const char *  itemName,
const char *  icon,
const char *  meshName,
const char *  materialName,
uint32_t  stackCount,
EID  ownerID,
csStringSet *  msgstrings 
)

Constructs a message to go out to a client.

Parameters:
toThe desitination client.
containerIDThe destination container's entity ID (it's always a world container).
slotIDThe slot in the container where to make the update.
clearSlotBoolean that indicates if the update is to clear out the slot.
itemNameThe name of the item requested.
iconThe 2D gui image to draw for this item.
meshNameThe mesh name.
materialNamethe name of the material to apply to this item when in the 3d world.
stackCountThe number of items in the stack.
ownerIDThe GEM entity ID of the owner
msgstringsA message strings cache.
psViewItemUpdate::psViewItemUpdate ( MsgEntry me,
NetBase::AccessPointers accessPointers 
)

Crack out the details from the message.


Member Function Documentation

psViewItemUpdate::PSF_DECLARE_MSG_FACTORY ( )
virtual csString psViewItemUpdate::ToString ( NetBase::AccessPointers accessPointers) [virtual]

Converts the message into human readable string.

Parameters:
accessPointersA struct to a number of access pointers.
Returns:
Return a human readable string for the message.

Implements psMessageCracker.


Member Data Documentation

indicates if the slot should be cleared

Definition at line 4483 of file messages.h.

The EID for the container we're updating.

Definition at line 4486 of file messages.h.

Definition at line 4490 of file messages.h.

Definition at line 4492 of file messages.h.

Definition at line 4491 of file messages.h.

Item info.

Definition at line 4489 of file messages.h.

Definition at line 4495 of file messages.h.

Definition at line 4493 of file messages.h.

Definition at line 4494 of file messages.h.


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