16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 19:29:19 +02:00
This commit is contained in:
milek7
2019-01-11 23:15:03 +01:00
parent ead2123d8e
commit 3db9efd3f7
18 changed files with 135 additions and 40 deletions

View File

@@ -33,7 +33,7 @@ namespace network
void send_message(std::shared_ptr<message> msg);
virtual void connected();
std::tuple<double, command_queue::commands_map> get_next_delta();
std::tuple<double, double, command_queue::commands_map> get_next_delta();
command_queue::commands_map pop_commands();
};
@@ -43,7 +43,7 @@ namespace network
std::vector<std::shared_ptr<connection>> clients;
public:
void push_delta(double dt, command_queue::commands_map commands);
void push_delta(double dt, double sync, command_queue::commands_map commands);
command_queue::commands_map pop_commands();
void notify_train(std::string name);
};
@@ -54,7 +54,7 @@ namespace network
std::shared_ptr<connection> conn;
public:
std::tuple<double, command_queue::commands_map> get_next_delta();
std::tuple<double, double, command_queue::commands_map> get_next_delta();
void send_commands(command_queue::commands_map commands);
void request_train(std::string name);
};