Changeset 6784 in orxonox.OLD for branches/network/src/world_entities/environments/water.cc
- Timestamp:
- Jan 26, 2006, 8:03:40 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/environments/water.cc
r6771 r6784 298 298 SYNCHELP_READ_BEGIN(); 299 299 300 SYNCHELP_READ_FKT( Water::writeState );300 SYNCHELP_READ_FKT( Water::writeState, NWT_WAT_STATE ); 301 301 302 302 return SYNCHELP_READ_N; … … 324 324 { 325 325 *reciever = rec; 326 SYNCHELP_WRITE_FKT( Water::readState );326 SYNCHELP_WRITE_FKT( Water::readState, NWT_WAT_STATE ); 327 327 } 328 328 … … 343 343 SYNCHELP_WRITE_BEGIN(); 344 344 345 SYNCHELP_WRITE_FKT( WorldEntity::readState );345 SYNCHELP_WRITE_FKT( WorldEntity::readState, NWT_WAT_WE_STATE ); 346 346 347 347 // sync the size 348 SYNCHELP_WRITE_FLOAT( this->sizeX );349 SYNCHELP_WRITE_FLOAT( this->sizeY );348 SYNCHELP_WRITE_FLOAT( this->sizeX, NWT_WAT_SIZEX ); 349 SYNCHELP_WRITE_FLOAT( this->sizeY, NWT_WAT_SIZEY ); 350 350 351 351 //sync resolution 352 SYNCHELP_WRITE_INT( this->resX );353 SYNCHELP_WRITE_INT( this->resY );352 SYNCHELP_WRITE_INT( this->resX, NWT_WAT_RESX ); 353 SYNCHELP_WRITE_INT( this->resY, NWT_WAT_RESY ); 354 354 355 355 //sync the height 356 SYNCHELP_WRITE_FLOAT( this->height );356 SYNCHELP_WRITE_FLOAT( this->height, NWT_WAT_HEIGHT ); 357 357 358 358 return SYNCHELP_WRITE_N; … … 370 370 SYNCHELP_READ_BEGIN(); 371 371 372 SYNCHELP_READ_FKT( WorldEntity::writeState );372 SYNCHELP_READ_FKT( WorldEntity::writeState, NWT_WAT_WE_STATE ); 373 373 374 374 float f1, f2; … … 376 376 377 377 //read the size 378 SYNCHELP_READ_FLOAT( f1 );379 SYNCHELP_READ_FLOAT( f2 );378 SYNCHELP_READ_FLOAT( f1, NWT_WAT_SIZEX ); 379 SYNCHELP_READ_FLOAT( f2, NWT_WAT_SIZEY ); 380 380 this->sizeX = f1; 381 381 this->sizeY = f2; … … 383 383 384 384 //read the resolution 385 SYNCHELP_READ_INT( i1 );386 SYNCHELP_READ_INT( i2 );385 SYNCHELP_READ_INT( i1, NWT_WAT_RESX ); 386 SYNCHELP_READ_INT( i2, NWT_WAT_RESY ); 387 387 this->resX = i1; 388 388 this->resY = i2; … … 390 390 391 391 //read the height 392 SYNCHELP_READ_FLOAT( f1 );392 SYNCHELP_READ_FLOAT( f1, NWT_WAT_HEIGHT ); 393 393 this->height = f1; 394 394
Note: See TracChangeset
for help on using the changeset viewer.