Changeset 2832 for code/branches/netp/src/network/synchronisable
- Timestamp:
- Mar 23, 2009, 2:53:10 PM (16 years ago)
- Location:
- code/branches/netp/src/network/synchronisable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp/src/network/synchronisable/Synchronisable.cc
r2823 r2832 238 238 * @return true: if !doSync or if everything was successfully saved 239 239 */ 240 boolSynchronisable::getData(uint8_t*& mem, int32_t id, uint8_t mode){240 uint32_t Synchronisable::getData(uint8_t*& mem, int32_t id, uint8_t mode){ 241 241 if(mode==0x0) 242 242 mode=state_; 243 243 //if this tick is we dont synchronise, then abort now 244 244 if(!doSync(id, mode)) 245 return true;245 return 0; 246 246 uint32_t tempsize = 0; 247 247 if (this->classID==0) … … 279 279 assert(tempsize==size); 280 280 #endif 281 return t rue;281 return tempsize; 282 282 } 283 283 -
code/branches/netp/src/network/synchronisable/Synchronisable.h
r2823 r2832 147 147 148 148 private: 149 boolgetData(uint8_t*& men, int32_t id, uint8_t mode=0x0);149 uint32_t getData(uint8_t*& men, int32_t id, uint8_t mode=0x0); 150 150 uint32_t getSize(int32_t id, uint8_t mode=0x0); 151 151 bool updateData(uint8_t*& mem, uint8_t mode=0x0, bool forceCallback=false);
Note: See TracChangeset
for help on using the changeset viewer.