mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add '--dbg-server' command-line argument & add debugging server draft
This commit is contained in:
parent
2895cff5f2
commit
80cd187c6f
7 changed files with 142 additions and 5 deletions
29
src/devtools/DebuggingServer.hpp
Normal file
29
src/devtools/DebuggingServer.hpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
namespace network {
|
||||
class Server;
|
||||
class Connection;
|
||||
}
|
||||
|
||||
class Engine;
|
||||
|
||||
namespace devtools {
|
||||
class DebuggingServer {
|
||||
public:
|
||||
DebuggingServer(Engine& engine, const std::string& serverString);
|
||||
~DebuggingServer();
|
||||
|
||||
bool update();
|
||||
|
||||
void setClient(network::Connection& client) {
|
||||
this->client = &client;
|
||||
}
|
||||
private:
|
||||
Engine& engine;
|
||||
network::Server& server;
|
||||
network::Connection* client;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue