[bot] Implement CScriptTimers ctor

This commit is contained in:
RD42 2024-01-30 21:52:00 +08:00
parent 3a3b19d8fc
commit 30614e0b23
3 changed files with 24 additions and 4 deletions

View File

@ -32,6 +32,9 @@ typedef struct _GAME_SETTINGS {
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <map>
#include <string>
#include "../raknet/RakClientInterface.h" #include "../raknet/RakClientInterface.h"
#include "../raknet/RakNetworkFactory.h" #include "../raknet/RakNetworkFactory.h"
#include "../raknet/PacketEnumerations.h" #include "../raknet/PacketEnumerations.h"

View File

@ -1,7 +1,7 @@
#include "scrtimers.h" #include "main.h"
CScriptTimers::CScriptTimers() CScriptTimers::CScriptTimers()
{ {
// TODO: CScriptTimers::CScriptTimers W: 0041D700 L: 080B8036 m_dwTimerCount = 0;
} }

View File

@ -1,7 +1,24 @@
class CScriptTimers // size W 16/L 25 #ifndef SAMPNPC_TIMERS_H
#define SAMPNPC_TIMERS_H
struct ScriptTimer_s
{
char _gap0[283];
};
typedef std::map<DWORD, ScriptTimer_s*> DwordTimerMap;
//----------------------------------------------------------------------------------
class CScriptTimers
{ {
private: private:
DwordTimerMap m_Timers;
DWORD m_dwTimerCount;
public: public:
CScriptTimers(); CScriptTimers();
}; };
#endif