#pragma once #include #include struct World; struct UpdateEvent; struct AdminShutdownRequest; /** * @brief Handles communication from an admin client. * * This service is currently not in use. */ class AdminService : public spdlog::sinks::base_sink { public: AdminService(World& aWorld, entt::dispatcher& aDispatcher); private: void HandleShutdown(const AdminPacketEvent& aChanges) noexcept; void sink_it_(const spdlog::details::log_msg& msg) override; void flush_() override; Vector m_messages; entt::scoped_connection m_shutdownConnection; World& m_world; };