mirror of
				https://github.com/VCMP-SqMod/SqMod.git
				synced 2025-11-04 00:07:19 +01:00 
			
		
		
		
	Implement network statistics.
network statistics can now be retrieved for each client.
This commit is contained in:
		@@ -401,6 +401,15 @@ void CPlayer::SetOptionEx(Int32 option_id, bool toggle, Int32 header, LightObj &
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ------------------------------------------------------------------------------------------------
 | 
			
		||||
Float64 CPlayer::GetNetworkStatistics(Int32 option_id) const
 | 
			
		||||
{
 | 
			
		||||
    // Validate the managed identifier
 | 
			
		||||
    Validate();
 | 
			
		||||
    // Return the requested information
 | 
			
		||||
    return _Func->GetNetworkStatistics(m_ID, static_cast< vcmpNetworkStatisticsOption  >(option_id));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ------------------------------------------------------------------------------------------------
 | 
			
		||||
Int32 CPlayer::GetWorld() const
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -325,6 +325,11 @@ public:
 | 
			
		||||
    */
 | 
			
		||||
    void SetOptionEx(Int32 option_id, bool toggle, Int32 header, LightObj & payload);
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * Retrieve network statistics related to the managed player entity.
 | 
			
		||||
    */
 | 
			
		||||
    Float64 GetNetworkStatistics(Int32 option_id) const;
 | 
			
		||||
 | 
			
		||||
    /* --------------------------------------------------------------------------------------------
 | 
			
		||||
     * Retrieve the world in which the managed player entity exists.
 | 
			
		||||
    */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user