This commit is contained in:
aozhiwei 2019-06-11 11:52:39 +08:00
parent 975bc60598
commit 9bb20edbe0
2 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@ bool Global::IsTimeToReset(int time)
int Global::g_nowtime = time(nullptr); int Global::g_nowtime = time(nullptr);
int Global::g_time_zone = 8; int Global::g_time_zone = 8;
bool Global::g_shutdown = false; bool Global::g_shutdown = false;
ColliderComponent* Global::last_collider = nullptr;
bool IsValidSlotId(int slot_id) bool IsValidSlotId(int slot_id)
{ {

View File

@ -2,6 +2,7 @@
extern int g_hint_flags; extern int g_hint_flags;
class ColliderComponent;
class Global : public a8::Singleton<Global> class Global : public a8::Singleton<Global>
{ {
private: private:
@ -17,6 +18,7 @@ class Global : public a8::Singleton<Global>
static int g_nowtime; static int g_nowtime;
static int g_time_zone; // 默认东八区 static int g_time_zone; // 默认东八区
static bool g_shutdown; static bool g_shutdown;
static ColliderComponent* last_collider;
}; };
bool IsValidSlotId(int slot_id); bool IsValidSlotId(int slot_id);