mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-26 04:12:41 +01:00
25 lines
458 B
C++
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;
|
|
};
|