add '--dbg-server' command-line argument & add debugging server draft

This commit is contained in:
MihailRis
2025-10-05 23:54:29 +03:00
parent 2895cff5f2
commit 80cd187c6f
7 changed files with 142 additions and 5 deletions
+29
View 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;
};
}