iw7-mod/src/client/game/demonware/servers/service_server.hpp
2024-01-31 20:00:28 +02:00

25 lines
410 B
C++

#pragma once
#include "../reply.hpp"
namespace demonware
{
class service_server
{
public:
virtual ~service_server() = default;
virtual remote_reply create_message(uint8_t type)
{
return remote_reply{ this, type };
}
virtual service_reply create_reply(uint8_t type, uint32_t error = 0)
{
return service_reply{ this, type, error };
}
virtual void send_reply(reply* data) = 0;
};
}