[raknet] Implement/match RakClient::RPC(...)

This commit is contained in:
RD42 2024-08-24 23:33:38 +08:00
parent 765ad9cd8f
commit 22913217e6
3 changed files with 18 additions and 0 deletions

View File

@ -381,6 +381,16 @@ bool RakClient::RPC( char* uniqueID, RakNet::BitStream *parameters, PacketPriori
return RakPeer::RPC( uniqueID, parameters, priority, reliability, orderingChannel, remoteSystemList[ 0 ].playerId, false, shiftTimestamp, networkID, replyFromTarget );
}
// SAMPSRV (adding this just as a tag for next RakNet upgrade)
bool RakClient::RPC( char* uniqueID, RakNet::BitStream *parameters, PacketPriority priority, PacketReliability reliability, char orderingChannel, bool shiftTimestamp )
{
if ( remoteSystemList == 0 )
return false;
return RakPeer::RPC( uniqueID, parameters, priority, reliability, orderingChannel, remoteSystemList[ 0 ].playerId, false, shiftTimestamp, UNASSIGNED_NETWORK_ID, 0 );
}
// SAMPSRV end
void RakClient::SetTrackFrequencyTable( bool b )
{
RakPeer::SetCompileFrequencyTable( b );

View File

@ -231,6 +231,10 @@ public:
/// \return True on a successful packet send (this does not indicate the recipient performed the call), false on failure\note This is part of the Remote Procedure Call Subsystem
bool RPC( char* uniqueID, RakNet::BitStream *bitStream, PacketPriority priority, PacketReliability reliability, char orderingChannel, bool shiftTimestamp, NetworkID networkID, RakNet::BitStream *replyFromTarget );
// SAMPSRV (adding this just as a tag for next RakNet upgrade)
bool RPC( char* uniqueID, RakNet::BitStream *bitStream, PacketPriority priority, PacketReliability reliability, char orderingChannel, bool shiftTimestamp );
// SAMPSRV end
/// Enables or disables frequency table tracking. This is required to get a frequency table, which is used in GenerateCompressionLayer()
/// This value persists between connect calls and defaults to false (no frequency tracking)
/// \pre You can call this at any time - however you SHOULD only call it when disconnected. Otherwise you will only trackpart of the values sent over the network.

View File

@ -226,6 +226,10 @@ public:
/// \return True on a successful packet send (this does not indicate the recipient performed the call), false on failure
virtual bool RPC( char* uniqueID, RakNet::BitStream *bitStream, PacketPriority priority, PacketReliability reliability, char orderingChannel, bool shiftTimestamp, NetworkID networkID, RakNet::BitStream *replyFromTarget )=0;
// SAMPSRV (adding this just as a tag for next RakNet upgrade)
virtual bool RPC( char* uniqueID, RakNet::BitStream *bitStream, PacketPriority priority, PacketReliability reliability, char orderingChannel, bool shiftTimestamp )=0;
// SAMPSRV end
/// Enables or disables frequency table tracking. This is required to get a frequency table, which is used in GenerateCompressionLayer()
/// This value persists between connect calls and defaults to false (no frequency tracking)
/// \pre You can call this at any time - however you SHOULD only call it when disconnected. Otherwise you will only trackpart of the values sent over the network.