1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-26 04:12:41 +01:00
openrw/rwgame/debug/HttpServer.hpp

25 lines
458 B
C++
Raw Normal View History

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