Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#ifndef _GM_NETWORK_MSG_PROC_
|
||||
#define _GM_NETWORK_MSG_PROC_
|
||||
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#include <map>
|
||||
|
||||
class CMsgProc
|
||||
{
|
||||
public:
|
||||
virtual ~CMsgProc() = 0;
|
||||
virtual LRESULT operator () (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) = 0;
|
||||
};
|
||||
|
||||
inline CMsgProc::~CMsgProc() { }
|
||||
|
||||
class CMsgProcessMgr
|
||||
{
|
||||
public:
|
||||
|
||||
CMsgProcessMgr();
|
||||
~CMsgProcessMgr();
|
||||
|
||||
bool Register(UINT uMsg, CMsgProc* lpMsgProcessProc);
|
||||
bool Remove(UINT uMsg);
|
||||
|
||||
CMsgProc* FindMsgProc(UINT uMsg);
|
||||
|
||||
void Clear();
|
||||
|
||||
private:
|
||||
|
||||
typedef std::map<UINT, CMsgProc*> MessageProcessMap;
|
||||
|
||||
MessageProcessMap m_MessageProcessMap;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user