diff --git a/include/Nazara/Network/ENetPeer.hpp b/include/Nazara/Network/ENetPeer.hpp index e3538e6fb..4e36378a5 100644 --- a/include/Nazara/Network/ENetPeer.hpp +++ b/include/Nazara/Network/ENetPeer.hpp @@ -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(); diff --git a/include/Nazara/Network/ENetPeer.inl b/include/Nazara/Network/ENetPeer.inl index bcec4a8c1..d831b4d0d 100644 --- a/include/Nazara/Network/ENetPeer.inl +++ b/include/Nazara/Network/ENetPeer.inl @@ -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;