Network/ENetPeer: Add GetRoundTripTime method

This commit is contained in:
Lynix 2017-06-05 15:06:19 +02:00
parent b175122791
commit c98fb482e7
2 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,7 @@ namespace Nz
inline UInt32 GetPacketThrottleDeceleration() const;
inline UInt32 GetPacketThrottleInterval() const;
inline UInt16 GetPeerId() const;
inline UInt32 GetRoundTripTime() const;
inline ENetPeerState GetState() const;
inline bool HasPendingCommands();

View File

@ -48,6 +48,11 @@ namespace Nz
return m_incomingPeerID;
}
inline UInt32 ENetPeer::GetRoundTripTime() const
{
return m_roundTripTime;
}
inline ENetPeerState ENetPeer::GetState() const
{
return m_state;