From: Thomas T. <to...@us...> - 2004-07-16 23:58:15
|
Update of /cvsroot/planeshift/planeshift/src/server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31724 Modified Files: workmanager.h Log Message: Add functions to send an update message to client when container contents chage or get removed. Index: workmanager.h =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/server/workmanager.h,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** workmanager.h 15 Jul 2004 01:37:44 -0000 1.22 --- workmanager.h 16 Jul 2004 23:58:07 -0000 1.23 *************** *** 88,95 **** --- 88,97 ---- virtual void HandleMessage(MsgEntry *me); + // Entry points void StopUseWork(Client *client); void StartAutoWork(Client *client, psItem* container, psItem *autoItem, int count); void StopAutoWork(Client *client, psItem *autoItem); + // Event entry points void HandleWorkEvent(psWorkGameEvent* event); void HandleProductionEvent(psWorkGameEvent* event); *************** *** 128,131 **** --- 130,136 ---- bool TransformSlotItem(int slot, long newId, int newQty, float itemQuality); bool TransformHandItem(long newId, int newQty, float itemQuality); + bool SendItemUpdate( unsigned int slotID, psItem *newItem ); + bool SendClearUpdate( unsigned int slotID ); + void StartTransformationEvent(psTradeTransformations* trans); *************** *** 146,151 **** void HandleProduction(Client *client,const char *type,const char *reward); NaturalResource *FindNearestResource(const char *reward,iSector *sector, csVector3& pos); - - }; --- 151,154 ---- |