mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 23:20:53 +01:00
28 lines
778 B
C++
28 lines
778 B
C++
#pragma once
|
|
|
|
struct ConnectedEvent;
|
|
struct DisconnectedEvent;
|
|
struct StringCacheUpdate;
|
|
|
|
/**
|
|
* @brief Caches strings to reduce data usage when sending string data between clients.
|
|
*
|
|
* This service is currently not in use.
|
|
*/
|
|
struct StringCacheService
|
|
{
|
|
StringCacheService(entt::dispatcher& aDispatcher) noexcept;
|
|
~StringCacheService() noexcept = default;
|
|
|
|
TP_NOCOPYMOVE(StringCacheService);
|
|
|
|
void HandleConnected(const ConnectedEvent&) noexcept;
|
|
void HandleDisconnected(const DisconnectedEvent&) noexcept;
|
|
|
|
void HandleStringCacheUpdate(const StringCacheUpdate&) noexcept;
|
|
|
|
private:
|
|
entt::scoped_connection m_connectedConnection;
|
|
entt::scoped_connection m_disconnectedConnection;
|
|
entt::scoped_connection m_stringCacheUpdateConnection;
|
|
};
|