From 30614e0b23a8ce6015797d83fa858698f2e45091 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Tue, 30 Jan 2024 21:52:00 +0800 Subject: [PATCH] [bot] Implement CScriptTimers ctor --- bot/main.h | 3 +++ bot/scrtimers.cpp | 4 ++-- bot/scrtimers.h | 21 +++++++++++++++++++-- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/bot/main.h b/bot/main.h index bfa44d7..31f5375 100644 --- a/bot/main.h +++ b/bot/main.h @@ -32,6 +32,9 @@ typedef struct _GAME_SETTINGS { #include #include +#include +#include + #include "../raknet/RakClientInterface.h" #include "../raknet/RakNetworkFactory.h" #include "../raknet/PacketEnumerations.h" diff --git a/bot/scrtimers.cpp b/bot/scrtimers.cpp index 4a6e4f0..952a8cc 100644 --- a/bot/scrtimers.cpp +++ b/bot/scrtimers.cpp @@ -1,7 +1,7 @@ -#include "scrtimers.h" +#include "main.h" CScriptTimers::CScriptTimers() { - // TODO: CScriptTimers::CScriptTimers W: 0041D700 L: 080B8036 + m_dwTimerCount = 0; } diff --git a/bot/scrtimers.h b/bot/scrtimers.h index 4bb0c98..e333c16 100644 --- a/bot/scrtimers.h +++ b/bot/scrtimers.h @@ -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 DwordTimerMap; + +//---------------------------------------------------------------------------------- + +class CScriptTimers { private: + DwordTimerMap m_Timers; + DWORD m_dwTimerCount; public: CScriptTimers(); -}; \ No newline at end of file + +}; + +#endif