添加进入人物和退出人物hook
This commit is contained in:
50
src/sdk/SystemTime.h
Normal file
50
src/sdk/SystemTime.h
Normal file
@@ -0,0 +1,50 @@
|
||||
#pragma once
|
||||
#ifndef __SYSTEMTIME_H__
|
||||
#define __SYSTEMTIME_H__
|
||||
|
||||
#pragma pack(push, 0x01)
|
||||
|
||||
class CSystemTime
|
||||
{
|
||||
public:
|
||||
static CSystemTime* G_CSystemTime(void)
|
||||
{
|
||||
return *(CSystemTime**)base::CSystemTime::s_systemTime_;
|
||||
}
|
||||
|
||||
CSystemTime()
|
||||
{
|
||||
CallT<int>(base::CSystemTime::CSystemTime_make, this);
|
||||
}
|
||||
|
||||
~CSystemTime()
|
||||
{
|
||||
CallT<int>(base::CSystemTime::CSystemTime_destroy, this);
|
||||
}
|
||||
|
||||
int getCurSec()
|
||||
{
|
||||
return CallT<int>(base::CSystemTime::getCurSec, this);
|
||||
}
|
||||
|
||||
int getCurTickCount()
|
||||
{
|
||||
return CallT<int>(base::CSystemTime::getCurTickCount, this);
|
||||
}
|
||||
|
||||
int getCurDate()
|
||||
{
|
||||
return CallT<int>(base::CSystemTime::getCurDate, this);
|
||||
}
|
||||
|
||||
int update()
|
||||
{
|
||||
return CallT<int>(base::CSystemTime::update, this);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
#endif // __SYSTEMTIME_H__
|
||||
|
||||
Reference in New Issue
Block a user