- Timestamp:
- Oct 21, 2008, 5:53:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/network/Synchronisable.cc
r1989 r1990 230 230 * 0x2: client->server (not recommended) 231 231 * 0x3: bidirectional 232 * @return true: if ! isMyTickor if everything was successfully saved232 * @return true: if !doSync or if everything was successfully saved 233 233 */ 234 234 bool Synchronisable::getData(uint8_t*& mem, unsigned int id, int mode){ 235 235 //if this tick is we dont synchronise, then abort now 236 if(! isMyTick(id))236 if(!doSync(id)) 237 237 return true; 238 238 //std::cout << "inside getData" << std::endl; … … 363 363 */ 364 364 uint32_t Synchronisable::getSize(unsigned int id, int mode){ 365 if(! isMyTick(id))365 if(!doSync(id)) 366 366 return 0; 367 367 int tsize=sizeof(synchronisableHeader); … … 392 392 * @return true/false 393 393 */ 394 bool Synchronisable:: isMyTick(unsigned int id){394 bool Synchronisable::doSync(unsigned int id){ 395 395 return ( (objectMode_&state_)!=0 ); 396 396 }
Note: See TracChangeset
for help on using the changeset viewer.