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:
58
Server/ToolProject/GameDBTool/Admin.h
Normal file
58
Server/ToolProject/GameDBTool/Admin.h
Normal file
@@ -0,0 +1,58 @@
|
||||
#pragma once
|
||||
#include "afxwin.h"
|
||||
|
||||
|
||||
// CAdmin <20><>ȭ <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
|
||||
class CAdmin : public CDialog
|
||||
{
|
||||
DECLARE_DYNAMIC(CAdmin)
|
||||
|
||||
public:
|
||||
CAdmin(CWnd* pParent = NULL); // ǥ<><C7A5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
virtual ~CAdmin();
|
||||
|
||||
// <20><>ȭ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
enum { IDD = IDD_ADMIN };
|
||||
|
||||
DWORD m_UID;
|
||||
|
||||
public:
|
||||
void SetUID(DWORD UID_In) { m_UID = UID_In; }
|
||||
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
public:
|
||||
virtual BOOL OnInitDialog();
|
||||
CString m_UserID;
|
||||
CComboBox m_Level;
|
||||
afx_msg void OnBnClickedModify();
|
||||
CString m_SIP;
|
||||
CString m_EIP;
|
||||
afx_msg void OnEnChangeSIp();
|
||||
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
|
||||
};
|
||||
|
||||
class CAdminDB
|
||||
{
|
||||
public:
|
||||
enum Level
|
||||
{
|
||||
None = 0,
|
||||
L1 = 1, // <20><EFBFBD><EEBFB5> L1
|
||||
L2 = 2, // <20><EFBFBD><EEBFB5> L2
|
||||
L3 = 3, // <20><EFBFBD><EEBFB5> L3
|
||||
};
|
||||
|
||||
private:
|
||||
enum { MaxList = 100 };
|
||||
|
||||
DWORD m_AdminList[MaxList];
|
||||
int m_AdminNum;
|
||||
|
||||
public:
|
||||
bool Initialize(void);
|
||||
unsigned short GetAdminLevel(unsigned long UID);
|
||||
};
|
||||
Reference in New Issue
Block a user