Finishing event net message adaptions with HATO and prototype struct. also...

Finishing event net message adaptions with HATO and prototype struct. also adding iface pointer and progress info
parent 252a527a
......@@ -414,6 +414,7 @@ VAQuat CVANetMessage::ReadQuat()
void CVANetMessage::WriteEvent( const CVAEvent& oEvent )
{
WriteUInt64( (size_t) oEvent.pSender );
WriteInt( oEvent.iEventID );
WriteUInt64( oEvent.iEventType );
WriteInt( oEvent.iObjectID );
......@@ -430,23 +431,39 @@ void CVANetMessage::WriteEvent( const CVAEvent& oEvent )
WriteVec3( oEvent.vPos );
WriteVec3( oEvent.vView );
WriteVec3( oEvent.vUp );
WriteQuat( oEvent.qHATO );
WriteQuat( oEvent.oOrientation );
WriteInt( ( int ) oEvent.vfInputPeaks.size() );
for( size_t i = 0; i < oEvent.vfInputPeaks.size(); i++ )
WriteFloat( oEvent.vfInputPeaks[ i ] );
WriteInt( ( int ) oEvent.vfInputRMSs.size() );
for( size_t i = 0; i < oEvent.vfInputRMSs.size(); i++ )
WriteFloat( oEvent.vfInputRMSs[ i ] );
WriteInt( ( int ) oEvent.vfOutputPeaks.size() );
for( size_t i = 0; i < oEvent.vfOutputPeaks.size(); i++ )
WriteFloat( oEvent.vfOutputPeaks[ i ] );
WriteInt( ( int ) oEvent.vfOutputRMSs.size() );
for( size_t i = 0; i < oEvent.vfOutputRMSs.size(); i++ )
WriteFloat( oEvent.vfOutputRMSs[ i ] );
WriteFloat( oEvent.fSysLoad );
WriteFloat( oEvent.fDSPLoad );
WriteDouble( oEvent.dCoreClock );
WriteInt( oEvent.oProgress.iCurrentStep );
WriteInt( oEvent.oProgress.iMaxStep );
WriteString( oEvent.oProgress.sAction );
WriteString( oEvent.oProgress.sSubaction );
WriteVAStruct( oEvent.oPrototypeParams );
}
CVAEvent CVANetMessage::ReadEvent()
{
CVAEvent oEvent;
oEvent.pSender = (IVAInterface*) ReadUInt64();
oEvent.iEventID = ReadInt();
oEvent.iEventType = ReadUInt64();
oEvent.iObjectID = ReadInt();
......@@ -463,19 +480,33 @@ CVAEvent CVANetMessage::ReadEvent()
oEvent.vPos = ReadVec3();
oEvent.vView = ReadVec3();
oEvent.vUp = ReadVec3();
oEvent.qHATO = ReadQuat();
oEvent.oOrientation = ReadQuat();
int n = ReadInt();
for( int i = 0; i < n; i++ )
oEvent.vfInputPeaks.push_back( ReadFloat() );
int n = ReadInt();
for( int i = 0; i < n; i++ )
oEvent.vfInputRMSs.push_back( ReadFloat() );
n = ReadInt();
for( int i = 0; i < n; i++ )
oEvent.vfOutputPeaks.push_back( ReadFloat() );
n = ReadInt();
for( int i = 0; i < n; i++ )
oEvent.vfOutputRMSs.push_back( ReadFloat() );
oEvent.fSysLoad = ReadFloat();
oEvent.fDSPLoad = ReadFloat();
oEvent.dCoreClock = ReadDouble();
oEvent.oProgress.iCurrentStep = ReadInt();
oEvent.oProgress.iMaxStep = ReadInt();
oEvent.oProgress.sAction = ReadString();
oEvent.oProgress.sSubaction = ReadString();
ReadVAStruct( oEvent.oPrototypeParams );
return oEvent;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment