Adaption portals API improvement

parent 8f68e3d2
......@@ -1031,11 +1031,11 @@ public:
m_pProtocol->ClientSetSoundPortalName( iPortalID, sName );
};
inline CVAStruct GetSoundPortalParameters( const int iPortalID ) const
inline CVAStruct GetSoundPortalParameters( const int iPortalID, const CVAStruct& oArgs ) const
{
VA_REQUIRE_CONNECTED;
VA_MUTAL_EXCLUDE;
return m_pProtocol->ClientGetSoundPortalParameters( iPortalID );
return m_pProtocol->ClientGetSoundPortalParameters( iPortalID, oArgs );
};
inline void SetSoundPortalParameters( const int iPortalID, const CVAStruct& oParams )
......
......@@ -3042,10 +3042,11 @@ void CVANetNetworkProtocol::ServerGetSoundPortalName()
pMsg->WriteString( sName );
}
CVAStruct CVANetNetworkProtocol::ClientGetSoundPortalParameters( const int iID )
CVAStruct CVANetNetworkProtocol::ClientGetSoundPortalParameters( const int iID, const CVAStruct& oArgs )
{
CVANetMessage* pMsg = ClientInitMessage( VA_NP_GET_SOUND_PORTAL_PARAMETERS, MESSAGE_WITH_ANSWER );
pMsg->WriteInt( iID );
pMsg->WriteVAStruct( oArgs );
ClientSendCommand( pMsg );
CVAStruct oParams;
pMsg->ReadVAStruct( oParams );
......@@ -3056,7 +3057,9 @@ void CVANetNetworkProtocol::ServerGetSoundPortalParameters()
{
CVANetMessage* pMsg = ServerGetMessage();
const int iID = pMsg->ReadInt();
CVAStruct oParams = m_pRealCore->GetSoundPortalParameters( iID );
CVAStruct oArgs;
pMsg->ReadVAStruct( oArgs );
CVAStruct oParams = m_pRealCore->GetSoundPortalParameters( iID, oArgs );
pMsg->WriteVAStruct( oParams );
}
......
......@@ -752,7 +752,7 @@ public:
void ClientSetSoundPortalEnabled( const int iSoundPortalID, const bool bEnabled );
void ServerSetSoundPortalEnabled();
CVAStruct ClientGetSoundPortalParameters( const int iPortalID );
CVAStruct ClientGetSoundPortalParameters( const int iPortalID, const CVAStruct& oArgs );
void ServerGetSoundPortalParameters();
void ClientSetSoundPortalParameters( const int iPortalID, const CVAStruct& oParams );
void ServerSetSoundPortalParameters();
......
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