mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:20:54 +01:00
23 lines
506 B
C
23 lines
506 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <TiltedCore/Stl.hpp>
|
||
|
|
#include "Message.h"
|
||
|
|
#include "MetaMessage.h"
|
||
|
|
|
||
|
|
#include "ServerLogs.h"
|
||
|
|
#include "AdminSessionOpen.h"
|
||
|
|
|
||
|
|
using TiltedPhoques::UniquePtr;
|
||
|
|
|
||
|
|
struct ServerAdminMessageFactory
|
||
|
|
{
|
||
|
|
UniquePtr<ServerAdminMessage> Extract(TiltedPhoques::Buffer::Reader& aReader) const noexcept;
|
||
|
|
|
||
|
|
template <class T> static auto Visit(T&& func)
|
||
|
|
{
|
||
|
|
auto s_visitor = CreateMessageVisitor<AdminSessionOpen, ServerLogs>;
|
||
|
|
|
||
|
|
return s_visitor(std::forward<T>(func));
|
||
|
|
}
|
||
|
|
};
|