Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 30, 2006, 1:50:25 PM (18 years ago)
Author:
rennerc
Message:

finished some SynchronizeableVars classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/synchronizeable_var/synchronizeable_bool.cc

    r7446 r7459  
    4343int SynchronizeableBool::writeToBuf( byte * buf, int maxLength )
    4444{
    45 #warning implement this
     45  assert( maxLength >= 1 );
     46 
     47  buf[0] = ( *vPtrIn ) ? 1 : 0;
     48 
     49  return 1;
    4650}
    4751
     
    5458int SynchronizeableBool::readFromBuf( byte * buf, int maxLength )
    5559{
    56 #warning implement this
     60  assert( maxLength >= 1 );
     61 
     62  *vPtrOut = buf[0] != 0;
     63 
     64  return 1;
    5765}
Note: See TracChangeset for help on using the changeset viewer.