Move tick time into engine, fixes #139
This commit is contained in:
parent
c9997f8aea
commit
e54eeae883
@ -36,6 +36,8 @@ namespace ui
|
|||||||
void Begin(int width, int height);
|
void Begin(int width, int height);
|
||||||
inline bool Running() { return running_; }
|
inline bool Running() { return running_; }
|
||||||
inline bool Broken() { return break_; }
|
inline bool Broken() { return break_; }
|
||||||
|
inline int LastTick() { return lastTick; }
|
||||||
|
inline void LastTick(int tick) { lastTick = tick; }
|
||||||
void Exit();
|
void Exit();
|
||||||
void Break();
|
void Break();
|
||||||
void UnBreak();
|
void UnBreak();
|
||||||
@ -81,6 +83,7 @@ namespace ui
|
|||||||
bool running_;
|
bool running_;
|
||||||
bool break_;
|
bool break_;
|
||||||
|
|
||||||
|
int lastTick;
|
||||||
int mousex_;
|
int mousex_;
|
||||||
int mousey_;
|
int mousey_;
|
||||||
int mousexp_;
|
int mousexp_;
|
||||||
|
Reference in New Issue
Block a user