1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-20 01:11:46 +02:00
openrw/rwgame/debug/HttpServer.hpp

25 lines
458 B
C++

#pragma once
#include "../RWGame.hpp"
#include <engine/GameWorld.hpp>
#include "TcpSocket.hpp"
class HttpServer
{
public:
HttpServer(RWGame* game, GameWorld* world);
void run();
void handleBreakpoint(const SCMBreakpoint& bp);
private:
TcpSocket socket;
RWGame* game;
GameWorld* world;
bool paused;
const SCMBreakpoint* lastBreakpoint;
std::string dispatch(std::string method, std::string path);
std::string getState() const;
};