mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Added helper to get delta time to the node tree.
This commit is contained in:
parent
e705cbca34
commit
a3119b8b09
@ -39,6 +39,10 @@ void NodeTree::_send_update() {
|
||||
}
|
||||
}
|
||||
|
||||
float NodeTree::get_update_delta_time() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
NodeTree::NodeTree() :
|
||||
Object() {
|
||||
|
||||
|
@ -17,6 +17,8 @@ public:
|
||||
|
||||
void request_write_lock();
|
||||
|
||||
virtual float get_update_delta_time();
|
||||
|
||||
NodeTree();
|
||||
~NodeTree();
|
||||
|
||||
|
@ -25,6 +25,9 @@ void WebServer::handle_request(Request *request) {
|
||||
_rw_lock.read_unlock();
|
||||
}
|
||||
|
||||
float WebServer::get_update_delta_time() {
|
||||
return _update_interval;
|
||||
}
|
||||
|
||||
WebServer::WebServer() : NodeTree() {
|
||||
_web_root = nullptr;
|
||||
|
@ -16,6 +16,8 @@ public:
|
||||
|
||||
void handle_request(Request *request);
|
||||
|
||||
float get_update_delta_time();
|
||||
|
||||
WebServer();
|
||||
virtual ~WebServer();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user