mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 13:39:18 +02:00
work
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
#include <asio.hpp>
|
||||
#include <memory>
|
||||
#include "network/network.h"
|
||||
#include "command.h"
|
||||
|
||||
namespace network
|
||||
{
|
||||
class manager
|
||||
{
|
||||
asio::io_context io_context;
|
||||
std::vector<std::shared_ptr<server>> servers;
|
||||
std::shared_ptr<network::server> server;
|
||||
std::shared_ptr<network::client> client;
|
||||
|
||||
public:
|
||||
@@ -17,5 +18,8 @@ namespace network
|
||||
void create_server();
|
||||
void connect();
|
||||
void poll();
|
||||
|
||||
std::tuple<double, command_queue::commanddatasequence_map> get_next_delta();
|
||||
void push_delta(double delta, command_queue::commanddatasequence_map commands);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user