diff options
Diffstat (limited to 'src/core/core.h')
-rw-r--r-- | src/core/core.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/core.h b/src/core/core.h index 64eadb1..eb8e067 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -10,8 +10,6 @@ #include "core/gameinterface.h" #include "core/applicationinterface.h" -#define MAXCMDSIZE 1024 - /// core contains the basic functionality of the engine namespace core { @@ -20,6 +18,12 @@ namespace core /// pointer to the current ApplicationInterface inline ApplicationInterface *application() { return ApplicationInterface::instance(); } + + /// true if the core is connected to a game module + inline bool connected() { return (GameInterface::instance() && GameInterface::instance()->connected); } + + /// return the time the core has been running, in seconds + inline float time() { return ApplicationInterface::instance()->current_time; } }; #include "core/commandbuffer.h" |