Changeset 6815 in orxonox.OLD for trunk/src/world_entities/environments
- Timestamp:
- Jan 28, 2006, 5:11:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environments/water.cc
r6803 r6815 302 302 SYNCHELP_READ_BEGIN(); 303 303 304 SYNCHELP_READ_FKT( Water::writeState );304 SYNCHELP_READ_FKT( Water::writeState, NWT_WAT_STATE ); 305 305 306 306 return SYNCHELP_READ_N; … … 328 328 { 329 329 *reciever = rec; 330 SYNCHELP_WRITE_FKT( Water::readState );330 SYNCHELP_WRITE_FKT( Water::readState, NWT_WAT_STATE ); 331 331 } 332 332 … … 347 347 SYNCHELP_WRITE_BEGIN(); 348 348 349 SYNCHELP_WRITE_FKT( WorldEntity::readState );349 SYNCHELP_WRITE_FKT( WorldEntity::readState, NWT_WAT_WE_STATE ); 350 350 351 351 // sync the size 352 SYNCHELP_WRITE_FLOAT( this->sizeX );353 SYNCHELP_WRITE_FLOAT( this->sizeY );352 SYNCHELP_WRITE_FLOAT( this->sizeX, NWT_WAT_SIZEX ); 353 SYNCHELP_WRITE_FLOAT( this->sizeY, NWT_WAT_SIZEY ); 354 354 355 355 //sync resolution 356 SYNCHELP_WRITE_INT( this->resX );357 SYNCHELP_WRITE_INT( this->resY );356 SYNCHELP_WRITE_INT( this->resX, NWT_WAT_RESX ); 357 SYNCHELP_WRITE_INT( this->resY, NWT_WAT_RESY ); 358 358 359 359 //sync the height 360 SYNCHELP_WRITE_FLOAT( this->height );360 SYNCHELP_WRITE_FLOAT( this->height, NWT_WAT_HEIGHT ); 361 361 362 362 return SYNCHELP_WRITE_N; … … 374 374 SYNCHELP_READ_BEGIN(); 375 375 376 SYNCHELP_READ_FKT( WorldEntity::writeState );376 SYNCHELP_READ_FKT( WorldEntity::writeState, NWT_WAT_WE_STATE ); 377 377 378 378 float f1, f2; … … 380 380 381 381 //read the size 382 SYNCHELP_READ_FLOAT( f1 );383 SYNCHELP_READ_FLOAT( f2 );382 SYNCHELP_READ_FLOAT( f1, NWT_WAT_SIZEX ); 383 SYNCHELP_READ_FLOAT( f2, NWT_WAT_SIZEY ); 384 384 this->sizeX = f1; 385 385 this->sizeY = f2; … … 387 387 388 388 //read the resolution 389 SYNCHELP_READ_INT( i1 );390 SYNCHELP_READ_INT( i2 );389 SYNCHELP_READ_INT( i1, NWT_WAT_RESX ); 390 SYNCHELP_READ_INT( i2, NWT_WAT_RESY ); 391 391 this->resX = i1; 392 392 this->resY = i2; … … 394 394 395 395 //read the height 396 SYNCHELP_READ_FLOAT( f1 );396 SYNCHELP_READ_FLOAT( f1, NWT_WAT_HEIGHT ); 397 397 this->height = f1; 398 398
Note: See TracChangeset
for help on using the changeset viewer.