mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 20:36:53 +01:00
29 lines
424 B
C++
29 lines
424 B
C++
|
#ifndef WEB_SERVER_H
|
||
|
#define WEB_SERVER_H
|
||
|
|
||
|
#include "core/nodes/node_tree.h"
|
||
|
|
||
|
class Request;
|
||
|
class WebNode;
|
||
|
|
||
|
class WebServer : public NodeTree {
|
||
|
RCPP_OBJECT(WebServer, NodeTree);
|
||
|
|
||
|
public:
|
||
|
WebNode *get_web_root();
|
||
|
|
||
|
void set_root(Node *root);
|
||
|
|
||
|
void handle_request(Request *request);
|
||
|
|
||
|
float get_update_delta_time();
|
||
|
|
||
|
WebServer();
|
||
|
virtual ~WebServer();
|
||
|
|
||
|
protected:
|
||
|
WebNode *_web_root;
|
||
|
float _update_interval;
|
||
|
};
|
||
|
|
||
|
#endif
|