Files
Client/Server/AdminTool/AdminToolLibrary/dbcomponent/RYL_GameDB.h
LGram16 dd97ddec92 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>
2025-11-29 20:17:20 +09:00

55 lines
1.7 KiB
C++

#ifndef _RYL_GAMEDB_H_
#define _RYL_GAMEDB_H_
#include <DB/DBComponent.h>
/*!
\class CGameDB
게임 데이터 베이스
*/
class CGameDB : public CDBComponent
{
public:
#pragma pack(1)
enum SIZE
{
MAX_CHAR_SLOT = 5
};
struct In_UserInfo
{
unsigned long Char1;
unsigned long Char2;
unsigned long Char3;
unsigned long Char4;
unsigned long Char5;
};
struct Out_CharList
{
char m_szCharName[16];
unsigned long m_UID;
unsigned long m_CID;
};
#pragma pack()
public:
bool CIDByCharacterList(unsigned long CID, void* GetData); // 단일 캐릭터만 나옴
bool CNameByCharacterList(char* szCharacterName, void* GetData); // 단일 캐릭터만 나옴
bool CIDByUID(unsigned long CID, void* GetData); // CID로 UID 얻기
bool CharacterNameByCID(char* szCharacterName, void* GetData); // 캐릭터 이름으로 CID 얻기
bool CIDByCharacterName(unsigned long CID, void* GetData); // CID로 캐릭터 이름 얻기
bool UseCharacterName(char* szName); // 해당 캐릭명이 사용중인지 판별
bool ChangeName(unsigned long dwCID, char* szName); // 캐릭터 이름 변경
// Part2Selectable 타입의 영향을 받는 루틴
bool UIDByCharacterList(unsigned long UID, unsigned int nAgentType, unsigned int nOldServerID, void* GetData); // 복수의 캐릭터가 있을수 있음
bool UIDbyUserInfo(unsigned long dwUID, unsigned int nAgentType, unsigned int nOldServerID, void* GetData); // UID로 캐릭터 리스트 가져오기
bool GetUserNation(unsigned int nAgentType, unsigned long dwUID, unsigned long dwCID, void* GetData); // 계정 국가 얻기
unsigned char GetOldServerGroupID(unsigned long dwCID); // 해당 CID가 연결되있는 UserInfo의 OldServerGroupID 얻기
private:
char m_szQuery[MAX_QUERY_LENGTH];
};
#endif