Changeset 1945 for code/branches/objecthierarchy/src/network
- Timestamp:
- Oct 19, 2008, 1:36:13 AM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/network/Synchronisable.cc
r1940 r1945 139 139 COUT(3) << "fabricate objectID: " << no->objectID << " classID: " << no->classID << std::endl; 140 140 // update data and create object/entity... 141 bool b = no->updateData(mem, mode );141 bool b = no->updateData(mem, mode, true); 142 142 assert(b); 143 143 b = no->create(); … … 297 297 * @return true/false 298 298 */ 299 bool Synchronisable::updateData(uint8_t*& mem, int mode ){299 bool Synchronisable::updateData(uint8_t*& mem, int mode, bool forceCallback){ 300 300 if(mode==0x0) 301 301 mode=state_; … … 349 349 } 350 350 // call the callback function, if defined 351 if( callback&& (*i)->callback)351 if((callback || forceCallback) && (*i)->callback) 352 352 (*i)->callback->call(); 353 353 } -
code/branches/objecthierarchy/src/network/Synchronisable.h
r1940 r1945 117 117 bool getData(uint8_t*& men, unsigned int id, int mode=0x0); 118 118 uint32_t getSize(unsigned int id, int mode=0x0); 119 bool updateData(uint8_t*& mem, int mode=0x0 );119 bool updateData(uint8_t*& mem, int mode=0x0, bool forceCallback=false); 120 120 bool isMyData(uint8_t* mem); 121 121 bool doSelection(unsigned int id);
Note: See TracChangeset
for help on using the changeset viewer.